diff options
| author | Karl Heuer | 1996-05-21 14:31:40 +0000 |
|---|---|---|
| committer | Karl Heuer | 1996-05-21 14:31:40 +0000 |
| commit | e2504204dc392fc9f87b788fdcc5d4043a644f2d (patch) | |
| tree | c69550f3ba5fce75c2ccd490d08055ccb026b75a | |
| parent | 76bb6dbb3e78548cb7323da2602779b1bf1d1106 (diff) | |
| download | emacs-e2504204dc392fc9f87b788fdcc5d4043a644f2d.tar.gz emacs-e2504204dc392fc9f87b788fdcc5d4043a644f2d.zip | |
(do-auto-fill): Return t if real work was done.
| -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. |