Function: forge-current-topic

forge-current-topic is a natively 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 /nix/store/923zwib42c4qw6x4xps0cv1wi8qcd6lp-emacs-packages-deps/share/emacs/site-lisp/elpa/forge-20261005.753/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"))))