summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2009-09-25 22:04:07 +0000
committerChong Yidong <cyd@stupidchicken.com>2009-09-25 22:04:07 +0000
commit182b3bec08a5bd85a08bba9d3c40a8d6cdf25235 (patch)
treeee390b3b0bafd02cbeedd796c1407f6a6a5edfdc /lisp/files.el
parent13989ab10be3d824992033f482c30ed110ef03ab (diff)
downloademacs-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.el4
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