all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#12208: yes-or-no-p escapes with-current-buffer
@ 2012-08-16  4:37 Steve Hafner
  2012-08-16  9:38 ` martin rudalics
  0 siblings, 1 reply; 11+ messages in thread
From: Steve Hafner @ 2012-08-16  4:37 UTC (permalink / raw)
  To: 12208

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.





^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-08-27  9:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-16  4:37 bug#12208: yes-or-no-p escapes with-current-buffer Steve Hafner
2012-08-16  9:38 ` 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

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.