diff --git a/etc/NEWS b/etc/NEWS index b662e84a840759386ea5386799601f1aaebc242b..065da36f5f3c7297e84e0ab56cf767894bff4ec6 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -41,6 +41,9 @@ lacks unexec, asynchronous processes, and networking support. * Changes in Emacs 21.1 +** When visiting a file with M-x find-file-literally, no newlines will +be added to the end of the buffer because of `require-final-newline'. + ** auto-compression mode is no longer enabled just by loading jka-compr.el. To control it, set `auto-compression-mode' via Custom or use the `auto-compression-mode' command. diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ccaf136403e45c45358b12cc660c8c2b8c61f45e..86bd76bc1da47fe0350c3ce5d1f11250d0055afb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,9 @@ 2000-11-16 Gerd Moellmann + * files.el (basic-save-buffer): Don't add a newline if + find-file-literally is non-nil. + (find-file-literally): Extend doc string. + * sort.el (sort-columns): If sort-fold-case it non-nil, invoke sort(1) with the `-f' argument. diff --git a/man/files.texi b/man/files.texi index 5466417c3b60d9d26c314491ca15dc14f3ea0375..2accbadbc03cb0b47ea3b91b7f320739d802d46c 100644 --- a/man/files.texi +++ b/man/files.texi @@ -278,7 +278,8 @@ system. @xref{Frames}. encoding or conversion, use the @kbd{M-x find-file-literally} command. It visits a file, like @kbd{C-x C-f}, but does not do format conversion (@pxref{Formatted Text}), character code conversion (@pxref{Coding -Systems}), or automatic uncompression (@pxref{Compressed Files}). +Systems}), or automatic uncompression (@pxref{Compressed Files}), and +does not add a final newline because of @code{require-final-newline}. If you already have visited the same file in the usual (non-literal) manner, this command asks you whether to visit it literally instead.