diff options
| author | Noam Postavsky | 2016-02-03 19:48:45 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2016-02-03 19:48:45 +0200 |
| commit | 2c0dc9fa70dcde56f68db6e72309f995e5c0e6e0 (patch) | |
| tree | fecb0e5cc8858116300ffd5307d9d105624879ab | |
| parent | 504696d75dbd9b8159490ec4cd9da2b5578f2934 (diff) | |
| download | emacs-2c0dc9fa70dcde56f68db6e72309f995e5c0e6e0.tar.gz emacs-2c0dc9fa70dcde56f68db6e72309f995e5c0e6e0.zip | |
Fix warning message in hack-local-variables
* lisp/files.el (hack-local-variables): use 'thisbuf' to reference
the original buffer name in the warning message. (Bug#21681)
| -rw-r--r-- | lisp/files.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el index 3898dff0383..72c2752634e 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -3426,7 +3426,11 @@ local variables, but directory-local variables may still be applied." | |||
| 3426 | (format-message | 3426 | (format-message |
| 3427 | "%s: `lexical-binding' at end of file unreliable" | 3427 | "%s: `lexical-binding' at end of file unreliable" |
| 3428 | (file-name-nondirectory | 3428 | (file-name-nondirectory |
| 3429 | (or buffer-file-name "")))))) | 3429 | ;; We are called from |
| 3430 | ;; 'with-temp-buffer', so we need | ||
| 3431 | ;; to use 'thisbuf's name in the | ||
| 3432 | ;; warning message. | ||
| 3433 | (or (buffer-file-name thisbuf) "")))))) | ||
| 3430 | (t | 3434 | (t |
| 3431 | (ignore-errors | 3435 | (ignore-errors |
| 3432 | (push (cons (if (eq var 'eval) | 3436 | (push (cons (if (eq var 'eval) |