]> git.eshelyaron.com Git - emacs.git/commitdiff
; Improve the last change in NEWS.
authorEli Zaretskii <eliz@gnu.org>
Sat, 18 Sep 2021 06:40:55 +0000 (09:40 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 18 Sep 2021 06:40:55 +0000 (09:40 +0300)
etc/NEWS

index b93e87642b84e72f4ed9eea416bd27996a872680..cfa0c33e4532732af8d9153428e8c7d7c3d21101 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -294,11 +294,15 @@ personalize the uniquified buffer name.
 ---
 ** 'remove-hook' is now an interactive command.
 
+---
 ** 'expand-file-name' now checks for null bytes in filenames.
 The function will now check for null bytes in both NAME and
 DEFAULT-DIRECTORY arguments, as well as in the 'default-directory'
-buffer-local variable, assuming its value is used.  If null bytes are
+buffer-local variable, when its value is used.  If null bytes are
 found, 'expand-file-name' will signal an error.
+This means that practically all file-related operations will now check
+file names for null bytes, thus avoiding subtle bugs with silently
+using only the part of file name up to the first null byte.
 
 ---
 ** Frames
@@ -4155,12 +4159,6 @@ Emacs constructs the nondirectory part of the auto-save file name by
 applying that 'secure-hash' to the buffer file name.  This avoids any
 risk of excessively long file names.
 
----
-** File names checked for null bytes.
-Functions operating on local file names now check that the file names
-don't contain any NUL bytes.  This avoids subtle bugs caused by
-silently using only the part of the file name until the first NUL byte.
-
 +++
 ** New user option 'process-file-return-signal-string'.
 It controls, whether 'process-file' returns a string when a remote