Function: actypes::link-to-gbut
actypes::link-to-gbut is an interactive and byte-compiled function
defined in hactypes.el.
Signature
(actypes::link-to-gbut KEY &optional KEY-FILE)
Documentation
Perform an action given by an existing global button, specified by KEY.
Optional second arg, KEY-FILE, is not used but is for calling
compatibility with the hlink function.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hactypes.el
(defact link-to-gbut (key &optional _key-file)
"Perform an action given by an existing global button, specified by KEY.
Optional second arg, KEY-FILE, is not used but is for calling
compatibility with the `hlink' function."
(interactive
(let ((gbut-file (hpath:validate (hpath:substitute-value (gbut:file))))
but-lbl)
(if (not (file-readable-p gbut-file))
(hypb:error "(link-to-gbut): You cannot read `%s'" gbut-file)
(list (progn
(find-file-noselect gbut-file)
(while (string-equal "" (setq but-lbl
(hargs:read-match
"Global button to link to: "
(mapcar #'list (gbut:label-list))
nil t nil 'gbut)))
(beep))
(hbut:label-to-key but-lbl))))))
(gbut:act (hbut:key-to-label key)))