]> git.eshelyaron.com Git - emacs.git/commitdiff
* files.el (file-name-non-special): Wrap the call of
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 7 Nov 2014 14:42:51 +0000 (15:42 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 7 Nov 2014 14:42:51 +0000 (15:42 +0100)
`insert-file-contents' by `unwind-protect', in order to set the
buffer's file name anyway.

Fixes: debbugs:18891
lisp/ChangeLog
lisp/files.el

index c134e589c303e701d5486f3a02bcc4e3fa43f027..7c7683a5f82a3abe93e0f86a9e792368c36db76c 100644 (file)
@@ -1,3 +1,9 @@
+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
index 5ed5f8a6e1e50ee97c85bb5796ae9d27a938397b..edcb459e26df893e6ca29cd82137625cc103b49b 100644 (file)
@@ -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))))))