diff options
| author | Michael Albinus | 2014-11-07 15:42:51 +0100 |
|---|---|---|
| committer | Michael Albinus | 2014-11-07 15:42:51 +0100 |
| commit | fd161081309462a90cc7f00dab40057a2f7aa481 (patch) | |
| tree | a5ddc8c6ae03344746c23ce6b8d3f981726ce200 | |
| parent | cd4776ba267ac18025d977d6c9c3b881ec496cee (diff) | |
| download | emacs-fd161081309462a90cc7f00dab40057a2f7aa481.tar.gz emacs-fd161081309462a90cc7f00dab40057a2f7aa481.zip | |
* files.el (file-name-non-special): Wrap the call of
`insert-file-contents' by `unwind-protect', in order to set the
buffer's file name anyway.
Fixes: debbugs:18891
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/files.el | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c134e589c30..7c7683a5f82 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2014-11-07 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * files.el (file-name-non-special): Wrap the call of | ||
| 4 | `insert-file-contents' by `unwind-protect', in order to set the | ||
| 5 | buffer's file name anyway. (Bug#18891) | ||
| 6 | |||
| 1 | 2014-11-07 Daiki Ueno <ueno@gnu.org> | 7 | 2014-11-07 Daiki Ueno <ueno@gnu.org> |
| 2 | 8 | ||
| 3 | * epg.el (epg--list-keys-1): Ignore fields after the 15th field | 9 | * epg.el (epg--list-keys-1): Ignore fields after the 15th field |
diff --git a/lisp/files.el b/lisp/files.el index 5ed5f8a6e1e..edcb459e26d 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -6664,7 +6664,7 @@ only these files will be asked to be saved." | |||
| 6664 | (`add (concat "/:" (apply operation arguments))) | 6664 | (`add (concat "/:" (apply operation arguments))) |
| 6665 | (`insert-file-contents | 6665 | (`insert-file-contents |
| 6666 | (let ((visit (nth 1 arguments))) | 6666 | (let ((visit (nth 1 arguments))) |
| 6667 | (prog1 | 6667 | (unwind-protect |
| 6668 | (apply operation arguments) | 6668 | (apply operation arguments) |
| 6669 | (when (and visit buffer-file-name) | 6669 | (when (and visit buffer-file-name) |
| 6670 | (setq buffer-file-name (concat "/:" buffer-file-name)))))) | 6670 | (setq buffer-file-name (concat "/:" buffer-file-name)))))) |