From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25860: 25.1; Double macro execution Date: Mon, 27 Feb 2017 17:57:59 +0200 Message-ID: <83o9xnpqwo.fsf@gnu.org> References: <87zihbbrxr.fsf@linux-m68k.org> <8737f14k68.fsf@gmail.com> <87y3wte87y.fsf@users.sourceforge.net> <83h93hq854.fsf@gnu.org> <87varxdjon.fsf@users.sourceforge.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1488211893 11947 195.159.176.226 (27 Feb 2017 16:11:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 27 Feb 2017 16:11:33 +0000 (UTC) Cc: 25860@debbugs.gnu.org, eggert@cs.ucla.edu, tino.calancha@gmail.com, jwiegley@gmail.com, wasserwerk.studio@googlemail.com, schwab@linux-m68k.org To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 27 17:11:28 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ciNtX-0002Zs-TR for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Feb 2017 17:11:28 +0100 Original-Received: from localhost ([::1]:54002 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciNtd-0004Yl-Nd for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Feb 2017 11:11:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciNhc-00037u-LT for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2017 10:59:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ciNhX-0003sf-4i for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2017 10:59:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60270) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ciNhX-0003sM-0v for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2017 10:59:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ciNhW-0008Ba-Ab for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2017 10:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Feb 2017 15:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25860 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 25860-submit@debbugs.gnu.org id=B25860.148821111831437 (code B ref 25860); Mon, 27 Feb 2017 15:59:02 +0000 Original-Received: (at 25860) by debbugs.gnu.org; 27 Feb 2017 15:58:38 +0000 Original-Received: from localhost ([127.0.0.1]:58469 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ciNh7-0008Az-Vj for submit@debbugs.gnu.org; Mon, 27 Feb 2017 10:58:38 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43643) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ciNh6-0008Am-AW for 25860@debbugs.gnu.org; Mon, 27 Feb 2017 10:58:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ciNgz-0003ZN-2a for 25860@debbugs.gnu.org; Mon, 27 Feb 2017 10:58:31 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciNga-0003Mp-VG; Mon, 27 Feb 2017 10:58:05 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2758 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ciNgZ-0001a4-Vn; Mon, 27 Feb 2017 10:58:04 -0500 In-reply-to: <87varxdjon.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:129885 Archived-At: > From: npostavs@users.sourceforge.net > Cc: 25860@debbugs.gnu.org, eggert@cs.ucla.edu, tino.calancha@gmail.com, jwiegley@gmail.com, wasserwerk.studio@googlemail.com, schwab@linux-m68k.org > Date: Sun, 26 Feb 2017 11:02:32 -0500 > > Eli Zaretskii writes: > > > I admit that I don't see myself as an expert on all the complexity > > that goes on in keyboard.c and friends. With this change, > > kmacro-tests.el still passes, but I'm not sure that's good enough > > (e.g., can a macro define another macro when it runs? if so, this > > change will get in the way). > > AFAICT, you can't define a macro from a macro: > > DEFUN ("start-kbd-macro", Fstart_kbd_macro, Sstart_kbd_macro, 1, 2, "P", > ... > { > if (!NILP (KVAR (current_kboard, defining_kbd_macro))) > error ("Already defining kbd macro"); Yes, but that's not the scenario I had in mind. What I had in mind is a macro that, when run, will call start-kbd-macro etc. It's clear that such a macro cannot be easily defined using F3 and F4, but perhaps some ingenious method with using some Lisp data in the macro... Anyway, if no objections come up in a few days, I will push this. Thanks for the feedback.