diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2009-09-25 22:04:07 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2009-09-25 22:04:07 +0000 |
commit | 182b3bec08a5bd85a08bba9d3c40a8d6cdf25235 (patch) | |
tree | ee390b3b0bafd02cbeedd796c1407f6a6a5edfdc /lisp/files.el | |
parent | 13989ab10be3d824992033f482c30ed110ef03ab (diff) | |
download | emacs-182b3bec08a5bd85a08bba9d3c40a8d6cdf25235.tar.gz |
* files.el (safe-local-eval-forms): Allow time-stamp in
before-save-hook (Bug#4554).
Diffstat (limited to 'lisp/files.el')
-rw-r--r-- | lisp/files.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el index 6e3fe605025..177046ace0f 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -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 |