From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Shahid Newsgroups: gmane.emacs.help Subject: Calling macro by name while defining another macro Date: Wed, 21 Mar 2018 18:35:02 -0400 Message-ID: <87vadpgiu9.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1521671633 6130 195.159.176.226 (21 Mar 2018 22:33:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Mar 2018 22:33:53 +0000 (UTC) User-Agent: mu4e 1.0-alpha3; emacs 27.0.50 To: Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 21 23:33:49 2018 Return-path: Envelope-to: geh-help-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 1eymIn-0001Vj-ED for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Mar 2018 23:33:49 +0100 Original-Received: from localhost ([::1]:57806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eymKq-0002MV-HF for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Mar 2018 18:35:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eymK8-0002Dn-95 for help-gnu-emacs@gnu.org; Wed, 21 Mar 2018 18:35:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eymK3-0000G0-Tt for help-gnu-emacs@gnu.org; Wed, 21 Mar 2018 18:35:12 -0400 Original-Received: from mail-qk0-x231.google.com ([2607:f8b0:400d:c09::231]:35067) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eymK3-0000FG-P0 for help-gnu-emacs@gnu.org; Wed, 21 Mar 2018 18:35:07 -0400 Original-Received: by mail-qk0-x231.google.com with SMTP id s188so7255613qkb.2 for ; Wed, 21 Mar 2018 15:35:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:message-id:date:mime-version; bh=n8Wbg3hJnRYEoevZq36asEHU8EJ4x8v3XiS7gEDMPNk=; b=ExW9/1JB+dT18Kuv2gBov1tPHvuF3F/rtq6eXAA4pWlXdFGSvib5BTt9tnb+vFS7F8 bHoNKD6dgs7I/fe7brTcr/EF7oFiXexjXY9v1Tw/ylBI7qbksi/qoOdFHsW+lD0jEOR5 FxtKnNsA3gGArGrwSJXugBkEnY71n+UU7MdUSAlLLCVbP1VoIgB6cQO1oClKa3/8AjT5 NMwPKFC7p9SSKmO3ilCV5AkNeQsUpfm/xsOHk8vyhrRDbq2s4DLzQcNAl2dxsOy7vNM6 ulh7MNHnAk6VtgS9xA+MXvvsOaPfKkXqYOCTkrkA2weJRiL+5Dgqst2PW7UGqNlHu2ip p4zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:message-id:date :mime-version; bh=n8Wbg3hJnRYEoevZq36asEHU8EJ4x8v3XiS7gEDMPNk=; b=tN47o+YfvnIiMwKD4iQCHddKmDG5tKFJAKtDBnJ2b8TUCyJ7sr3Aag1geGpZ26u4HU PcIyqNaQIzQOXSwpWBiAneIkSfbKCb7YQhOSxFtThZ0FOtdsZTDu8sMUh+a+Tx4729Uv xHM1oD4W5CNwmWsiURSAeUGsSTOhLCqRyAkQup8sQ1XzGcfsY0ElxOtX9FMJ3pMgkyYk wE5oCwh55K/O8Bc+JV8fik/f1StwB/7IJeLC34xT8j0cdgRH3BJG/QKYwXFlBUpNiATm ikgmqp6BCYk6TEjQfjN8GT1c+Q2hyZw9kHkaofzmxrUrNoMpsXiLgE7gTjW5CqoF573A bxtQ== X-Gm-Message-State: AElRT7GFOplLN0vrm9+C7DdHRVrBX/kC/sk8JIKMPeHb6r4qHGYrjANj 3wY5BSRRTvoXDjExI/CXUjC4mrjs X-Google-Smtp-Source: AG47ELvdRrZLrq5UUEDMZt4bqUwo4YDlNJvr7PkInb7OT7sPwSvHvwsN2xaCD2FwYNE7nLXoRPsLVQ== X-Received: by 10.55.42.228 with SMTP id q97mr32077705qkq.73.1521671706653; Wed, 21 Mar 2018 15:35:06 -0700 (PDT) Original-Received: from amun ([38.86.168.158]) by smtp.gmail.com with ESMTPSA id o7sm3785159qtc.6.2018.03.21.15.35.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Mar 2018 15:35:06 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::231 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116253 Archived-At: Hi all, I cannot seem to figure out how to call a macro by name from another macro. Simply doing the following causes the macro to be called twice as part of the second macro. 1. define macro using `C-x (' 2. finish the macro `C-x )' 3. name the macro `some-macro' using `name-last-kbd-macro' 4. define another macro using `C-x (' 5. call `some-macro' using `M-x some-macro' (some-macro called once) 6. finish macro editing using `C-x )' 7. call the macro again using `C-x e' (effects of `some-macro' are applied twice) >From looking the new macro definition. It looks like the call to `some-macro' as well as its keys are being recorded as part of the newly defined macro. I cannot figure out how to temporarily stop that recording from happening. Should I use something instead of `M-x' to call `some-macro' ? Thanks, -js