From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Konstantin Kharlamov Newsgroups: gmane.emacs.bugs Subject: bug#66149: Mistyping a search breaks keyboard macro Date: Fri, 22 Sep 2023 14:40:50 +0300 Message-ID: <941792f60e494609c2823c152296de5eed554bff.camel@yandex.ru> References: <2bba5a744feb000a4ffc1fef79d223fcf24953e7.camel@yandex.ru> <83sf7678fv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="860"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.48.4 Cc: 66149@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 22 13:42:05 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 1qjeXt-000AbM-0W for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Sep 2023 13:42:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjeXn-0006kw-1J; Fri, 22 Sep 2023 07:41:59 -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 1qjeXg-0006km-1T for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 07:41: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 1qjeXf-0008Dg-Pu for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 07:41:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjeXq-0006o0-5Y for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 07:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Sep 2023 11:42: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.169538288926115 (code B ref 66149); Fri, 22 Sep 2023 11:42:02 +0000 Original-Received: (at 66149) by debbugs.gnu.org; 22 Sep 2023 11:41:29 +0000 Original-Received: from localhost ([127.0.0.1]:35450 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjeXF-0006n1-FN for submit@debbugs.gnu.org; Fri, 22 Sep 2023 07:41:29 -0400 Original-Received: from forward502b.mail.yandex.net ([2a02:6b8:c02:900:1:45:d181:d502]:58330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjeWy-0006mR-JN for 66149@debbugs.gnu.org; Fri, 22 Sep 2023 07:41:24 -0400 Original-Received: from mail-nwsmtp-smtp-production-main-29.myt.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-29.myt.yp-c.yandex.net [IPv6:2a02:6b8:c12:5586:0:640:b3c3:0]) by forward502b.mail.yandex.net (Yandex) with ESMTP id E27915E762; Fri, 22 Sep 2023 14:40:51 +0300 (MSK) Original-Received: by mail-nwsmtp-smtp-production-main-29.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id oeJsc62WrKo0-lxY923Zh; Fri, 22 Sep 2023 14:40:51 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1695382851; bh=S6PxUm/vrjrkoo8UGMSyAuetaXAuHoXDHRUfukILv2M=; h=References:Date:In-Reply-To:Cc:To:From:Subject:Message-ID; b=Am/48wVaTbaqRJ+nY0tdpkPGze1Aacxx0d/c+vG63F3jzKIT3HMqgrDXrErVxGQlJ yqmMkA6FojsfmBSro2ALQVNlxluNi2VnHL1p/XoOGRgkLXHpxtxsakrSMvpyOU/SFa nZ/OKWaV6k4pBQvn79sGUGxSiLiZtj+XcKUEpIwc= Authentication-Results: mail-nwsmtp-smtp-production-main-29.myt.yp-c.yandex.net; dkim=pass header.i=@yandex.ru In-Reply-To: <83sf7678fv.fsf@gnu.org> 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:271074 Archived-At: On Fri, 2023-09-22 at 14:29 +0300, Eli Zaretskii wrote: > severity 66149 wishlist > thanks >=20 > > From: Konstantin Kharlamov > > Date: Fri, 22 Sep 2023 11:09:59 +0300 > >=20 > > If a user recorded a keyboard macro, upon replaying they expect the > > actions will be executed exactly as performed during recording. > >=20 > > 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` > >=20 > > # Steps to reproduce > >=20 > > 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` > >=20 > > ## Expected > >=20 > > Search succeeds > >=20 > > ## Actual > >=20 > > Search fails with `After 0 kbd macro iterations: isearch-search: > > Keyboard macro terminated by a command ringing the bell` >=20 > IMNSHO, your expectations are unreasonable.=C2=A0 Keyboard macros are not > supposed to allow this; if you want something like that, you will > need > to write a special-purpose command. Well, I'm not sure why you say it's unreasonable, but for the record, the related emacs stackexchange question has 2k hits at the moment=C2=B9. So=E2=80=A6 at least there is demand for this to work. 1: https://emacs.stackexchange.com/q/10599/2671#ringing-bell-in-macro-with-= search