Function: hbut:key-src-fmt
hbut:key-src-fmt is a byte-compiled function defined in hbut.el.
Signature
(hbut:key-src-fmt)
Documentation
Return unformatted filename associated with formatted current buffer.
This is used to obtain the source of Hyperbole buttons for buffers that represent the output of particular document formatters.
Aliases
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hbut.el
(defun hbut:key-src-fmt ()
"Return unformatted filename associated with formatted current buffer.
This is used to obtain the source of Hyperbole buttons for buffers that
represent the output of particular document formatters."
(when (or (eq major-mode 'Info-mode)
(string-match "\\.info\\(-[0-9]+\\)?$" (buffer-name)))
(let ((src (and (hypb:buffer-file-name)
(substring
(hypb:buffer-file-name)
0 (string-match "\\.[^.]+$" (hypb:buffer-file-name))))))
(cond ((file-exists-p (concat src ".texi"))
(concat src ".texi"))
((file-exists-p (concat src ".texinfo"))
(concat src ".texinfo"))
((current-buffer))))))