Function: org-base-buffer-file-name
org-base-buffer-file-name is a byte-compiled function defined in
org-macs.el.
Signature
(org-base-buffer-file-name &optional BUFFER)
Documentation
Resolve the base file name for the provided BUFFER.
If BUFFER is not provided, default to the current buffer. If BUFFER does not have a file name associated with it (e.g. a transient buffer) then return nil.
Source Code
;; Defined in ~/.emacs.d/elpa/org-9.8.2/org-macs.el
(defun org-base-buffer-file-name (&optional buffer)
"Resolve the base file name for the provided BUFFER.
If BUFFER is not provided, default to the current buffer. If
BUFFER does not have a file name associated with it (e.g. a
transient buffer) then return nil."
(if-let* ((base-buffer (buffer-base-buffer buffer)))
(buffer-file-name base-buffer)
(buffer-file-name buffer)))