Mercurial > emacs
comparison lisp/simple.el @ 60645:b532848a1806
(auto-fill-function): Use the new :minor-mode-function property.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Wed, 16 Mar 2005 13:11:34 +0000 |
parents | e51f0754a4c4 |
children | 2edb492f66d9 |
comparison
equal
deleted
inserted
replaced
60644:9b106d739bf9 | 60645:b532848a1806 |
---|---|
3923 | 3923 |
3924 (defvar normal-auto-fill-function 'do-auto-fill | 3924 (defvar normal-auto-fill-function 'do-auto-fill |
3925 "The function to use for `auto-fill-function' if Auto Fill mode is turned on. | 3925 "The function to use for `auto-fill-function' if Auto Fill mode is turned on. |
3926 Some major modes set this.") | 3926 Some major modes set this.") |
3927 | 3927 |
3928 (put 'auto-fill-function :minor-mode-function 'auto-fill-mode) | |
3928 ;; FIXME: turn into a proper minor mode. | 3929 ;; FIXME: turn into a proper minor mode. |
3929 ;; Add a global minor mode version of it. | 3930 ;; Add a global minor mode version of it. |
3930 (defun auto-fill-mode (&optional arg) | 3931 (defun auto-fill-mode (&optional arg) |
3931 "Toggle Auto Fill mode. | 3932 "Toggle Auto Fill mode. |
3932 With arg, turn Auto Fill mode on if and only if arg is positive. | 3933 With arg, turn Auto Fill mode on if and only if arg is positive. |