emacs: clarify the prot-simple-copy-current-path docstring about buffer-file-name

This commit is contained in:
Protesilaos 2026-08-02 08:34:21 +03:00
parent 674a110740
commit ef98eaa3d4
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
2 changed files with 4 additions and 4 deletions

View file

@ -18680,8 +18680,8 @@ buffers in its history."
;;;###autoload
(defun prot-simple-copy-current-path ()
"Copy the current absolute path.
If in a file-visiting buffer, copy the `buffer-file-name'. Else copy
the `default-directory'."
If in a file-visiting buffer, copy the variable `buffer-file-name'.
Else copy the `default-directory'."
(declare (interactive-only t))
(interactive)
(let ((path (or buffer-file-name default-directory)))

View file

@ -937,8 +937,8 @@ buffers in its history."
;;;###autoload
(defun prot-simple-copy-current-path ()
"Copy the current absolute path.
If in a file-visiting buffer, copy the `buffer-file-name'. Else copy
the `default-directory'."
If in a file-visiting buffer, copy the variable `buffer-file-name'.
Else copy the `default-directory'."
(declare (interactive-only t))
(interactive)
(let ((path (or buffer-file-name default-directory)))