[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: with-temp-buffer, insert-file-content and errors
From: |
Richard M. Stallman |
Subject: |
Re: with-temp-buffer, insert-file-content and errors |
Date: |
Sun, 17 Jul 2005 02:45:26 -0400 |
(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.)