Function: forge-current-topic

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

Signature

(forge-current-topic &optional DEMAND)

Documentation

Return the topic at point or being visited.

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
;;;; Current

(defun forge-current-topic (&optional demand)
  "Return the topic at point or being visited.
If there is no such topic and DEMAND is non-nil, then signal
an error."
  (or (forge-topic-at-point)
      forge-buffer-topic
      (and demand (user-error "No current topic"))))