From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marek Twardochlib Newsgroups: gmane.emacs.bugs Subject: bug#25860: 25.1; Double macro execution Date: Fri, 24 Feb 2017 10:23:49 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1487942003 12607 195.159.176.226 (24 Feb 2017 13:13:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 24 Feb 2017 13:13:23 +0000 (UTC) To: 25860@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 24 14:13:16 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 1chFgN-0002N9-Kd for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Feb 2017 14:13:11 +0100 Original-Received: from localhost ([::1]:37264 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chFgT-0006aC-BX for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Feb 2017 08:13:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chFgI-0006W0-M4 for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 08:13:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1chFgE-0007dO-EH for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 08:13:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55426) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1chFgE-0007cr-8x for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 08:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1chFgD-0001vU-Um for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 08:13:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Marek Twardochlib Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Feb 2017 13:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25860 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14879419557367 (code B ref -1); Fri, 24 Feb 2017 13:13:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Feb 2017 13:12:35 +0000 Original-Received: from localhost ([127.0.0.1]:53625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chFfn-0001ul-E6 for submit@debbugs.gnu.org; Fri, 24 Feb 2017 08:12:35 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58340) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chC6b-0003Qc-P8 for submit@debbugs.gnu.org; Fri, 24 Feb 2017 04:24:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1chC6V-0004oY-Fa for submit@debbugs.gnu.org; Fri, 24 Feb 2017 04:23:56 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:33397) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1chC6V-0004oS-Bc for submit@debbugs.gnu.org; Fri, 24 Feb 2017 04:23:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chC6U-0003hW-0G for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 04:23:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1chC6S-0004mS-Rr for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 04:23:53 -0500 Original-Received: from mail-vk0-x22d.google.com ([2607:f8b0:400c:c05::22d]:35902) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1chC6S-0004jr-Ll for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 04:23:52 -0500 Original-Received: by mail-vk0-x22d.google.com with SMTP id t8so8729330vke.3 for ; Fri, 24 Feb 2017 01:23:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=ss+RajzqqqUohAyY7jcv/d+OiWJVgoqzPGDF0u2e7w0=; b=UhwekWgF1rH2ft/ZyaMnw20Nj57sgyKu9NV32hEKfk3pXnHE1bgR5ZYzO4RW7V3Ogc KS5BRTynyVwvG2NWPdbYSbACRYRvLCsOu6z8Os3tqfKWBR/yu7qo63U3On3FPK+Oi4oW t/pJXHXzLujs6Z/Z5v6B/dqGNL+HipHw2f4Qq/WhI9lIrNsqNoHH+dy6FyaHlDgCTmi3 LOo83K07B+mgjkTw8FmacD6FaO7Uo0ykoAnr8OQfEHYaDogSyMWA6mT+/z3XsciCidq7 cTz4+8+FFbdcCe9q+X30sZOb0Uzt2IgqUxKkMror6w812BHE8PMSdw12PJAXdNr36564 lvRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ss+RajzqqqUohAyY7jcv/d+OiWJVgoqzPGDF0u2e7w0=; b=VqQc60J2YvI/Dj6G1c2trRoeVBvqmTSVZuX0VmLwmS5J3O083AgBvwtPqt23T1/T80 ynZAi2XYYADbnGTODJZEFavpEvnDkthDNhF0Ncv1r8jlthmHGF/KzSdhxmvhsnCwIb02 uTwtxGxO+14+uzSDIO2RYjkTAsmieHVRdqtfztTh1UaybnB54vkYUOqneARe112tI1yW O+b+X8uptobPxNvZ3q0zLxRqjG39+9FTw3CyQLuKcRJufXUgkrH1IxJUsFtZ+CKQa/4T 15zB1xJiZwpC6YcKUmq0jOBNfx6RhFx7sHgJ64dDEUtAyNNXPzY0BRKDBR3hmRjnzSSL E+gQ== X-Gm-Message-State: AMke39kPXCyZVSNwOp6Yb8xYByf6E6nWmqzRUvmLcZaCSR45PBYXsyFzXV8WXndLw6C+E39tt2q984jlpPEKYQ== X-Received: by 10.31.63.147 with SMTP id m141mr504251vka.42.1487928230166; Fri, 24 Feb 2017 01:23:50 -0800 (PST) Original-Received: by 10.103.134.13 with HTTP; Fri, 24 Feb 2017 01:23:49 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Fri, 24 Feb 2017 08:12:34 -0500 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:129728 Archived-At: I define a macro that simply insert "a" in the butter and called it insert-a. This is the macro code after C-x C-k C-e: ------------------------------------------------------------------------------ Command: last-kbd-macro Key: none Macro: a ;; self-insert-command RET ;; newline ------------------------------------------------------------------------------ Then I define another macro that simply call the previous macro insert-a. ------------------------------------------------------------------------------ Command: last-kbd-macro Key: none Macro: <> ;; insert-a a ;; self-insert-command RET ;; newline ------------------------------------------------------------------------------ When I call the last macro the "a" will be inserted twice. Expected behaviour is "a" inserted one time. The code of last macro shows already the problem: there is a call to insert-a AND the body of macro insert-a. I use macros on my daily job and this issue is fatal for me. I would be happy if you could fix the bug. Kind regards Marek Twardochlib In GNU Emacs 25.1.1 (x86_64-w64-mingw32) of 2016-11-15 built on LAPHROAIG Windowing system distributor 'Microsoft Corp.', version 6.1.7601 Configured using: 'configure --without-dbus --without-compress-install 'CFLAGS=-O2 -static -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS Important settings: value of $LANG: DEU locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Mark set [2 times] New macro counter value: 1 (1) (Type e to repeat macro) [3 times] Mark set [3 times] Defining kbd macro... Keyboard macro defined Formatting keyboard macro...done Defining kbd macro... Keyboard macro defined Formatting keyboard macro...done Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils cl-seq cl-extra help-mode easymenu edmacro cl-loaddefs pcase cl-lib kmacro time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 16 91644 8248) (symbols 56 19844 0) (miscs 48 55 108) (strings 32 16448 5004) (string-bytes 1 453320) (vectors 16 12026) (vector-slots 8 427102 5471) (floats 8 160 246) (intervals 56 323 31) (buffers 976 18))