summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2022-10-14 10:12:03 +0300
committerEli Zaretskii <eliz@gnu.org>2022-10-14 10:12:03 +0300
commit9074103fbff70a30664b291f5ea3af443f88e4d8 (patch)
treea5ad557960c0ec56eaa454b7d6a867f49aeede4e /lisp/files.el
parent6cab30620f2234a1759074202caf2beafed12b69 (diff)
downloademacs-9074103fbff70a30664b291f5ea3af443f88e4d8.tar.gz
emacs-9074103fbff70a30664b291f5ea3af443f88e4d8.tar.bz2
emacs-9074103fbff70a30664b291f5ea3af443f88e4d8.zip
; Fix recent change in documentation of "device number"
* src/dired.c (Ffile_attributes): * lisp/files.el (buffer-file-number, file-attribute-file-number): Fix wording of the doc strings. * etc/NEWS: * doc/lispref/buffers.texi (Buffer File Name): * doc/lispref/files.texi (File Attributes): Fix a typo and wording. (Bug#58446)
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el12
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 1a301485517..dd10f7399cc 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -208,9 +208,10 @@ if the file has changed on disk and you have not edited the buffer."
:group 'find-file)
(defvar-local buffer-file-number nil
- "The inode and device numbers of the file visited in the current buffer.
-The value is a list of the form (INODENUM DEVNUM).
-This pair of numbers uniquely identifies the file.
+ "The inode number and the device of the file visited in the current buffer.
+The value is a list of the form (INODENUM DEVICE), where DEVICE can be
+either a single number or a cons cell of two numbers.
+This tuple of numbers uniquely identifies the file.
If the buffer is visiting a new file, the value is nil.")
(put 'buffer-file-number 'permanent-local t)
@@ -8663,8 +8664,9 @@ It is an integer or a cons cell of integers."
(defsubst file-attribute-file-number (attributes)
"The inode and device numbers in ATTRIBUTES returned by `file-attributes'.
-The value is a list of the form (INODENUM DEVNUM).
-This pair of numbers uniquely identifies the file."
+The value is a list of the form (INODENUM DEVICE), where DEVICE could be
+either a single number or a cons cell of two numbers.
+This tuple of numbers uniquely identifies the file."
(nthcdr 10 attributes))
(defun file-attribute-collect (attributes &rest attr-names)