aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2009-09-25 22:04:07 +0000
committerChong Yidong2009-09-25 22:04:07 +0000
commit182b3bec08a5bd85a08bba9d3c40a8d6cdf25235 (patch)
treeee390b3b0bafd02cbeedd796c1407f6a6a5edfdc
parent13989ab10be3d824992033f482c30ed110ef03ab (diff)
downloademacs-182b3bec08a5bd85a08bba9d3c40a8d6cdf25235.tar.gz
emacs-182b3bec08a5bd85a08bba9d3c40a8d6cdf25235.zip
* files.el (safe-local-eval-forms): Allow time-stamp in
before-save-hook (Bug#4554).
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/files.el4
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index cf8cf16e0ca..643d658ee89 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-09-25 Juri Linkov <juri@jurta.org>
2
3 * files.el (safe-local-eval-forms): Allow time-stamp in
4 before-save-hook (Bug#4554).
5
12009-09-25 Drew Adams <drew.adams@oracle.com> 62009-09-25 Drew Adams <drew.adams@oracle.com>
2 7
3 * menu-bar.el (list-buffers-directory): Doc fix. 8 * menu-bar.el (list-buffers-directory): Doc fix.
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."
2687 :group 'find-file 2687 :group 'find-file
2688 :type 'alist) 2688 :type 'alist)
2689 2689
2690(defcustom safe-local-eval-forms '((add-hook 'write-file-hooks 'time-stamp)) 2690(defcustom safe-local-eval-forms
2691 '((add-hook 'write-file-functions 'time-stamp)
2692 (add-hook 'before-save-hooks 'time-stamp))
2691 "Expressions that are considered safe in an `eval:' local variable. 2693 "Expressions that are considered safe in an `eval:' local variable.
2692Add expressions to this list if you want Emacs to evaluate them, when 2694Add expressions to this list if you want Emacs to evaluate them, when
2693they appear in an `eval' local variable specification, without first 2695they appear in an `eval' local variable specification, without first