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#66149: Mistyping a search breaks keyboard macro Date: Fri, 22 Sep 2023 14:29:08 +0300 Message-ID: <83sf7678fv.fsf@gnu.org> References: <2bba5a744feb000a4ffc1fef79d223fcf24953e7.camel@yandex.ru> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19134"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66149@debbugs.gnu.org To: Konstantin Kharlamov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 22 13:30:13 2023 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 1qjeMP-0004qA-5H for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Sep 2023 13:30:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjeM6-0003Ve-H1; Fri, 22 Sep 2023 07:29:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjeM4-0003VH-I7 for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 07:29:52 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjeM4-0005OK-84 for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 07:29:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjeME-0003pU-P8 for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 07:30: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: Fri, 22 Sep 2023 11:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66149 X-GNU-PR-Package: emacs Original-Received: via spool by 66149-submit@debbugs.gnu.org id=B66149.169538215714640 (code B ref 66149); Fri, 22 Sep 2023 11:30:02 +0000 Original-Received: (at 66149) by debbugs.gnu.org; 22 Sep 2023 11:29:17 +0000 Original-Received: from localhost ([127.0.0.1]:35420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjeLV-0003o3-15 for submit@debbugs.gnu.org; Fri, 22 Sep 2023 07:29:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjeLT-0003nn-AB; Fri, 22 Sep 2023 07:29:15 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjeLD-0005Hw-B7; Fri, 22 Sep 2023 07:28:59 -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=4F8Zqt4ZXD4wh9nuXfb2DioVI3/LMMCRfmH9vavy6tc=; b=Os8NrW87hqCc en0pRQ8zX2Yw/uJsjHISCJYNDfhggz40XR1NXl4whpI9KT26hM+9nRyXqSoS0j+rAp6zzUN0Lt1by DNQSCKtBKb/xp2edBBMGndw1mArDP9/hhypncnOdTJIBsMrZ6+oscCLr/QLKPK9jHKypAnwMz+eXA UeaD7fsLdtDlVbSRHks9K9RSdA3zFvgIGSh7Yz9W4TjRQ+/afBjHBK+ZxmFwsudVpC0gAYX90m04z ahF0Npa+rDM5cEZhd+tdAsTj4K9vhcvHgelam+uc+Panzu/rxriR5gFcTGgOZH9/0yiZFGQLpwWvs gVCEIfbmtmn0IzhRm3WpaQ==; In-Reply-To: <2bba5a744feb000a4ffc1fef79d223fcf24953e7.camel@yandex.ru> (message from Konstantin Kharlamov on Fri, 22 Sep 2023 11:09:59 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:271070 Archived-At: severity 66149 wishlist thanks > From: Konstantin Kharlamov > Date: Fri, 22 Sep 2023 11:09:59 +0300 > > If a user recorded a keyboard macro, upon replaying they expect the actions will be executed exactly as performed during recording. > > Unfortunately that doesn't hold for searches, which is unfortunate, because search is very useful during keyboard-macros. If a user mistypes a search, they usually just remove the offending letters and it just works. However replaying such record fails with `Keyboard macro terminated by a command ringing the bell` > > # Steps to reproduce > > 1. `emacs -Q` > 2. Press `F3` to start recording a macro > 3. Press `C-s` to start search and type `bufg`. The letter `g` will get highlighted in red because there's no such word > 4. Press Backspace to remove `g` letter > 5. Press `f` so the word is `buff` > 6. Finish the macro by pressing `F4` > 7. Execute the macro by pressing `F4` > > ## Expected > > Search succeeds > > ## Actual > > Search fails with `After 0 kbd macro iterations: isearch-search: Keyboard macro terminated by a command ringing the bell` IMNSHO, your expectations are unreasonable. Keyboard macros are not supposed to allow this; if you want something like that, you will need to write a special-purpose command. I've changed the severity of the bug to "wishlist" in cases someone thinks it is feasible to extend the macro facilities to support such expectations. But my personal tendency is to close this bug as notabug.