unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
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: Fri, 17 Aug 2012 20:55:26 -0600	[thread overview]
Message-ID: <CAOy7MZLtLoe_qBVo=5373WoeO18SH4nT=ArDu4=7y3VPb+8OeQ@mail.gmail.com> (raw)
In-Reply-To: <CAOy7MZLGtt356XDhMz1UdAu3AOyxB-7GXM4SrWb-20A6QQwneQ@mail.gmail.com>

On Fri, Aug 17, 2012 at 2:24 PM, Steve Hafner <steve.b.hafner@gmail.com> 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)
  (split-window)
  (other-window 1)
  (switch-to-buffer (get-buffer-create "*buffer2*"))
  (insert form)
  (other-window 1))


Steve





  reply	other threads:[~2012-08-18  2:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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='CAOy7MZLtLoe_qBVo=5373WoeO18SH4nT=ArDu4=7y3VPb+8OeQ@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).