diff options
author | Lars Magne Ingebrigtsen <larsi@gnus.org> | 2011-07-16 20:42:38 +0200 |
---|---|---|
committer | Lars Magne Ingebrigtsen <larsi@gnus.org> | 2011-07-16 20:42:38 +0200 |
commit | ca425c7c87bc939777a1dceea7fbe1fe563bc3ca (patch) | |
tree | 149e84561e7f0327257f793ea853aef1417a3641 /lisp/simple.el | |
parent | f019fb210628549b661bf7ebaa40e136df205af4 (diff) | |
download | emacs-ca425c7c87bc939777a1dceea7fbe1fe563bc3ca.tar.gz |
Document `auto-fill-function' in relation to `auto-fill-mode'
Fixes: debbugs:2470
Diffstat (limited to 'lisp/simple.el')
-rw-r--r-- | lisp/simple.el | 6 |
1 files changed, 4 insertions, 2 deletions
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.") ;; auto-fill-function to nil in a file-local setting is safe and ;; can be useful to prevent auto-filling. (put 'auto-fill-function 'safe-local-variable 'null) -;; FIXME: turn into a proper minor mode. -;; Add a global minor mode version of it. + (define-minor-mode auto-fill-mode "Toggle Auto Fill mode. With ARG, turn Auto Fill mode on if and only if ARG is positive. In Auto Fill mode, inserting a space at a column beyond `current-fill-column' automatically breaks the line at a previous space. +When `auto-fill-mode' is on, the `auto-fill-function' variable is +non-`nil'. + The value of `normal-auto-fill-function' specifies the function to use for `auto-fill-function' when turning Auto Fill mode on." :variable (eq auto-fill-function normal-auto-fill-function)) |