1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-06 05:52:32 -08:00

* files.el (safe-local-eval-forms): Allow time-stamp in

before-save-hook (Bug#4554).
This commit is contained in:
Chong Yidong 2009-09-25 22:04:07 +00:00
parent 13989ab10b
commit 182b3bec08
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2009-09-25 Juri Linkov <juri@jurta.org>
* files.el (safe-local-eval-forms): Allow time-stamp in
before-save-hook (Bug#4554).
2009-09-25 Drew Adams <drew.adams@oracle.com>
* menu-bar.el (list-buffers-directory): Doc fix.

View file

@ -2687,7 +2687,9 @@ symbol and VAL is a value that is considered safe."
:group 'find-file
:type 'alist)
(defcustom safe-local-eval-forms '((add-hook 'write-file-hooks 'time-stamp))
(defcustom safe-local-eval-forms
'((add-hook 'write-file-functions 'time-stamp)
(add-hook 'before-save-hooks '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
they appear in an `eval' local variable specification, without first