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 11:09:59 +0300 Message-ID: <2bba5a744feb000a4ffc1fef79d223fcf24953e7.camel@yandex.ru> 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="19522"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.48.4 To: 66149@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 22 10:11:08 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 1qjbFk-0004o4-1U for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Sep 2023 10:11:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjbFX-0000Lh-Gm; Fri, 22 Sep 2023 04:10:55 -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 1qjbFV-0000HF-CY for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 04:10:53 -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 1qjbFU-000410-6y for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 04:10:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjbFe-0001cd-GU for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 04:11: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 08:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66149 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16953702296176 (code B ref -1); Fri, 22 Sep 2023 08:11:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Sep 2023 08:10:29 +0000 Original-Received: from localhost ([127.0.0.1]:35232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjbF7-0001bY-80 for submit@debbugs.gnu.org; Fri, 22 Sep 2023 04:10:29 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:47194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjbF5-0001bK-Iq for submit@debbugs.gnu.org; Fri, 22 Sep 2023 04:10:28 -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 1qjbEo-00085l-CD for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 04:10:11 -0400 Original-Received: from forward101c.mail.yandex.net ([178.154.239.212]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjbEl-0003Zv-4W for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 04:10:10 -0400 Original-Received: from mail-nwsmtp-smtp-production-main-24.iva.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-24.iva.yp-c.yandex.net [IPv6:2a02:6b8:c0c:5b15:0:640:42e5:0]) by forward101c.mail.yandex.net (Yandex) with ESMTP id 5311B60160 for ; Fri, 22 Sep 2023 11:10:00 +0300 (MSK) Original-Received: by mail-nwsmtp-smtp-production-main-24.iva.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id x9GFW10DSiE0-N3FDDbDk; Fri, 22 Sep 2023 11:10:00 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1695370200; bh=x+lHwkdhioaMVMmpvD03occFSJPfUt373owRzGnGOcg=; h=Date:To:From:Subject:Message-ID; b=dIMcL36L5li2SPs4rTVlgjo9usmLLf+M1z6EA4UCwODn7G1Zbn6YX70bxcQaIYmc4 nlSHKCG5myGKSq9VjJ6vrJWvhAqWV8Jpc1blYlEjflDdx7XS+2q/GS38tVmZSfaJnE Bt0HyD+szqK2yFxrMKnboetbgkmrri/kIiwl9L0I= Authentication-Results: mail-nwsmtp-smtp-production-main-24.iva.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Received-SPF: pass client-ip=178.154.239.212; envelope-from=Hi-Angel@yandex.ru; helo=forward101c.mail.yandex.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:271049 Archived-At: 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 ri= nging 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 hig= hlighted 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 m= acro terminated by a command ringing the bell` # Additional information Emacs build from git as of commit 04710bd01b2