Function: forge--insert-topic-labels
forge--insert-topic-labels is a byte-compiled function defined in
forge-topic.el.
Signature
(forge--insert-topic-labels TOPIC &optional SEPARATE)
Source Code
;; Defined in ~/.emacs.d/elpa/forge-20260408.1922/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))))))))