From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.bugs Subject: bug#10803: 24.0.93; execute-kbd-macro doesn't preserve current buffer Date: Mon, 13 Feb 2012 22:54:26 +0530 Message-ID: <817gzq8x4l.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1329153949 25602 80.91.229.3 (13 Feb 2012 17:25:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Feb 2012 17:25:49 +0000 (UTC) To: 10803@debbugs.gnu.org, rustompmody@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 13 18:25:48 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rwzer-0004KI-N7 for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Feb 2012 18:25:45 +0100 Original-Received: from localhost ([::1]:40679 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rwzer-0007F3-4m for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Feb 2012 12:25:45 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:43759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rwzel-0007EW-4q for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 12:25:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rwzed-0008Eh-ON for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 12:25:39 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35516) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rwzed-0008Ed-LN for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 12:25:31 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Rwzg6-000314-DW for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 12:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jambunathan K Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Feb 2012 17:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10803 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org, Rustom Mody Original-Received: via spool by submit@debbugs.gnu.org id=B.132915399611554 (code B ref -1); Mon, 13 Feb 2012 17:27:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Feb 2012 17:26:36 +0000 Original-Received: from localhost ([127.0.0.1]:39139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rwzfe-00030I-MV for submit@debbugs.gnu.org; Mon, 13 Feb 2012 12:26:35 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:40361) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rwzfb-000306-Pt for submit@debbugs.gnu.org; Mon, 13 Feb 2012 12:26:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rwzdx-00086L-Mq for submit@debbugs.gnu.org; Mon, 13 Feb 2012 12:24:55 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:56493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rwzdx-00086H-LI for submit@debbugs.gnu.org; Mon, 13 Feb 2012 12:24:49 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:43681) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rwzdw-0006W9-Gb for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 12:24:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rwzdq-00085f-S6 for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 12:24:48 -0500 Original-Received: from mail-pw0-f41.google.com ([209.85.160.41]:47523) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rwzdq-00085a-Ik for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 12:24:42 -0500 Original-Received: by pbcwz17 with SMTP id wz17so5023760pbc.0 for ; Mon, 13 Feb 2012 09:24:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type; bh=k4MNgYMzkPwwz6+x+25Dy/3qVXaiOmgravIZ0Xu45t0=; b=WrmBbL+x6teHTQrMTXk2+tCH01TPVsTdan8B3hB5I/J98s4ne/uOk8uvdioNFiwNEf Nxjg0c2P5SSFevW+/23lALZJH/T02AU2dVUw5ma2p+KJaV4NRmsDPHeS2JSnk12BQd/z bewqK+ZD4fgbZuJCiWGrv04Ni4cHjtcwgPpoM= Original-Received: by 10.68.216.4 with SMTP id om4mr49342405pbc.19.1329153881672; Mon, 13 Feb 2012 09:24:41 -0800 (PST) Original-Received: from JAMBU-NETBOOK ([101.63.214.178]) by mx.google.com with ESMTPS id y9sm41112888pbi.3.2012.02.13.09.24.35 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Feb 2012 09:24:40 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:56856 Archived-At: 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'