From unknown Thu Jun 19 14:05:44 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#33570 <33570@debbugs.gnu.org> To: bug#33570 <33570@debbugs.gnu.org> Subject: Status: 26.1.90; Weirdness with prefix arg and kmacro-end-and-call-macro Reply-To: bug#33570 <33570@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:05:44 +0000 retitle 33570 26.1.90; Weirdness with prefix arg and kmacro-end-and-call-ma= cro reassign 33570 emacs submitter 33570 Live System User severity 33570 normal tag 33570 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 01 21:29:35 2018 Received: (at submit) by debbugs.gnu.org; 2 Dec 2018 02:29:35 +0000 Received: from localhost ([127.0.0.1]:57428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gTHVn-0000wJ-1b for submit@debbugs.gnu.org; Sat, 01 Dec 2018 21:29:35 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gTHVk-0000w3-Hm for submit@debbugs.gnu.org; Sat, 01 Dec 2018 21:29:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gTHVe-0000wc-46 for submit@debbugs.gnu.org; Sat, 01 Dec 2018 21:29:27 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:48323) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gTHVe-0000wU-1O for submit@debbugs.gnu.org; Sat, 01 Dec 2018 21:29:26 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTHVc-0002HK-K6 for bug-gnu-emacs@gnu.org; Sat, 01 Dec 2018 21:29:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gTHVZ-0000sz-Dh for bug-gnu-emacs@gnu.org; Sat, 01 Dec 2018 21:29:24 -0500 Received: from sonic310-15.consmr.mail.bf2.yahoo.com ([74.6.135.125]:38451) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gTHVY-0000kv-Dj for bug-gnu-emacs@gnu.org; Sat, 01 Dec 2018 21:29:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1543717759; bh=f6pnlU660AaaoWJb/AaNZ/iv2R6F+JAefojC7D0Q6kc=; h=From:To:Subject:Date:From:Subject; b=pbdD+RHl9h4MGmnv/qY8ZY1blLhNkLyNEtCjGV6xizfS6cSDBUTfrw3DDlq9HmXXzBvLaqhFqLjLIxgEW28GUnuQHXg46jdAELLTJF61qxYNtF6wA6R0xzBy6t8j7gwj2TtqfdUZAkRBK+7eOjll6KaWn4xvNKv/KxomP2uUHyg4bpvQK0329m7PeY8BvEJILLTqY6HQeundWGtTEgHRFWx6k0b8P4h08/ip4EFiXRW2tMQoujg0LcrAbqeBEDyEz/0bFK0NHAaPxiTZ97YRmMHQEAmmvR7MPoh47Q3rvjPbxjXzsZhKqozhFL+A0cte+6MCg66hWn4mJjh8wZ40/Q== X-YMail-OSG: pkaQb7UVM1lL6kPOXEEuCtG2cdbFrvIuJN84xLXQpTTq3kuTcVgcS0.2.Q9gnlj QcU_Dt58QmCdaQnHi2qFVjFfYH1O6ML8KRIfpRThF52eVdRO4cW6olKj_XCeAtE61Mn6_tvy9Eqa 8Ai9NH1QjnJX6uVzUII_yYgKPpa6FcDJq9iuH5FTS.aAPQjpLR2Xow8i69Ngy1mO63gHnJj_.RRv pVzlUFToJRGbTrJ0217SWecdleoj9h5OWx67jwRflT02699FgLzTpvxQG9PIh0JkZhGbhUIYNQQh xHq2QuLL.UhPM_2LxtaAPzArK16NFt7t58nMWQdDBB2DuXnD1oJo9_2rJ3ps3McfOOnEuFFI.ZQU OB2NJflhzI0JveKKRbeLISwgswryvbayqwiLLhTpWkj6jM1MGyB3DvafQI8DSrPQcbzHJDKYXSZM BHRTNiEiSLtz9OHYOrM5vnHocUUB_5nBZkURt9ALPZNvudCezV1Vw1m0Gq6w5oPoA7128I6RKM1L BIl8vbjs4ppInu7HXlr2gnwyKoN5WqQHtz8rNEUrgjnJ6sP4.1P.iOAjI_raT42gAqOeEl_vup5l dAhYwd8l3Cg65XXwO3vAeQgcLTn6SNdTuHHkn63wzNkazv1wMstyhg2A0.Olc8SPB.ZMZoZBQnGO nrc7C2q9hmPhrdeXV4Ygg7MeuAtHSQ23pY524Yp0uhr95tPiEV2sNmYd6fj4LmHDzFlYt1Ssyf5V A6lWDEL1Zo0SiT3ySViipQxvbU209osBDAOxD_nxuaOD6z0vh.N_puO5KJJvSfDY1UsOhPkHpTHf 90A2aPJyYBjKNO0d.hb8LJMs0jjMg1Tw0qoSEyzD3MqptW2ypT5goYmKWGU8aVEisUjU8Cal4f50 TPVx7fbKemTt1t0qVeQqG5XzqY7rZqw.dff.guJqCoAwxNF4TADLYJOgugpgeUr0Kh7r_XKnZMyE 4XeoGbHJby9NfTZQsjaAZt_49wtn1GZ31YpBHzAfDbA_qsDdJB_oTSkzglrtX9Ct3K9sfPwtRAyp Lq026LmpswNz7xNdKw5TvzVyv6gs4lQkT6Xj_ Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.bf2.yahoo.com with HTTP; Sun, 2 Dec 2018 02:29:19 +0000 Received: from c-73-16-70-190.hsd1.ma.comcast.net (EHLO localhost.localdomain) ([73.16.70.190]) by smtp431.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 43dadcf7396be4fc60116d8b62e12c48 for ; Sun, 02 Dec 2018 02:29:15 +0000 (UTC) From: Live System User To: bug-gnu-emacs@gnu.org Subject: 26.1.90; Weirdness with prefix arg and kmacro-end-and-call-macro Date: Sat, 01 Dec 2018 21:28:47 -0500 Message-ID: <87bm644q74.fsf@aol.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi, I am experiencing some weirdness with kmcro-end-and-call-macro. I just "git pull" the latest Emacs 26.1.90 and started it up "emacs - Q", switched to a non-existabt (new) buffer and inserted a file via "C-x i". I then created a macro via "C-x (" ending with "C-x )":: ;; Keyboard Macro Editor. Press C-c C-c to finish; press C-x k RET to cancel. ;; Original keys: 5*; C-a C-n Command: last-kbd-macro Key: none Macro: 5*; ;; self-insert-command C-a ;; move-beginning-of-line C-n ;; next-line What I was trying to do was to comment out some lines in an elisp file by adding semi-colons, going back to the begining of the line and then positoning to the next line. I tested the macro via "C-x e" (kmacro-end-and-call-macro) to make sure it gave the results that I wanted which it did. So I then added a prefix argument: C-u 20 C-x e and saw this: ;;;;;(setq magit-blame-heading-format "%-20a %C %s %H") ;;;;; ;;;;;(setq magit-branch-read-upstream-first nil) ;;;;;(setq magit-branch-arguments nil) ;;;;; ;;;;;;; FIXME: ADD https://github.com/wuliuxiansheng/Emacs_Configuration/blob/;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;master/lisp/init-vc.el It looks like the macro did not go to the next line but stayed on line 41 of a 51-line buffer. What happened? Is there an issue with logical/visual lines and its interection with "C-a" and/or "C-n" used in keyboard macros? Thanks. In GNU Emacs 26.1.90 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.20.10) of 2018-12-01 built on localhost.localdomain Repository revision: af914fc26db273d8788e7efa57c569f0f778d037 Windowing system distributor 'Fedora Project', version 11.0.11803000 Recent messages: nnimap read 166k from imap.aim.com nnimap read 186k from imap.aim.com nnimap read 217k from imap.aim.com nnimap read 242k from imap.aim.com nnimap read 287k from imap.aim.com nnimap read 309k from imap.aim.com Fetching headers for nnimap+aol:INBOX...done Scoring...done Sorting threads...done Generating summary...done Configured using: 'configure 'CFLAGS=-DMAIL_USE_LOCKF -O0 -ggdb3 -pipe -Wall -Werror=format-security -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' LDFLAGS=-Wl,-z,relro --prefix=/tmp/nff/de2/fedora-emacs-src/emacs-26.1.90 --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-lcms2 --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=yes --with-xwidgets --with-modules' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LCMS2 Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Summary Minor modes in effect: gnus-desktop-notify-mode: t 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 buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow emacsbug sendmail sort gnus-cite smiley ansi-color mail-extr gnus-async gnus-bcklg qp gnus-ml disp-table cursor-sensor nndraft nnmh nndoc mm-archive timezone url-http url-gw url-cache url-auth url-handlers utf-7 rfc2104 nnfolder cl-extra help-mode network-stream nsm gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-cache gnus-demon nntp gnus-desktop-notify easy-mmode notifications dbus xml epa-file nnreddit mm-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs url-vars json map gnus-art mm-uu mml2015 mm-view mml-smime smime dig mailcap cl sieve sieve-mode sieve-manage starttls sasl sasl-anonymous sasl-login sasl-plain advice nnir gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc parse-time gnus-spec gnus-int gnus-range message rmc puny seq byte-opt gv bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus wid-edit cl-loaddefs cl-lib nnoo nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils misearch multi-isearch elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors 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 composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray 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 threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting xwidget-internal move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 29561280 90406) (symbols 48 127612 44) (miscs 40 186 553) (strings 32 120553 11941) (string-bytes 1 4166879) (vectors 16 28342) (vector-slots 8 960954 63594) (floats 8 216 558) (intervals 56 9208 152) (buffers 992 35) (heap 1024 592816 512401)) From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 02 02:23:19 2018 Received: (at 33570) by debbugs.gnu.org; 2 Dec 2018 07:23:19 +0000 Received: from localhost ([127.0.0.1]:57510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gTM63-0000WZ-A2 for submit@debbugs.gnu.org; Sun, 02 Dec 2018 02:23:19 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gTM62-0000WN-Ga for 33570@debbugs.gnu.org; Sun, 02 Dec 2018 02:23:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gTM5u-0005Qk-3E for 33570@debbugs.gnu.org; Sun, 02 Dec 2018 02:23:13 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48741) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTM5u-0005Qe-0G; Sun, 02 Dec 2018 02:23:10 -0500 Received: from [176.228.60.248] (port=1318 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gTM5t-0001Nd-6P; Sun, 02 Dec 2018 02:23:09 -0500 Date: Sun, 02 Dec 2018 09:22:56 +0200 Message-Id: <835zwcbdf3.fsf@gnu.org> From: Eli Zaretskii To: Live System User In-reply-to: <87bm644q74.fsf@aol.com> (message from Live System User on Sat, 01 Dec 2018 21:28:47 -0500) Subject: Re: bug#33570: 26.1.90; Weirdness with prefix arg and kmacro-end-and-call-macro References: <87bm644q74.fsf@aol.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33570 Cc: 33570@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Live System User > Date: Sat, 01 Dec 2018 21:28:47 -0500 > > Macro: > > 5*; ;; self-insert-command > C-a ;; move-beginning-of-line > C-n ;; next-line > > > What I was trying to do was to comment out some lines in > an elisp file by adding semi-colons, going back to the > begining of the line and then positoning to the next line. > > I tested the macro via "C-x e" (kmacro-end-and-call-macro) > to make sure it gave the results that I wanted which it did. > So I then added a prefix argument: > > C-u 20 C-x e > and saw this: > > ;;;;;(setq magit-blame-heading-format "%-20a %C %s %H") > ;;;;; > ;;;;;(setq magit-branch-read-upstream-first nil) > ;;;;;(setq magit-branch-arguments nil) > ;;;;; > ;;;;;;; FIXME: ADD https://github.com/wuliuxiansheng/Emacs_Configuration/blob/;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;master/lisp/init-vc.el > > It looks like the macro did not go to the next line but stayed > on line 41 of a 51-line buffer. > > What happened? I don't know, since you didn't show the text before the change, and you only show 6 lines out of 20 that should have been changed. > Is there an issue with logical/visual lines and its > interection with "C-a" and/or "C-n" used in keyboard > macros? C-n moves by visual lines by default, is that what you asked? From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 02 06:29:07 2018 Received: (at 33570) by debbugs.gnu.org; 2 Dec 2018 11:29:07 +0000 Received: from localhost ([127.0.0.1]:57614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gTPvv-0000f6-8V for submit@debbugs.gnu.org; Sun, 02 Dec 2018 06:29:07 -0500 Received: from sonic303-20.consmr.mail.ir2.yahoo.com ([77.238.178.201]:33120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gTPvs-0000eU-1F for 33570@debbugs.gnu.org; Sun, 02 Dec 2018 06:29:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1543750138; bh=GjIHZADGrJOVpRb9+teyMyo5CworUQ9hiWrthHO5ljs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject; b=eajqLVh+fhbHbQ39w2nQTvQpbFIug8heeD3NvaObsZo3xB76JmmcyKlkV4sNOUVGl+AKxioL2HceN2yuEEzepJ3r8xFy3Ww7pN/uXI5luhNalqgCk9dQl9yPfMtOffXVa7xrvIjPtcFENMfTFjVioB9RCd0K4B115nire2wRPFcOALqYPVgj2f2xYetXC8s0esjPEo0E7zKR6cAot7CWp0UyzUEc9jgY758HHZtiqsUEyCHu62Gt3pnp+i/q5D4pbyzIvG8JZcl3hMBg/LzLh4WAc7x1o6QDxHoyfyMurd69GXd0bijHx9M0hmEDFCJ4I5gL2Ir2QrHYEsu9izak2Q== X-YMail-OSG: 53LhsPMVM1nlVap0Co_SNjsd7EBYnFlHGl.ASdmJg9Ny71A0Y0P0MzNQCunVfkb _wNGvWIPnoQTK3DrJvcVZJ0iUcG92Ap6O.gqpbuXO0tl3E_vrMn6J2u3iITEbcP.QZlpNuUb9TSw ed7V62Kd6_XGJJfxXxURK8JnThhkofAdNrUkfP0AXWM7MHDUpexNdNi6cjjJsvdYCze_Uk50y2OX 17xl8UUoUjB1OeR8zj7qv2cqmgaBeF8EzQUjo3nVvoAmjMp05NUXTIzSyhNh5b6GAA0yZwJBqA1u BdvOlen2rEQzrUuPdvvbuFStEsrghRlqL26MWy1KQCZIuMTl8U5VM5vjlo.wJ7p25n5_ahsqn20Q gV1s2NAjFE8NGBuOzawzN3Qv__h0DMdHu5BBRpO3fiRlrK9.nAYUHQQNBCa9Iaw_oDB52hY5oVu8 TM0SU4RXGkhE6ObnHIV9kxioeSjR8ftgLOLUyZo4EIAE0NCgsGoZz3xXKU9RnEcQkoT5p6H.P8vM ZVNdBPFk4HuuGPgMHKa8yGe8Ho2l89xWuJ18LD_HSG2e.dEAnTxMQcVyMMltwONUC5PmumJqu1Z9 VDfIBNMmJO6UClkwED.TGqm9YSP6vPQ632Gei7kKfuOi1iUsfZya_aHv8YSQtN57XJBhgFsidFsQ TUEXkaqYk.VTEj.MGb8RdZ4SI8ehm7tMEBY6YP4eATb12mwwqqC4Lq7VhuYYQDUqDvaFMRiRv2ZX Z70Ykxl7YXelBG9QjwTS3GKndiJ8mYD6DvdCisc_JB1jr8F1IEZlIgXD4N5A5DG3ttlVMKY0zXVt GVQ9q8bT1w6kaoCbraXJ42AKT7EOoZEAstxgjUZwIJBJ0MVkolM8GOb8gqZFilbTCazWQfiu9pJu wD94LoEbLVHkRK._8wO0cuHywiXZC3pLJdd3yrCr1f1Jsr6RHPPBn.6J49QiP74Ilu_JtVIYmg8F ELT8Skjnbnp0FAxtmxrua_LAZHG86YGukZMdrfgm.qjSEYHi3YyyVuk.JozX6FknsHs4EHbILtg2 RgzzQ2k_tHyfSLqfNMCBpcVGoUIUazGN6LUR6fG4Vi16OT1Gi8oi.f6o- Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ir2.yahoo.com with HTTP; Sun, 2 Dec 2018 11:28:58 +0000 Received: from c-73-16-70-190.hsd1.ma.comcast.net (EHLO localhost.localdomain) ([73.16.70.190]) by smtp412.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID ddc0360b3b185e30b6d123f806137ae1; Sun, 02 Dec 2018 11:28:56 +0000 (UTC) From: Live System User To: Eli Zaretskii Subject: Re: bug#33570: 26.1.90; Weirdness with prefix arg and kmacro-end-and-call-macro References: <87bm644q74.fsf@aol.com> <835zwcbdf3.fsf@gnu.org> Date: Sun, 02 Dec 2018 06:28:41 -0500 In-Reply-To: <835zwcbdf3.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 02 Dec 2018 09:22:56 +0200") Message-ID: <87y3982mmu.fsf@aol.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 33570 Cc: 33570@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> From: Live System User >> Date: Sat, 01 Dec 2018 21:28:47 -0500 >> >> Macro: >> >> 5*; ;; self-insert-command >> C-a ;; move-beginning-of-line >> C-n ;; next-line >> >> >> What I was trying to do was to comment out some lines in >> an elisp file by adding semi-colons, going back to the >> begining of the line and then positoning to the next line. >> >> I tested the macro via "C-x e" (kmacro-end-and-call-macro) >> to make sure it gave the results that I wanted which it did. >> So I then added a prefix argument: >> >> C-u 20 C-x e >> and saw this: >> >> ;;;;;(setq magit-blame-heading-format "%-20a %C %s %H") >> ;;;;; >> ;;;;;(setq magit-branch-read-upstream-first nil) >> ;;;;;(setq magit-branch-arguments nil) >> ;;;;; >> ;;;;;;; FIXME: ADD https://github.com/wuliuxiansheng/Emacs_Configuration/blob/;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;master/lisp/init-vc.el >> >> It looks like the macro did not go to the next line but stayed >> on line 41 of a 51-line buffer. >> >> What happened? > > I don't know, since you didn't show the text before the change, and > you only show 6 lines out of 20 that should have been changed. That's because the next lines remained the same: (setq magit-diff-refine-hunk 'all) ; refine all hunks instead of just the ; selected one which you'll notice did NOT add the semi-colons to those 2 lines nor any subsequent lines. The original text starting from the point where rhe macro was called:: (setq magit-display-buffer-function #'magit-display-buffer-fullframe-status-v1) (defadvice magit-status (around magit-fullscreen activate) (window-configuration-to-register :magit-fullscreen) ad-do-it (delete-other-windows)) (global-set-key "\C-c\g" 'magit-status) (defun magit-quit-session () "Restores the previous window configuration and kills the magit buffer" (interactive) (magit-mode-quit-window) (jump-to-register :magit-fullscreen)) ;(define-key magit-status-mode-map (kbd "Q") 'magit-quit-session) ;; Show commit SHA in blame mode. (setq magit-blame-heading-format "%-20a %C %s %H") (setq magit-branch-read-upstream-first nil) (setq magit-branch-arguments nil) ;; FIXME: ADD https://github.com/wuliuxiansheng/Emacs_Configuration/blob/master/lisp/init-vc.el (setq magit-diff-refine-hunk 'all) ; refine all hunks instead of just the ; selected one ;; make diff chunks stand out a bit more: ;(set-face-background 'magit-diff-hunk-heading-highlight "#5d4d7a") > >> Is there an issue with logical/visual lines and its > interection with "C-a" and/or "C-n" used in keyboard > macros? C-n moves by visual lines by default, is that what you asked? Is the long line above ";; FIXME:..." (with the line continuation indicator) 1 visual line and also it's 2 logical ones? IIUC, this would mean that C-n would go to the (logical) line: r/lisp/init-vc.e; and not to the next (visual) line which starts with: (setq magit-diff-refine-hunk ... Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 02 08:51:19 2018 Received: (at 33570) by debbugs.gnu.org; 2 Dec 2018 13:51:19 +0000 Received: from localhost ([127.0.0.1]:57675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gTS9X-0006H3-6z for submit@debbugs.gnu.org; Sun, 02 Dec 2018 08:51:19 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60299) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gTS9V-0006Gq-1j for 33570@debbugs.gnu.org; Sun, 02 Dec 2018 08:51:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gTS9M-0004Qh-Lg for 33570@debbugs.gnu.org; Sun, 02 Dec 2018 08:51:11 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTS9M-0004Qd-Ix; Sun, 02 Dec 2018 08:51:08 -0500 Received: from [176.228.60.248] (port=2030 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gTS9M-0006Vu-76; Sun, 02 Dec 2018 08:51:08 -0500 Date: Sun, 02 Dec 2018 15:50:56 +0200 Message-Id: <83y3989gvz.fsf@gnu.org> From: Eli Zaretskii To: Live System User In-reply-to: <87y3982mmu.fsf@aol.com> (message from Live System User on Sun, 02 Dec 2018 06:28:41 -0500) Subject: Re: bug#33570: 26.1.90; Weirdness with prefix arg and kmacro-end-and-call-macro References: <87bm644q74.fsf@aol.com> <835zwcbdf3.fsf@gnu.org> <87y3982mmu.fsf@aol.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33570 Cc: 33570@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Live System User > Cc: 33570@debbugs.gnu.org > Date: Sun, 02 Dec 2018 06:28:41 -0500 > > Is the long line above ";; FIXME:..." (with the line continuation > indicator) 1 visual line and also it's 2 logical ones? No, it's one logical line and 2 visual lines. So C-a goes to the beginning of the logical line, right before ";; FIXME", and then C-n goes to the next visual line > IIUC, this would mean that C-n would go to the (logical) line: > > r/lisp/init-vc.e; > > and not to the next (visual) line which starts with: > > (setq magit-diff-refine-hunk ... Yes. And thus the following invocations of the macro loop at the same line. IOW, this is not a bug, but the intended behavior. From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 17 20:26:37 2019 Received: (at control) by debbugs.gnu.org; 18 Apr 2019 00:26:37 +0000 Received: from localhost ([127.0.0.1]:41106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGusu-00052p-Nh for submit@debbugs.gnu.org; Wed, 17 Apr 2019 20:26:37 -0400 Received: from mail-qk1-f182.google.com ([209.85.222.182]:46046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGuss-00052b-Vn for control@debbugs.gnu.org; Wed, 17 Apr 2019 20:26:35 -0400 Received: by mail-qk1-f182.google.com with SMTP id z76so178022qkb.12 for ; Wed, 17 Apr 2019 17:26:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:message-id:to:from:subject; bh=md/MCpjGscXzVUXSNrX0CBo2ePszA99DsN86yaru2zY=; b=kH0uV5ROj/XyKK7HJjDOAwT3EEPP4urP7SNeMBIMzzdynSMpyUdh0pUxwQ8kPDks6L u1/w0Fd5pPlaQ99IBdPCHKuYxX8DQiGQQUF4a6AITW8dj2dKiouqZ7q9uP6G7TltPUJL FXmBqOK5V8GVnIhYLyr0Ef7DkxQNDJswVnOObLDfyH66gE92mWkhgSgc6MPaMbwnnlvM nRAKlRs6JGYLBx37r0ZVfOQSTmadeRBzKobefsAwq9rHuFkqnhbJtPmYm/lt1UfQBFhH bz1m2rtKRFOXbS5OIIoVnfkyImNDA1an3b9SY2TS9Bplr0Doj+Htnc0pDEpK0Ztry/6u inCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:to:from:subject; bh=md/MCpjGscXzVUXSNrX0CBo2ePszA99DsN86yaru2zY=; b=uWPR6szR38n9mreaeJPQXXunez4Cw1srnZ50CyL7gcEqbFcoWEtQrgbUtdu0ejDKLQ 11FjHr/sHmaBsOxh6UQi/YnpbL6S313EpJ/tg42pUyfgoNj+irsvOX61TUQkNae6DJUj Bm3tGwEtmr/XfxJEKdBRMjvRPNRtNbzpD6QmAaiVrgsAYhV/FdK3WyK+IgGA0MfnRohR uWKoIGc+UrL0IPkrvs8yejEnz4R9Z3nvNvP0v7DJ2mdu0n2/q8Hyd5mVZ6SGChBodnIg qSZEUpUMiamvLyY06n1D9+4m8mvTEt3J+GEgkTK6b1M6qX9dSAKqhwDdwJt1xQ0Uy1xY p44w== X-Gm-Message-State: APjAAAW8VDt0e8dqPuSjpcUOVAfi5SrkpqFvRQq8JNi1JUWuD5KnlXOe wpltRHldjtxgf26bzoVzGY6qrEvF X-Google-Smtp-Source: APXvYqyVTOslkux7163wTCxye/FJvTOGB2q2GxJ7d0O6s1H6IqGyrxRkyp23iQuHnbgqEPPksyKljg== X-Received: by 2002:a05:620a:1407:: with SMTP id d7mr71655780qkj.189.1555547189418; Wed, 17 Apr 2019 17:26:29 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id o50sm323477qtc.23.2019.04.17.17.26.28 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Apr 2019 17:26:28 -0700 (PDT) Date: Wed, 17 Apr 2019 20:26:28 -0400 Message-Id: <875zrcw43v.fsf@gmail.com> To: control@debbugs.gnu.org From: Noam Postavsky Subject: control message for bug #33570 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 33570 notabug close 33570 quit From unknown Thu Jun 19 14:05:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 16 May 2019 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator