Function: forge--select-discussion-answer
forge--select-discussion-answer is a byte-compiled function defined in
forge-discussion.el.
Signature
(forge--select-discussion-answer TOPIC)
Source Code
;; Defined in ~/.emacs.d/elpa/forge-20260408.1922/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")))