diff options
| author | Richard M. Stallman | 1994-09-15 04:06:55 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-09-15 04:06:55 +0000 |
| commit | f109dfa2789785a8b67583e9f112fec1e34fb030 (patch) | |
| tree | 61929425dd7077c57704a7a32f8e4a8170ef7e2f /src | |
| parent | 27f314bdd2770683f2bbbcafa7fd6472dd5c8344 (diff) | |
| download | emacs-f109dfa2789785a8b67583e9f112fec1e34fb030.tar.gz emacs-f109dfa2789785a8b67583e9f112fec1e34fb030.zip | |
Include window.h.
(Fnewline): Inhibit the insert-at-end-of-line hack
when at the top of the window.
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmds.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cmds.c b/src/cmds.c index a3f23c7ac02..49998adbf50 100644 --- a/src/cmds.c +++ b/src/cmds.c | |||
| @@ -23,6 +23,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 23 | #include "commands.h" | 23 | #include "commands.h" |
| 24 | #include "buffer.h" | 24 | #include "buffer.h" |
| 25 | #include "syntax.h" | 25 | #include "syntax.h" |
| 26 | #include "window.h" | ||
| 26 | 27 | ||
| 27 | Lisp_Object Qkill_forward_chars, Qkill_backward_chars, Vblink_paren_function; | 28 | Lisp_Object Qkill_forward_chars, Qkill_backward_chars, Vblink_paren_function; |
| 28 | 29 | ||
| @@ -253,6 +254,11 @@ In Auto Fill mode, if no numeric arg, break the preceding line if it's long.") | |||
| 253 | features all do nothing in that case. */ | 254 | features all do nothing in that case. */ |
| 254 | 255 | ||
| 255 | flag = point > BEGV && FETCH_CHAR (point - 1) == '\n'; | 256 | flag = point > BEGV && FETCH_CHAR (point - 1) == '\n'; |
| 257 | /* Don't do this if at the beginning of the window. */ | ||
| 258 | if (XBUFFER (XWINDOW (selected_window)->buffer) == current_buffer | ||
| 259 | && marker_position (XWINDOW (selected_window)->start) == PT) | ||
| 260 | flag = 0; | ||
| 261 | |||
| 256 | #ifdef USE_TEXT_PROPERTIES | 262 | #ifdef USE_TEXT_PROPERTIES |
| 257 | /* We cannot use this optimization if properties change | 263 | /* We cannot use this optimization if properties change |
| 258 | in the vicinity. | 264 | in the vicinity. |