From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: martin rudalics <rudalics@gmx.at>
Cc: 16882@debbugs.gnu.org, Thierry Volpiatto <thierry.volpiatto@gmail.com>
Subject: bug#16882: 24.3.50; with-temp-buffer-window broken
Date: Fri, 28 Feb 2014 08:20:44 +0100 [thread overview]
Message-ID: <87a9dbaek3.fsf@gmail.com> (raw)
In-Reply-To: <530DBF1E.3090106@gmx.at>
martin rudalics <rudalics@gmx.at> writes:
> The idea is that from Emacs' POV the temporary buffer
> doesn't exist unless you consider standard output part of that view.
Just a note on this: (Sorry to insist)
You expect here the code of 'body' returns a stream like prin* function
family does, but IMHO 'body' should be any code that is self
contained in the "temp-buffer-window" and not elsewhere.
IOW the actual version is not safe in this sens because it may affect
the current-buffer.
I suspect already existing code is affected by this new behavior.
Try:
(with-temp-buffer-window "foo" nil nil (princ "hello"))
and now
(with-temp-buffer-window "foo" nil nil (insert "hello"))
I expect here "hello" to be inserted in "foo" buffer, but actually it
corrupt current-buffer.
--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
next prev parent reply other threads:[~2014-02-28 7:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-25 18:40 bug#16882: 24.3.50; with-temp-buffer-window broken Thierry Volpiatto
2014-02-25 19:00 ` Glenn Morris
2014-02-25 19:43 ` Thierry Volpiatto
2014-02-26 10:17 ` martin rudalics
2014-02-26 10:34 ` Thierry Volpiatto
2014-02-28 7:20 ` Thierry Volpiatto [this message]
2014-02-28 10:59 ` martin rudalics
2014-02-28 12:43 ` Thierry Volpiatto
2014-02-28 18:28 ` martin rudalics
2014-03-16 10:01 ` martin rudalics
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a9dbaek3.fsf@gmail.com \
--to=thierry.volpiatto@gmail.com \
--cc=16882@debbugs.gnu.org \
--cc=rudalics@gmx.at \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).