(defun drkm:test ()
          (interactive)
          (with-temp-buffer
            (insert-file-contents "/tmp/an-existing-file" t)
            (insert "To modify the buffer...")
            (error "Some error")))

I think it is incorrect to use insert-file-contents with VISIT non-nil
on a temp buffer, so I think we don't need to try to fix this.
(It would not be easy, since the unwind-protect cleanup has to
execute before the error message gets displayed.)


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to