diff options
| author | Richard M. Stallman | 1998-04-01 03:44:50 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-04-01 03:44:50 +0000 |
| commit | 04d807e6ceccc7a1e8c0ab5e8914183bfe6dc5d8 (patch) | |
| tree | cce203ee7a716b4a9e3189b64d03b87dcedd2200 | |
| parent | 6b0cc1b56110c8387312b7c929f23d6e5e01c220 (diff) | |
| download | emacs-04d807e6ceccc7a1e8c0ab5e8914183bfe6dc5d8.tar.gz emacs-04d807e6ceccc7a1e8c0ab5e8914183bfe6dc5d8.zip | |
(hack-one-local-variable): Variables named ...-predicate are treated as risky.
(write-file): Omit directory part when making default file name.
| -rw-r--r-- | lisp/files.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/files.el b/lisp/files.el index 1790e1d194d..439b2c03829 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -1616,7 +1616,7 @@ is specified, returning t if it is specified." | |||
| 1616 | ;; Likewise for setting hook variables. | 1616 | ;; Likewise for setting hook variables. |
| 1617 | ((or (get var 'risky-local-variable) | 1617 | ((or (get var 'risky-local-variable) |
| 1618 | (and | 1618 | (and |
| 1619 | (string-match "-hooks?$\\|-functions?$\\|-forms?$\\|-program$\\|-command$" | 1619 | (string-match "-hooks?$\\|-functions?$\\|-forms?$\\|-program$\\|-command$\\|-predicate$" |
| 1620 | (symbol-name var)) | 1620 | (symbol-name var)) |
| 1621 | (not (get var 'safe-local-variable)))) | 1621 | (not (get var 'safe-local-variable)))) |
| 1622 | ;; Permit evalling a put of a harmless property. | 1622 | ;; Permit evalling a put of a harmless property. |
| @@ -1789,7 +1789,7 @@ Interactively, confirmation is required unless you supply a prefix argument." | |||
| 1789 | (read-file-name "Write file: " | 1789 | (read-file-name "Write file: " |
| 1790 | (cdr (assq 'default-directory | 1790 | (cdr (assq 'default-directory |
| 1791 | (buffer-local-variables))) | 1791 | (buffer-local-variables))) |
| 1792 | nil nil (buffer-name))) | 1792 | nil nil (file-name-nondirectory (buffer-name)))) |
| 1793 | (not current-prefix-arg))) | 1793 | (not current-prefix-arg))) |
| 1794 | (or (null filename) (string-equal filename "") | 1794 | (or (null filename) (string-equal filename "") |
| 1795 | (progn | 1795 | (progn |