From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#25860: 25.1; Double macro execution Date: Mon, 27 Feb 2017 12:18:45 -0500 Message-ID: References: <87zihbbrxr.fsf@linux-m68k.org> <8737f14k68.fsf@gmail.com> <87y3wte87y.fsf@users.sourceforge.net> <83h93hq854.fsf@gnu.org> <87varxdjon.fsf@users.sourceforge.net> <83o9xnpqwo.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1488217155 14959 195.159.176.226 (27 Feb 2017 17:39:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 27 Feb 2017 17:39:15 +0000 (UTC) Cc: 25860@debbugs.gnu.org, Paul Eggert , Tino Calancha , John Wiegley , wasserwerk.studio@googlemail.com, Andreas Schwab To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 27 18:39:09 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 1ciPGJ-0002pM-76 for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Feb 2017 18:39:03 +0100 Original-Received: from localhost ([::1]:55144 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciPGP-00039U-7C for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Feb 2017 12:39:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciOx0-0004cl-FM for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2017 12:19:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ciOww-0001aJ-FK for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2017 12:19:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60396) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ciOww-0001a3-Bp for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2017 12:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ciOww-0001aU-3u for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2017 12:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Feb 2017 17:19: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.14882159346077 (code B ref 25860); Mon, 27 Feb 2017 17:19:02 +0000 Original-Received: (at 25860) by debbugs.gnu.org; 27 Feb 2017 17:18:54 +0000 Original-Received: from localhost ([127.0.0.1]:58588 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ciOwn-0001Zt-Ca for submit@debbugs.gnu.org; Mon, 27 Feb 2017 12:18:53 -0500 Original-Received: from mail-ot0-f171.google.com ([74.125.82.171]:35734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ciOwl-0001ZX-PE for 25860@debbugs.gnu.org; Mon, 27 Feb 2017 12:18:52 -0500 Original-Received: by mail-ot0-f171.google.com with SMTP id w44so56197984otw.2 for <25860@debbugs.gnu.org>; Mon, 27 Feb 2017 09:18:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=8FREzJz2WS64T2OPpnKc4UDfoI54T06etHTy/aMOw+U=; b=KUZJ4M+4QatQr4EJjmgEteHsfRL9LE3rtlg2RAZwffT6tdJ3ZDQaHrVRuKuZiD6tX1 2IviLii72vp5TGqxJ6EpI2QgoZIbpkwbCFSIMYP5v32O8KqPVhBgf3hj6Ac5/r9GTNFO zkUGIgX3tipO3DTwjMkRaENLrSzgNLStuWNbU+O1Z75aOLi4FWF3ed1UV2XYZnPqoZJ/ aOvxgmAyZ4HBvapFhMGZnF4iLsyqr7fm/ijdo0mmRoJW6/CNguSVa9W6Q5Gm/CRmCe0o 7aFXf8F7p2jI6NMR8AyOfXvZQ7ZcGkkBjnXe/WeeNuHGxDz9483cy5KvK0+rwhod6/cy kKgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=8FREzJz2WS64T2OPpnKc4UDfoI54T06etHTy/aMOw+U=; b=j2OSwMCrdxHiEv7/5FkBa0oTA5twZHUDPumTJlmmCKhL0DkpN580IsQXcXaNRGHLB+ JmNZB4WBQI9O1ajGhWAhCTEyrb1Nu/dIsa/67STtg5j7OTcuV1Zfb6rzWAGatvta58vv QoK8IztuRKgQAqMBklOSCeS2beUjyZOS5AVdSZysDZu+DHFzsKMZSoNnCl6w8nH5clpX gEfqMmh1vvnEXDGkER23kF0KqWvGMpBj98chlBFB8SOejGG72iw/h3orFHaagBIhyrDE i1OBBGVxLpNHQx8cL/6L6fAKdUe8+aRdx8oBs2gZ0yiuF07TAFnQ94nOVXLWxNIL3VRy effA== X-Gm-Message-State: AMke39llL7SRYY0ysNwHrIK8uttLwJ24gWMFvhWFI1qWq/33xwou0ZQmtCDm4B4SV8R6XCPliUGPbKYexVv0bg== X-Received: by 10.157.4.36 with SMTP id 33mr8556098otc.221.1488215926096; Mon, 27 Feb 2017 09:18:46 -0800 (PST) Original-Received: by 10.157.35.87 with HTTP; Mon, 27 Feb 2017 09:18:45 -0800 (PST) In-Reply-To: <83o9xnpqwo.fsf@gnu.org> X-Google-Sender-Auth: Whe4Dwaf3ykIPPJuMvkm5rPIMeY 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:129889 Archived-At: On Mon, Feb 27, 2017 at 10:57 AM, Eli Zaretskii wrote: > > 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... C-x ( is bound to kmacro-start-macro which refuses to define a macro while a macro is executing: (defun kmacro-start-macro (arg) ... (if (or defining-kbd-macro executing-kbd-macro) (message "Already defining keyboard macro.") ...) I tried making a macro to call M-x start-kbd-macro directly: <> ;; start-kbd-macro zzz ;; self-insert-command * 3 <> ;; end-kbd-macro Executing that macro seems to define an empty macro though (i.e., the "zzz" only gets inserted while running the outer defining macro, but hitting C-x e after is a nop (apart from the (Type e to repeat macro) message appearing)). Probably start-kbd-macro should also refuse to run if a macro is executing as it fails to do anything useful in this case.