diff lisp/simple.el @ 102813:2c37faeb7d5e

(auto-fill-function): Mark it as safe for nil. Suggested by Leo <sdl.web@gmail.com>.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 02 Apr 2009 01:56:43 +0000
parents 31e751308689
children 5fcdac62cfcd
line wrap: on
line diff
--- 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)