Function: forge--insert-topics
forge--insert-topics is a byte-compiled function defined in
forge-topic.el.
Signature
(forge--insert-topics TYPE HEADING TOPICS)
Source Code
;; Defined in ~/.emacs.d/elpa/forge-20260408.1922/forge-topic.el
(defun forge--insert-topics (type heading topics)
(when topics
(let ((width (apply #'max (mapcar (##length (oref % slug)) topics))))
(magit-insert-section ((eval type) heading t)
(magit-insert-heading
(concat (magit--propertize-face (concat heading " ")
'magit-section-heading)
(magit--propertize-face (format "(%s)" (length topics))
'magit-section-child-count)))
(magit-insert-section-body
(dolist (topic topics)
(forge--insert-topic topic width))
(insert ?\n)
(magit-make-margin-overlay nil t))))))