Function: comment-only-p

comment-only-p is a byte-compiled function defined in newcomment.el.gz.

Signature

(comment-only-p BEG END)

Documentation

Return non-nil if the text between BEG and END is all comments.

Source Code

;; Defined in /usr/src/emacs/lisp/newcomment.el.gz
(defun comment-only-p (beg end)
  "Return non-nil if the text between BEG and END is all comments."
  (save-excursion
    (goto-char beg)
    (comment-forward (point-max))
    (<= end (point))))