Function: forge--insert-topic-labels
forge--insert-topic-labels is a natively compiled function defined in
forge-topic.el.
Signature
(forge--insert-topic-labels TOPIC &optional SEPARATE)
Source Code
;; Defined in /nix/store/923zwib42c4qw6x4xps0cv1wi8qcd6lp-emacs-packages-deps/share/emacs/site-lisp/elpa/forge-20261005.753/forge-topic.el
(defun forge--insert-topic-labels (topic &optional separate)
(and-let ((labels (oref topic labels)))
(prog1 t
(pcase-dolist (`(,_id ,name ,color ,description) labels)
(let* ((background (forge--sanitize-color color))
(foreground (readable-foreground-color background)))
(if separate (insert " ") (setq separate t))
(insert name)
(let ((o (make-overlay (- (point) (length name)) (point))))
(overlay-put o 'priority 2)
(overlay-put o 'evaporate t)
(overlay-put o 'font-lock-face
`(( :background ,background
:foreground ,foreground)
forge-topic-label))
(when description
(overlay-put o 'help-echo description))))))))