Function: forge--select-discussion-answer
forge--select-discussion-answer is a natively compiled function
defined in forge-discussion.el.
Signature
(forge--select-discussion-answer TOPIC)
Source Code
;; Defined in /nix/store/923zwib42c4qw6x4xps0cv1wi8qcd6lp-emacs-packages-deps/share/emacs/site-lisp/elpa/forge-20261005.753/forge-discussion.el
(defun forge--select-discussion-answer (topic)
(if-let ((post (forge-post-at-point)))
(cond ((forge-discussion-p (forge-post-at-point))
(user-error "Cannot pick the question as its own answer"))
((and$ (oref topic answer)
(equal (oref post their-id)
(forge--their-id $)))
nil)
(post))
(user-error "Point must be on an reply to mark it as the answer")))