Function: gbut:to
gbut:to is a byte-compiled function defined in hbut.el.
Signature
(gbut:to LBL-KEY)
Documentation
Find the global button with LBL-KEY (a label or label key).
Find it within the visible portion of the global button file. Leave point inside the button label, if it has one. Return the symbol for the button when found, else nil.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hbut.el
(defun gbut:to (lbl-key)
"Find the global button with LBL-KEY (a label or label key).
Find it within the visible portion of the global button file.
Leave point inside the button label, if it has one.
Return the symbol for the button when found, else nil."
(when (file-readable-p (gbut:file))
(let ((obuf (current-buffer))
(opoint (point))
found)
(set-buffer (find-file-noselect (gbut:file)))
(setq found (hbut:to lbl-key))
(if found
(hpath:display-buffer (current-buffer) 'this-window)
(set-buffer obuf)
(goto-char opoint))
found)))