diff options
| author | Chong Yidong | 2009-09-25 22:04:07 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-09-25 22:04:07 +0000 |
| commit | 182b3bec08a5bd85a08bba9d3c40a8d6cdf25235 (patch) | |
| tree | ee390b3b0bafd02cbeedd796c1407f6a6a5edfdc | |
| parent | 13989ab10be3d824992033f482c30ed110ef03ab (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/files.el | 4 |
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 @@ | |||
| 1 | 2009-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 | |||
| 1 | 2009-09-25 Drew Adams <drew.adams@oracle.com> | 6 | 2009-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. |
| 2692 | Add expressions to this list if you want Emacs to evaluate them, when | 2694 | Add expressions to this list if you want Emacs to evaluate them, when |
| 2693 | they appear in an `eval' local variable specification, without first | 2695 | they appear in an `eval' local variable specification, without first |