Function: forge-comment-at-point

forge-comment-at-point is a byte-compiled function defined in forge-post.el.

Signature

(forge-comment-at-point &optional ASSERT)

Documentation

Return the comment at point.

If there is no such comment and DEMAND is non-nil, then signal an error.

Source Code

;; Defined in ~/.emacs.d/elpa/forge-20260408.1922/forge-post.el
(defun forge-comment-at-point (&optional assert)
  "Return the comment at point.
If there is no such comment and DEMAND is non-nil, then signal
an error."
  (or (and (magit-section-value-if '(post))
           (let ((post (oref (magit-current-section) value)))
             (and (or (forge-pullreq-post-p post)
                      (forge-issue-post-p post))
                  post)))
      (and assert (user-error "There is no comment at point"))))