diff options
| author | Stefan Monnier | 2011-03-21 12:42:16 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2011-03-21 12:42:16 -0400 |
| commit | cafdcef32d55cbb44389d7e322e7f973cbb72dfd (patch) | |
| tree | 7ee0c41ea8a589650ce6f4311fb10e61a63807b9 /src/cmds.c | |
| parent | a08a25d7aaf251aa18f2ef747be53734bc55cae9 (diff) | |
| parent | 4e05e67e4cd0bc1b0a4ef3176a4d0d91c6b3738e (diff) | |
| download | emacs-cafdcef32d55cbb44389d7e322e7f973cbb72dfd.tar.gz emacs-cafdcef32d55cbb44389d7e322e7f973cbb72dfd.zip | |
Merge from trunk
Diffstat (limited to 'src/cmds.c')
| -rw-r--r-- | src/cmds.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmds.c b/src/cmds.c index 5e6884c0807..fa1ac5028ae 100644 --- a/src/cmds.c +++ b/src/cmds.c | |||
| @@ -485,18 +485,18 @@ internal_self_insert (int c, EMACS_INT n) | |||
| 485 | : (c == ' ' || c == '\n')) | 485 | : (c == ' ' || c == '\n')) |
| 486 | && !NILP (BVAR (current_buffer, auto_fill_function))) | 486 | && !NILP (BVAR (current_buffer, auto_fill_function))) |
| 487 | { | 487 | { |
| 488 | Lisp_Object tem; | 488 | Lisp_Object auto_fill_result; |
| 489 | 489 | ||
| 490 | if (c == '\n') | 490 | if (c == '\n') |
| 491 | /* After inserting a newline, move to previous line and fill | 491 | /* After inserting a newline, move to previous line and fill |
| 492 | that. Must have the newline in place already so filling and | 492 | that. Must have the newline in place already so filling and |
| 493 | justification, if any, know where the end is going to be. */ | 493 | justification, if any, know where the end is going to be. */ |
| 494 | SET_PT_BOTH (PT - 1, PT_BYTE - 1); | 494 | SET_PT_BOTH (PT - 1, PT_BYTE - 1); |
| 495 | tem = call0 (BVAR (current_buffer, auto_fill_function)); | 495 | auto_fill_result = call0 (BVAR (current_buffer, auto_fill_function)); |
| 496 | /* Test PT < ZV in case the auto-fill-function is strange. */ | 496 | /* Test PT < ZV in case the auto-fill-function is strange. */ |
| 497 | if (c == '\n' && PT < ZV) | 497 | if (c == '\n' && PT < ZV) |
| 498 | SET_PT_BOTH (PT + 1, PT_BYTE + 1); | 498 | SET_PT_BOTH (PT + 1, PT_BYTE + 1); |
| 499 | if (!NILP (tem)) | 499 | if (!NILP (auto_fill_result)) |
| 500 | hairy = 2; | 500 | hairy = 2; |
| 501 | } | 501 | } |
| 502 | 502 | ||