+2011-02-23 Glenn Morris <rgm@gnu.org>
+
+ * files.el (safe-local-eval-forms): Add the write-file-hooks version.
+
2011-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
* help-fns.el (describe-function-1): Don't signal an error just because
:type 'alist)
(defcustom safe-local-eval-forms
- '((add-hook 'write-file-functions 'time-stamp)
+ ;; This should be here at least as long as Emacs supports write-file-hooks.
+ '((add-hook 'write-file-hooks 'time-stamp)
+ (add-hook 'write-file-functions 'time-stamp)
(add-hook 'before-save-hook 'time-stamp))
"Expressions that are considered safe in an `eval:' local variable.
Add expressions to this list if you want Emacs to evaluate them, when
asking you for confirmation."
:risky t
:group 'find-file
- :version "22.2"
+ :version "24.1" ; added write-file-hooks
:type '(repeat sexp))
;; Risky local variables: