bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12208: yes-or-no-p escapes with-current-buffer


From: Steve Hafner
Subject: bug#12208: yes-or-no-p escapes with-current-buffer
Date: Wed, 15 Aug 2012 22:37:47 -0600

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]