Mercurial > emacs
changeset 1986:b1bc0b15ca7f
* cmds.c (Fnewline): Doc fix.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Tue, 02 Mar 1993 08:10:24 +0000 |
parents | 666e3f26a8d6 |
children | cd893024d6b9 |
files | src/cmds.c |
diffstat | 1 files changed, 8 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cmds.c Tue Mar 02 08:09:42 1993 +0000 +++ b/src/cmds.c Tue Mar 02 08:10:24 1993 +0000 @@ -230,13 +230,14 @@ if (!NILP (current_buffer->read_only)) Fsignal (Qbuffer_read_only, Qnil); - /* Inserting a newline at the end of a line - produces better redisplay in try_window_id - than inserting at the ebginning fo a line, - And the textual result is the same. - So if at beginning, pretend to be at the end. - Must avoid internal_self_insert in that case since point is wrong. - Luckily internal_self_insert's special features all do nothing in that case. */ + /* Inserting a newline at the end of a line produces better + redisplay in try_window_id than inserting at the ebginning fo a + line, and the textual result is the same. So, if we're at + beginning of line, pretend to be at the end of the previous line. + + We can't use internal_self_insert in that case since it won't do + the insertion correctly. Luckily, internal_self_insert's special + features all do nothing in that case. */ flag = point > BEGV && FETCH_CHAR (point - 1) == '\n'; if (flag)