From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#55514: 29.0.50; Keyboard macros and visual-line-mode Date: Sat, 21 May 2022 13:40:38 +0200 Message-ID: <87wnefyuyx.fsf@gnus.org> References: <87o7zu9tay.fsf@gnus.org> <837d6idmot.fsf@gnu.org> <87leux8505.fsf@gnus.org> <83wnegbsbk.fsf@gnu.org> <87y1yw65gw.fsf@gnus.org> <83o7zsbrdk.fsf@gnu.org> <87tu9k64w5.fsf@gnus.org> <83mtfcbhxz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="602"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 55514@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 21 13:44:34 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nsNX8-000AXr-Bl for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 May 2022 13:44:34 +0200 Original-Received: from localhost ([::1]:42680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsNX6-00009K-Tm for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 May 2022 07:44:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsNTj-0006aJ-5Q for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 07:41:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46911) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nsNTi-0005eq-Jl for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 07:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nsNTi-0006uS-GF for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 07:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 May 2022 11:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55514 X-GNU-PR-Package: emacs Original-Received: via spool by 55514-submit@debbugs.gnu.org id=B55514.165313325226532 (code B ref 55514); Sat, 21 May 2022 11:41:02 +0000 Original-Received: (at 55514) by debbugs.gnu.org; 21 May 2022 11:40:52 +0000 Original-Received: from localhost ([127.0.0.1]:40808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsNTX-0006tr-UN for submit@debbugs.gnu.org; Sat, 21 May 2022 07:40:52 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:44980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsNTU-0006td-IQ for 55514@debbugs.gnu.org; Sat, 21 May 2022 07:40:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=sIxPLgl323b+cJOZsYdfV6fs/mG34ylpsWeJvg4EMNc=; b=mGFSjYG5Q7sSKgoNRj0dbFWK29 85zuPaFm7+7a5J7rQjrSpdL9FMCJ7krPUaArAMJb7JKe4bxgCrCsghMoACdtGwpFgU4qA6JefmUdM 0eU7x0YZM9Uw+vlJ8ogD9phylDRX2v2y/Gjq64WmdyRPfarZGARpDUJjnrUWYcS55bAo=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nsNTL-0002mK-LK; Sat, 21 May 2022 13:40:42 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAAAXNSR0IArs4c6QAAAAxQTFRF sLCwf39+MzMx////WgGxBQAAAAFiS0dEAxEMTPIAAAAHdElNRQfmBRULIyAqfMKqAAAA/ElEQVQo z33SO27DMAwAUMqIPHeIDdRH6CncIUsnBbAKJHuH6hQ9goe6Q2cpgHjKkvpyqgADfKAoi7QB/l/v 3z1eEO1agYjhXOKRgNakWDlG2BJOmNaF46c54+AjtreMwEWry0AuupYYL7Rvrtgpc6+IBoYfbILh twFhiDLDiAV0s0fLUDOEkGu4geN+FIDDXX888jZ6a3y9MTxhQksPrS/uyHnQDUtIY0jdwbjysGIe ljLauQqaW3T4WQY3o3/BOtIBzfNex6viupgOONdZw+ihfQRYvPhWLkqIjArXjhlDx01AW3GAtqe+ a7Kq3QU2+XtYESvCZAR6ptf8AXSIl74uHR0nAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA1LTIx VDExOjM1OjMyKzAwOjAwQFCg4gAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNS0yMVQxMTozNToz MiswMDowMDENGF4AAAA4dEVYdGljYzpjb3B5cmlnaHQAQ29weXJpZ2h0IChjKSAxOTk4IEhld2xl dHQtUGFja2FyZCBDb21wYW55+Vd5NwAAACF0RVh0aWNjOmRlc2NyaXB0aW9uAHNSR0IgSUVDNjE5 NjYtMi4xV63aRwAAACZ0RVh0aWNjOm1hbnVmYWN0dXJlcgBJRUMgaHR0cDovL3d3dy5pZWMuY2gc fwBMAAAAN3RFWHRpY2M6bW9kZWwASUVDIDYxOTY2LTIuMSBEZWZhdWx0IFJHQiBjb2xvdXIgc3Bh Y2UgLSBzUkdCRFNIqQAAAABJRU5ErkJggg== X-Now-Playing: Kelly Lee Owens's _Inner Song_: "On" In-Reply-To: <83mtfcbhxz.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 20 May 2022 13:46:00 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:232813 Archived-At: Eli Zaretskii writes: > As I said earlier, we could add a special value of line-move-visual, > which would mean "move by visual lines, except when executing macros", > which would I think solve your problem. That seems like a heavier solution than I had envisioned (without looking at the code). You can bind keyboard macros to keys and have them executed, and the point is that they should execute the same way as they were recorded. That's the fantastic utility of recording keyboard macros, after all. I don't think a setting that affects line-move-visual in this way would be all that sturdy. You can, for instance, record a macro, save it to a file, and use it later. It would be awkward if flipping a setting then affects how the macro executes. I think having recorded as `M-x next-logical-line' (etc), or something to that effect, is the way to go here. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no