Function: hypb:buffer-file-name

hypb:buffer-file-name is an autoloaded and byte-compiled function defined in hypb.el.

Signature

(hypb:buffer-file-name &optional BUFFER)

Documentation

Return name of file BUFFER or current buffer is visiting; nil if none.

No argument or nil as argument means use the current buffer. Produces the correct file name for indirect buffers as well.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hypb.el
;;;###autoload
(defun hypb:buffer-file-name (&optional buffer)
  "Return name of file BUFFER or current buffer is visiting; nil if none.
No argument or nil as argument means use the current buffer.
Produces the correct file name for indirect buffers as well."
   (buffer-file-name (or (buffer-base-buffer buffer) buffer)))