diff options
| author | Dan Nicolaescu | 2008-01-10 14:01:13 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-01-10 14:01:13 +0000 |
| commit | 146b3daf07f58412b21d44b95e43d48c9719c78b (patch) | |
| tree | 3e416288ed6204aca47931903606bb0910254652 | |
| parent | d1497e8d4d6842e8f47333360f155164196f0d66 (diff) | |
| download | emacs-146b3daf07f58412b21d44b95e43d48c9719c78b.tar.gz emacs-146b3daf07f58412b21d44b95e43d48c9719c78b.zip | |
(safe-local-eval-forms): Mark
(add-hook 'write-file-hooks 'time-stamp) as safe.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/files.el | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c54e9abec57..389f7b70fb7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,10 +1,15 @@ | |||
| 1 | 2008-01-10 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * files.el (safe-local-eval-forms): Mark | ||
| 4 | (add-hook 'write-file-hooks 'time-stamp) as safe. | ||
| 5 | |||
| 1 | 2008-01-10 Nick Roberts <nickrob@snap.net.nz> | 6 | 2008-01-10 Nick Roberts <nickrob@snap.net.nz> |
| 2 | 7 | ||
| 3 | * comint.el (comint-insert-input): Set point first. | 8 | * comint.el (comint-insert-input): Set point first. |
| 4 | 9 | ||
| 5 | * progmodes/gdb-ui.el (gdb-dequeue-input): Make doubly sure | 10 | * progmodes/gdb-ui.el (gdb-dequeue-input): Make doubly sure |
| 6 | session doesn't hang because gdb-pending-triggers is non-nil. | 11 | session doesn't hang because gdb-pending-triggers is non-nil. |
| 7 | (gdb-frame-handler): Use buffer-file-name instead of | 12 | (gdb-frame-handler): Use buffer-file-name instead of |
| 8 | buffer-name in case of duplicate file names. | 13 | buffer-name in case of duplicate file names. |
| 9 | 14 | ||
| 10 | 2008-01-10 Dan Nicolaescu <dann@ics.uci.edu> | 15 | 2008-01-10 Dan Nicolaescu <dann@ics.uci.edu> |
diff --git a/lisp/files.el b/lisp/files.el index aa6e7f1082a..ea327f48f2c 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -2418,13 +2418,13 @@ symbol and VAL is a value that is considered safe." | |||
| 2418 | :group 'find-file | 2418 | :group 'find-file |
| 2419 | :type 'alist) | 2419 | :type 'alist) |
| 2420 | 2420 | ||
| 2421 | (defcustom safe-local-eval-forms nil | 2421 | (defcustom safe-local-eval-forms '((add-hook 'write-file-hooks 'time-stamp)) |
| 2422 | "Expressions that are considered safe in an `eval:' local variable. | 2422 | "Expressions that are considered safe in an `eval:' local variable. |
| 2423 | Add expressions to this list if you want Emacs to evaluate them, when | 2423 | Add expressions to this list if you want Emacs to evaluate them, when |
| 2424 | they appear in an `eval' local variable specification, without first | 2424 | they appear in an `eval' local variable specification, without first |
| 2425 | asking you for confirmation." | 2425 | asking you for confirmation." |
| 2426 | :group 'find-file | 2426 | :group 'find-file |
| 2427 | :version "22.1" | 2427 | :version "22.2" |
| 2428 | :type '(repeat sexp)) | 2428 | :type '(repeat sexp)) |
| 2429 | 2429 | ||
| 2430 | ;; Risky local variables: | 2430 | ;; Risky local variables: |