aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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