# HG changeset patch # User Jim Blandy # Date 731059824 0 # Node ID b1bc0b15ca7f686175d842871a01fd263a2c3f3e # Parent 666e3f26a8d6ed71a588dd843e47da86eb452f03 * cmds.c (Fnewline): Doc fix. diff -r 666e3f26a8d6 -r b1bc0b15ca7f src/cmds.c --- 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)