From: martin rudalics <rudalics@gmx.at>
To: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Cc: 16882@debbugs.gnu.org
Subject: bug#16882: 24.3.50; with-temp-buffer-window broken
Date: Fri, 28 Feb 2014 11:59:24 +0100 [thread overview]
Message-ID: <53106C0C.6070402@gmx.at> (raw)
In-Reply-To: <87a9dbaek3.fsf@gmail.com>
> 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.
As the bug found by Juanma shows I was fooled by this myself. It should
now behave again in your sense. I still have to explain the behavior in
the manual.
Thanks, martin
next prev parent reply other threads:[~2014-02-28 10:59 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
2014-02-28 10:59 ` martin rudalics [this message]
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=53106C0C.6070402@gmx.at \
--to=rudalics@gmx.at \
--cc=16882@debbugs.gnu.org \
--cc=thierry.volpiatto@gmail.com \
/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).