From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Live System User Newsgroups: gmane.emacs.bugs Subject: bug#33570: 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1543717691 12997 195.159.176.226 (2 Dec 2018 02:28:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Dec 2018 02:28:11 +0000 (UTC) To: 33570@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 02 03:28:07 2018 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 1gTHUM-0003Eu-AR for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Dec 2018 03:28:07 +0100 Original-Received: from localhost ([::1]:43181 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTHWS-0002Kl-Ks for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Dec 2018 21:30:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTHWJ-0002Kc-2k for bug-gnu-emacs@gnu.org; Sat, 01 Dec 2018 21:30:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gTHWF-0001hW-Tt for bug-gnu-emacs@gnu.org; Sat, 01 Dec 2018 21:30:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53170) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gTHWF-0001hM-Q7 for bug-gnu-emacs@gnu.org; Sat, 01 Dec 2018 21:30:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gTHWF-0000xP-DQ for bug-gnu-emacs@gnu.org; Sat, 01 Dec 2018 21:30:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Live System User Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Dec 2018 02:30:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33570 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.15437177753619 (code B ref -1); Sun, 02 Dec 2018 02:30:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Dec 2018 02:29:35 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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.hb8LJMs0jjMg1Tw0qoSEyzD3M Original-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 Original-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) 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-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:152984 Archived-At: 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))