diff options
| author | Stefan Monnier | 2009-04-02 01:56:43 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2009-04-02 01:56:43 +0000 |
| commit | 74ab01ffd8382d9112aa364b489b6fb84248f68b (patch) | |
| tree | c403d748aa597a5f20eec5be2e57b31a59de2abb | |
| parent | 4a87f93e3f2c8e028a890c1da88de33e57b2d9c4 (diff) | |
| download | emacs-74ab01ffd8382d9112aa364b489b6fb84248f68b.tar.gz emacs-74ab01ffd8382d9112aa364b489b6fb84248f68b.zip | |
(auto-fill-function): Mark it as safe for nil.
Suggested by Leo Liu <sdl.web@gmail.com>.
| -rw-r--r-- | lisp/ChangeLog | 15 | ||||
| -rw-r--r-- | lisp/simple.el | 4 |
2 files changed, 13 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2c1aa57c6c2..7297dac77ee 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,18 +1,21 @@ | |||
| 1 | 2009-04-02 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * simple.el (auto-fill-function): Mark it as safe for nil. | ||
| 4 | Suggested by Leo <sdl.web@gmail.com>. | ||
| 5 | |||
| 1 | 2009-04-01 Dan Nicolaescu <dann@ics.uci.edu> | 6 | 2009-04-01 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 7 | ||
| 3 | * vc-mtn.el (vc-mtn-register): Fix optional arguments. | 8 | * vc-mtn.el (vc-mtn-register): Fix optional arguments. |
| 4 | 9 | ||
| 5 | * vc-hooks.el (vc-name): Avoid calling vc-backend twice. | 10 | * vc-hooks.el (vc-name): Avoid calling vc-backend twice. |
| 6 | (vc-mode-line): Accept and use an optional argument for the | 11 | (vc-mode-line): Accept and use an optional argument for the backend. |
| 7 | backend. | ||
| 8 | (vc-find-file-hook): Use when instead of if. Avoid calling | 12 | (vc-find-file-hook): Use when instead of if. Avoid calling |
| 9 | vc-backend multiple times, pass down the value computed the first | 13 | vc-backend multiple times, pass down the value computed the first time. |
| 10 | time. | ||
| 11 | 14 | ||
| 12 | 2009-03-30 Andreas Schwab <schwab@linux-m68k.org> | 15 | 2009-03-30 Andreas Schwab <schwab@linux-m68k.org> |
| 13 | 16 | ||
| 14 | * ansi-color.el (ansi-color-get-face): Use | 17 | * ansi-color.el (ansi-color-get-face): |
| 15 | ansi-color-parameter-regexp to match parameters. | 18 | Use ansi-color-parameter-regexp to match parameters. |
| 16 | (ansi-color-regexp): Include final `m' in first group. | 19 | (ansi-color-regexp): Include final `m' in first group. |
| 17 | 20 | ||
| 18 | 2009-03-30 Jason Rumney <jasonr@gnu.org> | 21 | 2009-03-30 Jason Rumney <jasonr@gnu.org> |
diff --git a/lisp/simple.el b/lisp/simple.el index b7f1fca0f37..d6245a3b76b 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -5008,6 +5008,10 @@ unless optional argument SOFT is non-nil." | |||
| 5008 | Some major modes set this.") | 5008 | Some major modes set this.") |
| 5009 | 5009 | ||
| 5010 | (put 'auto-fill-function :minor-mode-function 'auto-fill-mode) | 5010 | (put 'auto-fill-function :minor-mode-function 'auto-fill-mode) |
| 5011 | ;; `functions' and `hooks' are usually unsafe to set, but setting | ||
| 5012 | ;; auto-fill-function to nil in a file-local setting is safe and | ||
| 5013 | ;; can be useful to prevent auto-filling. | ||
| 5014 | (put 'auto-fill-function 'safe-local-variable 'null) | ||
| 5011 | ;; FIXME: turn into a proper minor mode. | 5015 | ;; FIXME: turn into a proper minor mode. |
| 5012 | ;; Add a global minor mode version of it. | 5016 | ;; Add a global minor mode version of it. |
| 5013 | (defun auto-fill-mode (&optional arg) | 5017 | (defun auto-fill-mode (&optional arg) |