Function: hui-select-at-blank-line-or-comment
hui-select-at-blank-line-or-comment is a byte-compiled function
defined in hui-select.el.
Signature
(hui-select-at-blank-line-or-comment)
Documentation
Return non-nil if on a blank line or a comment start or end line.
Assume point is before any non-whitespace character on the line.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-select.el
;;; ************************************************************************
;;; Private functions
;;; ************************************************************************
(defun hui-select-at-blank-line-or-comment ()
"Return non-nil if on a blank line or a comment start or end line.
Assume point is before any non-whitespace character on the line."
(let ((comment-end-p (and (stringp comment-end)
(not (string-equal comment-end "")))))
(if (looking-at
(concat "\\s-*$\\|\\s-*\\(//\\|/\\*\\|.*\\*/"
(if comment-start
(concat
"\\|" (regexp-quote comment-start)))
(if comment-end-p
(concat
"\\|.*" (regexp-quote comment-end)))
"\\)"))
(or (not (and comment-start comment-end-p))
;; Ignore start and end of comments that
;; follow non-commented text.
(not (looking-at
(format ".*\\S-.*%s.*%s"
(regexp-quote comment-start)
(regexp-quote comment-end))))))))