all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Richard M. Stallman" <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: with-temp-buffer, insert-file-content and errors
Date: Sun, 17 Jul 2005 02:45:26 -0400	[thread overview]
Message-ID: <E1Du2ty-0000Wx-3m@fencepost.gnu.org> (raw)
In-Reply-To: <uhdevel3e.fsf@yahoo.fr> (message from drkm on Sat, 16 Jul 2005 00:54:45 +0200)

	(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.)

  reply	other threads:[~2005-07-17  6:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-15 22:54 with-temp-buffer, insert-file-content and errors drkm
2005-07-17  6:45 ` Richard M. Stallman [this message]
2005-07-17 12:11   ` drkm
2005-07-18 23:11   ` Michael Olson
2005-07-19 14:34     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1Du2ty-0000Wx-3m@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.