Function: ielm-is-whitespace-or-comment

ielm-is-whitespace-or-comment is a byte-compiled function defined in ielm.el.gz.

Signature

(ielm-is-whitespace-or-comment STRING)

Documentation

Return non-nil if STRING is all whitespace or a comment.

Source Code

;; Defined in /usr/src/emacs/lisp/ielm.el.gz
;;; Utility functions

(defun ielm-is-whitespace-or-comment (string)
  "Return non-nil if STRING is all whitespace or a comment."
  (or (string= string "")
      (string-match-p "\\`[ \t\n]*\\(?:;.*\\)*\\'" string)))