From: Steve Hafner <steve.b.hafner@gmail.com>
To: 12208@debbugs.gnu.org
Subject: bug#12208: yes-or-no-p escapes with-current-buffer
Date: Wed, 15 Aug 2012 22:37:47 -0600 [thread overview]
Message-ID: <CAOy7MZ+5-yBqH0jEKAmGPxKoqETWRMd=8VaSVvG=GSsE2mjfLQ@mail.gmail.com> (raw)
Open two buffers "buffer1" and "buffer2" so that both are visible.
Place the following in each buffer
(with-current-buffer "buffer1"
(goto-char (point-min))
(yes-or-no-p "")
(insert "X"))
C-xC-e from buffer1 places "X" at the beginning of the file, while
C-xC-e from buffer2 places an "X" wherever the point was before moving
from buffer1. This doesn't happen if only one buffer is visible; Nor
does it happen if we replace "yes-or-no-p" with "y-or-n-p".
This happens on both 23.3.1 and 24.1.
next reply other threads:[~2012-08-16 4:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-16 4:37 Steve Hafner [this message]
2012-08-16 9:38 ` bug#12208: yes-or-no-p escapes with-current-buffer martin rudalics
2012-08-16 20:36 ` Steve Hafner
2012-08-17 12:09 ` martin rudalics
2012-08-17 15:18 ` martin rudalics
2012-08-17 20:24 ` Steve Hafner
2012-08-18 2:55 ` Steve Hafner
2012-08-18 13:15 ` martin rudalics
2012-08-18 16:39 ` Steve Hafner
2012-08-18 17:38 ` martin rudalics
2012-08-27 9:15 ` 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='CAOy7MZ+5-yBqH0jEKAmGPxKoqETWRMd=8VaSVvG=GSsE2mjfLQ@mail.gmail.com' \
--to=steve.b.hafner@gmail.com \
--cc=12208@debbugs.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 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).