From 1636ca09ab7db26b28351f9d1643f07c407691fd Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Sat, 2 Dec 2000 10:23:33 +0000 Subject: [PATCH] *** empty log message *** --- etc/NEWS | 1 + lisp/ChangeLog | 4 ++++ lispref/advice.texi | 3 ++- man/basic.texi | 7 ++++--- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index ada9082e906..dd77f48c117 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -41,6 +41,7 @@ lacks unexec, asynchronous processes, and networking support. * Changes in Emacs 21.1 ++++ ** The default for user-option `next-line-add-newlines' has been changed to nil, i.e. C-n will no longer add newlines at the end of a buffer by default. diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d575cba5b9a..e1f8d7cf346 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2000-12-02 Gerd Moellmann + + * simple.el (next-line-add-newlines): Change default to nil. + 2000-12-01 Eli Zaretskii * files.el (revert-buffer, recover-file): Bind diff --git a/lispref/advice.texi b/lispref/advice.texi index 9fe5179e105..c860f5dd5d2 100644 --- a/lispref/advice.texi +++ b/lispref/advice.texi @@ -44,7 +44,8 @@ function (or a new command) which uses the existing function. The command @code{next-line} moves point down vertically one or more lines; it is the standard binding of @kbd{C-n}. When used on the last line of the buffer, this command inserts a newline to create a line to -move to (if @code{next-line-add-newlines} is non-@code{nil}). +move to if @code{next-line-add-newlines} is non-@code{nil} (its default +is @code{nil}.) Suppose you wanted to add a similar feature to @code{previous-line}, which would insert a new line at the beginning of the buffer for the diff --git a/man/basic.texi b/man/basic.texi index d92937ad177..f75a446f27e 100644 --- a/man/basic.texi +++ b/man/basic.texi @@ -219,9 +219,10 @@ to the end of another line. Normally, @code{track-eol} is @code{nil}. @xref{Variables}, for how to set variables such as @code{track-eol}. @vindex next-line-add-newlines - Normally, @kbd{C-n} on the last line of a buffer appends a newline to -it. If the variable @code{next-line-add-newlines} is @code{nil}, then -@kbd{C-n} gets an error instead (like @kbd{C-p} on the first line). + If non-@code{nil}, @kbd{C-n} on the last line of a buffer appends a +newline to it. If the variable @code{next-line-add-newlines} is +@code{nil}, the default, then @kbd{C-n} gets an error instead (like +@kbd{C-p} on the first line). @node Erasing @section Erasing Text -- 2.39.5