Commit fd161081 authored by Michael Albinus's avatar Michael Albinus
Browse files

* 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
parent cd4776ba
2014-11-07 Michael Albinus <michael.albinus@gmx.de>
* 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. (Bug#18891)
2014-11-07 Daiki Ueno <ueno@gnu.org>
* epg.el (epg--list-keys-1): Ignore fields after the 15th field
......
......@@ -6664,7 +6664,7 @@ only these files will be asked to be saved."
(`add (concat "/:" (apply operation arguments)))
(`insert-file-contents
(let ((visit (nth 1 arguments)))
(prog1
(unwind-protect
(apply operation arguments)
(when (and visit buffer-file-name)
(setq buffer-file-name (concat "/:" buffer-file-name))))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment