Function: forge-topic-at-point

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

Signature

(forge-topic-at-point &optional DEMAND)

Documentation

Return the topic at point.

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

Source Code

;; Defined in ~/.emacs.d/elpa/forge-20260408.1922/forge-topic.el
(defun forge-topic-at-point (&optional demand)
  "Return the topic at point.
If there is no such topic and DEMAND is non-nil, then signal
an error."
  (or (thing-at-point 'forge-topic)
      (magit-section-value-if '(discussion issue pullreq))
      (forge-get-pullreq :branch)
      (and demand (user-error "No topic at point"))))