From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#55514: 29.0.50; Keyboard macros and visual-line-mode Date: Thu, 19 May 2022 10:08:18 +0300 Message-ID: <837d6idmot.fsf@gnu.org> References: <87o7zu9tay.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35367"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55514@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 19 09:09:55 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 1nraIE-0008ug-4o for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 May 2022 09:09:54 +0200 Original-Received: from localhost ([::1]:48680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nraIC-0001cZ-QJ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 May 2022 03:09:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nraHP-0001bk-1r for bug-gnu-emacs@gnu.org; Thu, 19 May 2022 03:09:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40408) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nraHO-00043s-PF for bug-gnu-emacs@gnu.org; Thu, 19 May 2022 03:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nraHO-0003Ch-IQ for bug-gnu-emacs@gnu.org; Thu, 19 May 2022 03:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 May 2022 07:09: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.165294411512274 (code B ref 55514); Thu, 19 May 2022 07:09:02 +0000 Original-Received: (at 55514) by debbugs.gnu.org; 19 May 2022 07:08:35 +0000 Original-Received: from localhost ([127.0.0.1]:34305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nraGw-0003Bu-LX for submit@debbugs.gnu.org; Thu, 19 May 2022 03:08:34 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nraGt-0003Bh-T6 for 55514@debbugs.gnu.org; Thu, 19 May 2022 03:08:32 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52148) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nraGm-0003z6-T6; Thu, 19 May 2022 03:08:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=mu65LWStezTZ/gb0pZEcwF3IquVEXgBVArGdS1frBeE=; b=kJsF19yZWOnv 5Nj7CdCCcZqd+MXKxnY2Z+yjdKo0LSMCUzZBjLjoj9vjqIoY/5Uzrli/NzkXjlYRuQX5rW4uo8VPO yrITrWrybKnuliK9Y5g3cHp4bLTeYHpDo2w2YoFfydKSgGYM5FcbAchmPqiG3n5kBDYQQMldKi0SS ZadwAw/2cIgPBM0WxcwllyKUYEDmOPrEMJeeJmskMHwHzYzOov3gG0PNaWTPDYrmqw3xQqWg3KeT+ lo4YIHaXuWQh3M1/R5m63KdhmsFDuX9T8kug4ngZ9eyIRuy4usehmxnt6LLbIMezynvV4cVpJpYwo 5QoTHk0y3XUsIwuVzc8wWg==; Original-Received: from [87.69.77.57] (port=3865 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nraGk-0005Zq-2y; Thu, 19 May 2022 03:08:23 -0400 In-Reply-To: <87o7zu9tay.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 19 May 2022 03:59:01 +0200) 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:232620 Archived-At: > From: Lars Ingebrigtsen > Date: Thu, 19 May 2022 03:59:01 +0200 > > visual-line-mode is nice, but it has one major drawback -- it makes > not "reliable" when recording macros. > > That is, if you record > > C-x ( C-SPC C-k C-x ) > > (i.e., "kill two lines"), you can't really use `C-x e' to do much of > anything, because the buffer may have too-long lines that makes > move down into the middle of a logical line. > > So perhaps we should have a user option that remaps > next-line/previous-line to next-logical-line/previous-logical-line while > inside a `C-x ('? > > (Or something to that effect -- perhaps the user option should make `C-x > (' switch visual-line-mode off and exiting recording switches it on > again (and the recorded macro would also contain those commands). Maybe all we need is to add a hook that will be called by kmacro-call-macro before running the macro. Then users can do whatever they like in that hook, including turning off line-move-visual (which I'm guessing is what you meant, not visual-line-mode). We could also have a new user option to turn that off automatically while running a macro, but that sounds too specific to some uses of macros in some use cases, not something many users will want in many cases.