diff options
| -rw-r--r-- | lisp/simple.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 829f39083d6..bdacf04b1df 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -2330,6 +2330,9 @@ Setting this variable automatically makes it local to the current buffer.") | |||
| 2330 | (defconst auto-fill-inhibit-regexp nil | 2330 | (defconst auto-fill-inhibit-regexp nil |
| 2331 | "*Regexp to match lines which should not be auto-filled.") | 2331 | "*Regexp to match lines which should not be auto-filled.") |
| 2332 | 2332 | ||
| 2333 | ;; This function is the auto-fill-function of a buffer | ||
| 2334 | ;; when Auto-Fill mode is enabled. | ||
| 2335 | ;; It returns t if it really did any work. | ||
| 2333 | (defun do-auto-fill () | 2336 | (defun do-auto-fill () |
| 2334 | (let (fc justify bol give-up | 2337 | (let (fc justify bol give-up |
| 2335 | (fill-prefix fill-prefix)) | 2338 | (fill-prefix fill-prefix)) |
| @@ -2419,7 +2422,8 @@ Setting this variable automatically makes it local to the current buffer.") | |||
| 2419 | ;; No place to break => stop trying. | 2422 | ;; No place to break => stop trying. |
| 2420 | (setq give-up t)))) | 2423 | (setq give-up t)))) |
| 2421 | ;; justify last line | 2424 | ;; justify last line |
| 2422 | (justify-current-line justify t t)))) | 2425 | (justify-current-line justify t t) |
| 2426 | t))) | ||
| 2423 | 2427 | ||
| 2424 | (defun auto-fill-mode (&optional arg) | 2428 | (defun auto-fill-mode (&optional arg) |
| 2425 | "Toggle auto-fill mode. | 2429 | "Toggle auto-fill mode. |