[Top][All Lists]

[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: Fri, 17 Aug 2012 20:55:26 -0600

On Fri, Aug 17, 2012 at 2:24 PM, Steve Hafner <address@hidden> wrote:
> code before. I'm sorry to say I can't judge whether or not your patch
> breaks anything.

Actually, I'm coming up with a few problems. I applied your patch to
Git sources, and evaluating from buffer1 leaves the point at position
2.  Things seem to work correctly in buffer2, though.

And trying yes-or-no-p again, the behavior is the same as in my original post:

(let ((form
       "(with-current-buffer \"*buffer1*\"
  (goto-char (point-min))
  (yes-or-no-p \"\")
  (setq x (1+ x))
  (insert (format \"%s\" x)))"))
  (setq x 0)
  (switch-to-buffer (get-buffer-create "*buffer1*"))
  (insert form)
  (other-window 1)
  (switch-to-buffer (get-buffer-create "*buffer2*"))
  (insert form)
  (other-window 1))


reply via email to

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