all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: 10803@debbugs.gnu.org, rustompmody@gmail.com
Subject: bug#10803: 24.0.93; execute-kbd-macro doesn't preserve current buffer
Date: Mon, 13 Feb 2012 22:54:26 +0530	[thread overview]
Message-ID: <817gzq8x4l.fsf@gmail.com> (raw)


Copy the below snippet to scratch buffer and C-x C-e it.

(with-temp-buffer  
  (message "1:%s" (buffer-name))
  (execute-kbd-macro "ab")
  (message "2:%s" (buffer-name))
  "Done")

This is what gets printed in the message buffer.
1: *temp*<2>
2:*scratch*
"Done"

I am wondering why execute-kbd-macro is meddling with the current
buffer, (that too in not so useful way). 

This bug is raised as a post-mortem of the following thread in
help-gnu-emacs which deals with transliteration from Roman text to
Hindi.

http://lists.gnu.org/archive/html/help-gnu-emacs/2012-02/msg00149.html
http://lists.gnu.org/archive/html/help-gnu-emacs/2012-02/msg00152.html

In GNU Emacs 24.0.93.1 (i386-mingw-nt5.1.2600)
 of 2012-01-30 on MARVIN
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
 `configure --with-gcc (4.6) --no-opt --cflags
 -ID:/devel/emacs/libs/libXpm-3.5.8/include
 -ID:/devel/emacs/libs/libXpm-3.5.8/src
 -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
 -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
 -ID:/devel/emacs/libs/giflib-4.1.4-1/include
 -ID:/devel/emacs/libs/jpeg-6b-4/include
 -ID:/devel/emacs/libs/tiff-3.8.2-1/include
 -ID:/devel/emacs/libs/gnutls-3.0.9/include --ldflags
 -LD:/devel/emacs/libs/gnutls-3.0.9/lib'





             reply	other threads:[~2012-02-13 17:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-13 17:24 Jambunathan K [this message]
2012-02-13 18:16 ` bug#10803: 24.0.93; execute-kbd-macro doesn't preserve current buffer Andreas Schwab
2012-02-25  4:43   ` Chong Yidong
2012-03-04  7:32     ` Rustom Mody

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=817gzq8x4l.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=10803@debbugs.gnu.org \
    --cc=rustompmody@gmail.com \
    /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 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.