diff options
| author | Lars Magne Ingebrigtsen | 2011-07-16 20:42:38 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2011-07-16 20:42:38 +0200 |
| commit | ca425c7c87bc939777a1dceea7fbe1fe563bc3ca (patch) | |
| tree | 149e84561e7f0327257f793ea853aef1417a3641 | |
| parent | f019fb210628549b661bf7ebaa40e136df205af4 (diff) | |
| download | emacs-ca425c7c87bc939777a1dceea7fbe1fe563bc3ca.tar.gz emacs-ca425c7c87bc939777a1dceea7fbe1fe563bc3ca.zip | |
Document `auto-fill-function' in relation to `auto-fill-mode'
Fixes: debbugs:2470
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/simple.el | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 06201dd4146..6ac0dd3d0b1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -2,6 +2,8 @@ | |||
| 2 | 2 | ||
| 3 | * simple.el (current-kill): Clarify what | 3 | * simple.el (current-kill): Clarify what |
| 4 | `interprogram-paste-function' does (bug#7500). | 4 | `interprogram-paste-function' does (bug#7500). |
| 5 | (auto-fill-mode): Document `auto-fill-function' in relation to | ||
| 6 | `auto-fill-mode' (bug#2470). | ||
| 5 | 7 | ||
| 6 | 2011-07-16 Lawrence Mitchell <wence@gmx.li> | 8 | 2011-07-16 Lawrence Mitchell <wence@gmx.li> |
| 7 | 9 | ||
diff --git a/lisp/simple.el b/lisp/simple.el index 5dbe1e39794..7fd7e20b499 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -5237,14 +5237,16 @@ Some major modes set this.") | |||
| 5237 | ;; auto-fill-function to nil in a file-local setting is safe and | 5237 | ;; auto-fill-function to nil in a file-local setting is safe and |
| 5238 | ;; can be useful to prevent auto-filling. | 5238 | ;; can be useful to prevent auto-filling. |
| 5239 | (put 'auto-fill-function 'safe-local-variable 'null) | 5239 | (put 'auto-fill-function 'safe-local-variable 'null) |
| 5240 | ;; FIXME: turn into a proper minor mode. | 5240 | |
| 5241 | ;; Add a global minor mode version of it. | ||
| 5242 | (define-minor-mode auto-fill-mode | 5241 | (define-minor-mode auto-fill-mode |
| 5243 | "Toggle Auto Fill mode. | 5242 | "Toggle Auto Fill mode. |
| 5244 | With ARG, turn Auto Fill mode on if and only if ARG is positive. | 5243 | With ARG, turn Auto Fill mode on if and only if ARG is positive. |
| 5245 | In Auto Fill mode, inserting a space at a column beyond `current-fill-column' | 5244 | In Auto Fill mode, inserting a space at a column beyond `current-fill-column' |
| 5246 | automatically breaks the line at a previous space. | 5245 | automatically breaks the line at a previous space. |
| 5247 | 5246 | ||
| 5247 | When `auto-fill-mode' is on, the `auto-fill-function' variable is | ||
| 5248 | non-`nil'. | ||
| 5249 | |||
| 5248 | The value of `normal-auto-fill-function' specifies the function to use | 5250 | The value of `normal-auto-fill-function' specifies the function to use |
| 5249 | for `auto-fill-function' when turning Auto Fill mode on." | 5251 | for `auto-fill-function' when turning Auto Fill mode on." |
| 5250 | :variable (eq auto-fill-function normal-auto-fill-function)) | 5252 | :variable (eq auto-fill-function normal-auto-fill-function)) |