diff options
| author | Jim Blandy | 1993-03-02 08:10:24 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-03-02 08:10:24 +0000 |
| commit | c39e6cc261de1f6f9d2c872b45257c5476c4373b (patch) | |
| tree | 176849d163b141b0c5b43abd209627e4a5b991d1 /src | |
| parent | bec44fd6f657da0d5f25bd6875938cd059ca0b3c (diff) | |
| download | emacs-c39e6cc261de1f6f9d2c872b45257c5476c4373b.tar.gz emacs-c39e6cc261de1f6f9d2c872b45257c5476c4373b.zip | |
* cmds.c (Fnewline): Doc fix.
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmds.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/cmds.c b/src/cmds.c index de186a1050d..8a6fb19535c 100644 --- a/src/cmds.c +++ b/src/cmds.c | |||
| @@ -230,13 +230,14 @@ In Auto Fill mode, if no numeric arg, break the preceding line if it's long.") | |||
| 230 | if (!NILP (current_buffer->read_only)) | 230 | if (!NILP (current_buffer->read_only)) |
| 231 | Fsignal (Qbuffer_read_only, Qnil); | 231 | Fsignal (Qbuffer_read_only, Qnil); |
| 232 | 232 | ||
| 233 | /* Inserting a newline at the end of a line | 233 | /* Inserting a newline at the end of a line produces better |
| 234 | produces better redisplay in try_window_id | 234 | redisplay in try_window_id than inserting at the ebginning fo a |
| 235 | than inserting at the ebginning fo a line, | 235 | line, and the textual result is the same. So, if we're at |
| 236 | And the textual result is the same. | 236 | beginning of line, pretend to be at the end of the previous line. |
| 237 | So if at beginning, pretend to be at the end. | 237 | |
| 238 | Must avoid internal_self_insert in that case since point is wrong. | 238 | We can't use internal_self_insert in that case since it won't do |
| 239 | Luckily internal_self_insert's special features all do nothing in that case. */ | 239 | the insertion correctly. Luckily, internal_self_insert's special |
| 240 | features all do nothing in that case. */ | ||
| 240 | 241 | ||
| 241 | flag = point > BEGV && FETCH_CHAR (point - 1) == '\n'; | 242 | flag = point > BEGV && FETCH_CHAR (point - 1) == '\n'; |
| 242 | if (flag) | 243 | if (flag) |