From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#25860: 25.1; Double macro execution Date: Sun, 26 Feb 2017 11:02:32 -0500 Message-ID: <87varxdjon.fsf@users.sourceforge.net> References: <87zihbbrxr.fsf@linux-m68k.org> <8737f14k68.fsf@gmail.com> <87y3wte87y.fsf@users.sourceforge.net> <83h93hq854.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1488124938 25269 195.159.176.226 (26 Feb 2017 16:02:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 26 Feb 2017 16:02:18 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) 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: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 26 17:02:12 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 1ci1Gx-0005O1-5J for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Feb 2017 17:02:07 +0100 Original-Received: from localhost ([::1]:47359 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ci1H2-00075B-7m for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Feb 2017 11:02:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39448) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ci1Gv-00074s-Oc for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2017 11:02:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ci1Gs-0005vQ-Lu for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2017 11:02:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58740) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ci1Gs-0005uw-Hv for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2017 11:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ci1Gs-0003QV-6O for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2017 11:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Feb 2017 16:02: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.148812488813122 (code B ref 25860); Sun, 26 Feb 2017 16:02:02 +0000 Original-Received: (at 25860) by debbugs.gnu.org; 26 Feb 2017 16:01:28 +0000 Original-Received: from localhost ([127.0.0.1]:56938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ci1GJ-0003PY-Mz for submit@debbugs.gnu.org; Sun, 26 Feb 2017 11:01:28 -0500 Original-Received: from mail-it0-f65.google.com ([209.85.214.65]:34943) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ci1GI-0003PL-DU for 25860@debbugs.gnu.org; Sun, 26 Feb 2017 11:01:26 -0500 Original-Received: by mail-it0-f65.google.com with SMTP id 203so9117418ith.2 for <25860@debbugs.gnu.org>; Sun, 26 Feb 2017 08:01:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=e9K1bE5XoiRf3HPeEoPXNrMeixiPbE7x7sHNRMfWJPI=; b=vKJjEvw+v9lgzfkfG7CPaLdo6auEIfV4zgbvZX6iUzLOvzGFoS+c/n4c9TrftYviog smGmnRxTRROC8gyrddIX+oa/uvHc2hTKXimJXRG2uwYNUhIxhm3lC+Lz1vThRvGa+UBI +XmL6RVXfzC6JUxuK8dtEmM61629N+qK2bwqlepXmMcvtmyJfRioqMmTUfVjJoQ/LikI Qew6+RcPyJwwwZ2al0MBqWI/mpOyZzSjBQ9lT4lf/BZPmgZlOuTgPUDKp/oe9iA3KDhR DR4F28ONtYPvQygbjpVargkrNNusPgFLq9T2cQKUvaxRg557SFCV5gVj1SA0nlTpSEGy aJOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=e9K1bE5XoiRf3HPeEoPXNrMeixiPbE7x7sHNRMfWJPI=; b=qa/MlYe25nicCv9AlgeMJ4Oss+iONsdo8FEWh5eGwJ4CHIfKTdGByjVN7GDnswmORv vZO77joRhDqe8X/c9tYwI/BdAv2fY5bDxVmhZspVKziisz0C3ywUXCjUQVnPXV0yflLk wlJf/6fmFqSt48OMCaCT9D5VkgSA5Cre84pMwbvW6CDDfVuJ5KmCpC5xglwe9aKD3qf3 gIjdw2YKHkaMFeI6dsXgX4W2nCGV3ujjKeCmRlfpz06zVTSpZ5YFN/FFs0K8QTN9CLPY UC4kUvDd3UP6i7WrvhXycqz6+AgQFezIO2Lgl6c+8i40flbURr3aqKQVcl5kLeQusjEi aY/g== X-Gm-Message-State: AMke39kLfnMzDGfLsVN8h+YFsd2y59mG7Hl2EEtqjW7iu6e2qL0M4i2NXKPDegpNYFJ4EA== X-Received: by 10.36.62.133 with SMTP id s127mr11417467its.110.1488124880746; Sun, 26 Feb 2017 08:01:20 -0800 (PST) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id m202sm5660078ioe.62.2017.02.26.08.01.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 26 Feb 2017 08:01:19 -0800 (PST) In-Reply-To: <83h93hq854.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 26 Feb 2017 17:33:27 +0200") 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:129825 Archived-At: 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"); Not sure if there might be some other complications though.