Function: actypes::link-to-ebut
actypes::link-to-ebut is an interactive and byte-compiled function
defined in hactypes.el.
Signature
(actypes::link-to-ebut KEY &optional KEY-FILE)
Documentation
Perform explicit button action specified by KEY and optional KEY-FILE.
Interactively, KEY-FILE defaults to the current buffer's file name.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hactypes.el
(defact link-to-ebut (key &optional key-file)
"Perform explicit button action specified by KEY and optional KEY-FILE.
Interactively, KEY-FILE defaults to the current buffer's file name."
(interactive
(let (but-lbl
but-file)
(while (cond ((setq but-file
(read-file-name
"File of button to link to: " nil nil t))
(if (string-equal but-file "")
(progn (beep) t)))
((not (file-readable-p but-file))
(message "(link-to-ebut): You cannot read `%s'."
but-file)
(beep) (sit-for 3))))
(list (progn
(find-file-noselect but-file)
(while (string-equal "" (setq but-lbl
(hargs:read-match
"Button to link to: "
(ebut:alist but-file)
nil nil nil 'ebut)))
(beep))
(ebut:label-to-key but-lbl))
but-file)))
(let (but
normalized-file)
(if key-file
(setq normalized-file (hpath:normalize key-file))
(setq normalized-file (hypb:buffer-file-name)))
(if (setq but (when normalized-file (ebut:get key nil normalized-file)))
(hbut:act but)
(hypb:error "(link-to-ebut): No button `%s' in `%s'"
(ebut:key-to-label key)
key-file))))