From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#46469: 27.1; `isearch-del-char' should move point further back Date: Sat, 13 Feb 2021 20:31:46 +0200 Organization: LINKOV.NET Message-ID: <87eehjstt9.fsf@mail.linkov.net> References: <87zh09xggr.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2686"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 46469@debbugs.gnu.org To: Augusto Stoffel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 13 19:34:26 2021 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 1lAzkP-0000Um-R1 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Feb 2021 19:34:25 +0100 Original-Received: from localhost ([::1]:47804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAzkO-0006KF-MP for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Feb 2021 13:34:24 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45648) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAzk3-0006Jy-EV for bug-gnu-emacs@gnu.org; Sat, 13 Feb 2021 13:34:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51731) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lAzk2-0001B2-TD for bug-gnu-emacs@gnu.org; Sat, 13 Feb 2021 13:34:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lAzk2-0001mC-Qr for bug-gnu-emacs@gnu.org; Sat, 13 Feb 2021 13:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Feb 2021 18:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46469 X-GNU-PR-Package: emacs Original-Received: via spool by 46469-submit@debbugs.gnu.org id=B46469.16132411946752 (code B ref 46469); Sat, 13 Feb 2021 18:34:02 +0000 Original-Received: (at 46469) by debbugs.gnu.org; 13 Feb 2021 18:33:14 +0000 Original-Received: from localhost ([127.0.0.1]:35042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAzjG-0001kp-Hb for submit@debbugs.gnu.org; Sat, 13 Feb 2021 13:33:14 -0500 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:47853) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAzjD-0001k9-Mr for 46469@debbugs.gnu.org; Sat, 13 Feb 2021 13:33:13 -0500 X-Originating-IP: 91.129.108.204 Original-Received: from mail.gandi.net (m91-129-108-204.cust.tele2.ee [91.129.108.204]) (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 826C220004; Sat, 13 Feb 2021 18:33:03 +0000 (UTC) In-Reply-To: <87zh09xggr.fsf@gmail.com> (Augusto Stoffel's message of "Fri, 12 Feb 2021 19:56:36 +0100") 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:199951 Archived-At: > Suppose my buffer contains the text "x1yx2" right after point, and that > `isearch-del-char' is bound to DEL in Isearch mode. If I type > > C-s y DEL x1 > > then I would expect the search to succeed: the cursor would first go > after "y", then return to the starting point of search after pressing > DEL – this is how `isearch-delete-char' behaves, anyway. > > Instead, the cursor remains after "y" after pressing DEL, and the search > fails with the cursor after the second "x". I have attached a patch to > fix this. Sorry, the reason for the current behavior is explained in the comments. Anyway isearch-fallback in your patch does nothing. Maybe you intended to use isearch-pop-state, but this what isearch-delete-char already does. > I have also attached a second trivial patch for an unrelated, very tiny > bug. Thanks, this fix is now pushed to master.