# HG changeset patch # User Stefan Monnier # Date 1238637403 0 # Node ID 2c37faeb7d5e74a7329b91481b22d548cfc65df8 # Parent 62b984273010b15335c050b67ae51d84ffc75f77 (auto-fill-function): Mark it as safe for nil. Suggested by Leo . diff -r 62b984273010 -r 2c37faeb7d5e lisp/ChangeLog --- a/lisp/ChangeLog Wed Apr 01 20:01:14 2009 +0000 +++ b/lisp/ChangeLog Thu Apr 02 01:56:43 2009 +0000 @@ -1,18 +1,21 @@ +2009-04-02 Stefan Monnier + + * simple.el (auto-fill-function): Mark it as safe for nil. + Suggested by Leo . + 2009-04-01 Dan Nicolaescu * vc-mtn.el (vc-mtn-register): Fix optional arguments. * vc-hooks.el (vc-name): Avoid calling vc-backend twice. - (vc-mode-line): Accept and use an optional argument for the - backend. + (vc-mode-line): Accept and use an optional argument for the backend. (vc-find-file-hook): Use when instead of if. Avoid calling - vc-backend multiple times, pass down the value computed the first - time. + vc-backend multiple times, pass down the value computed the first time. 2009-03-30 Andreas Schwab - * ansi-color.el (ansi-color-get-face): Use - ansi-color-parameter-regexp to match parameters. + * ansi-color.el (ansi-color-get-face): + Use ansi-color-parameter-regexp to match parameters. (ansi-color-regexp): Include final `m' in first group. 2009-03-30 Jason Rumney diff -r 62b984273010 -r 2c37faeb7d5e lisp/simple.el --- a/lisp/simple.el Wed Apr 01 20:01:14 2009 +0000 +++ b/lisp/simple.el Thu Apr 02 01:56:43 2009 +0000 @@ -5008,6 +5008,10 @@ Some major modes set this.") (put 'auto-fill-function :minor-mode-function 'auto-fill-mode) +;; `functions' and `hooks' are usually unsafe to set, but setting +;; 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. (defun auto-fill-mode (&optional arg)