From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.bugs Subject: bug#46469: 27.1; `isearch-del-char' should move point further back Date: Wed, 28 Apr 2021 23:16:11 +0200 Message-ID: <871raurtyc.fsf@gmail.com> References: <87zh09xggr.fsf@gmail.com> <87eehjstt9.fsf@mail.linkov.net> <87a6s7nngp.fsf@gmail.com> <87sg5yekf6.fsf@mail.linkov.net> <875z074lf3.fsf@gmail.com> <87r1iu6shx.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27550"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cc: 46469@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 28 23:17:33 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 1lbrYq-00074a-Bu for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Apr 2021 23:17:32 +0200 Original-Received: from localhost ([::1]:38832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbrYp-0001SH-Eg for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Apr 2021 17:17:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54194) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbrYO-0001OI-FR for bug-gnu-emacs@gnu.org; Wed, 28 Apr 2021 17:17:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42672) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lbrYL-0004mF-Tm for bug-gnu-emacs@gnu.org; Wed, 28 Apr 2021 17:17:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lbrYL-00031U-Pg for bug-gnu-emacs@gnu.org; Wed, 28 Apr 2021 17:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Apr 2021 21:17:01 +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.161964458211565 (code B ref 46469); Wed, 28 Apr 2021 21:17:01 +0000 Original-Received: (at 46469) by debbugs.gnu.org; 28 Apr 2021 21:16:22 +0000 Original-Received: from localhost ([127.0.0.1]:54217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbrXh-00030T-Lo for submit@debbugs.gnu.org; Wed, 28 Apr 2021 17:16:21 -0400 Original-Received: from mail-ej1-f53.google.com ([209.85.218.53]:35493) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbrXg-00030F-3B for 46469@debbugs.gnu.org; Wed, 28 Apr 2021 17:16:20 -0400 Original-Received: by mail-ej1-f53.google.com with SMTP id u17so96798914ejk.2 for <46469@debbugs.gnu.org>; Wed, 28 Apr 2021 14:16:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=KmqSl45w47YCzSf9syMs/jgQTMzj/OpkhqG1quT0xmA=; b=Qzqwv0/CL7ZBN/artmLT2Utq72hbWyKHzNzEqhI+tGbEJkAZ/fbEp7Til1R8ghDrvO Jx1gspZL77qelF8JQ+K+f8BltgLbm0L1KOpfFiWt+habc0TQaRaMl3cqtEQNplvFkegj F7m3/KvU4eSL/YRAjRNjU8lgDTqKesBK+sK6j35nh7BuN6hIsfyu71YABIV7CBcT8irF jGdxseDUVbW3VqH4Kl2OpW/2yQEmYt4nVUF6vAEXEdcrIJHT06MJOvr7X56x06yJG0O5 WCGJ2EHED9aCUnQ+3069yELuH0aOmAucsfm3kn/XSQDHtsRlIwdZ+5WluunzBdiWlKPw P8hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=KmqSl45w47YCzSf9syMs/jgQTMzj/OpkhqG1quT0xmA=; b=Fhbu4vbcVyhsAPUGsjCOmo6gP/a4vYkXcOlWSvq3mhkAjkxj3Xed8ePgF2nZzyZnuT kcmir/46t4+49OrjHWgOFIsZTfTSYWoJ5megZ4W2UegsXih8igxrQO0WZ3RFZZVtmYgG YD1yx41Shrg2+dQhWutEBUrhmLZ3Qxv/7SPo/pWyT9mVphCuWL3NUWrDF9NGbD3qlGxR UDaTIrBiutIAXN57lZq4z67wCxXmpPywFRPHwJOFQ4zkdr2121YPqyDNNu4n8qx4Rzd1 pq79h8bDY6XfcuVuxWjOhnjSDJ6m5F9aX2Y43HATZob6LViEnjWodGNxd1yBXVHOV5ix CO5Q== X-Gm-Message-State: AOAM533+NflYhdjMhFhezR9wqKz4nT45ZjacXRMsoBC9NalLWFseCfHe Udejkln+/ocT/qOXe+HN3uwNi5QM/uLRAA== X-Google-Smtp-Source: ABdhPJxyGTZIcOrvBd2BOIIm0iedD4Z1iAx+84fsB0YIyWnFZNpmIMXBBrjC5+iDn4fcXP35x3yuLQ== X-Received: by 2002:a17:906:d18a:: with SMTP id c10mr30858237ejz.271.1619644573868; Wed, 28 Apr 2021 14:16:13 -0700 (PDT) Original-Received: from ars3 ([2a02:908:2211:8540::68a]) by smtp.gmail.com with ESMTPSA id p2sm552191ejo.108.2021.04.28.14.16.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Apr 2021 14:16:13 -0700 (PDT) In-Reply-To: <87r1iu6shx.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 28 Apr 2021 23:53:14 +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" Xref: news.gmane.io gmane.emacs.bugs:205142 Archived-At: > But this change will cause a problem to me. Usually, I type 'C-s' > several times with a non-empty search string to arrive to Nth occurrence. > Then to be able to continue the search with a shorter string, I remove > some characters from the search string with 'C-M-d' (isearch-del-char). > Then continue searching with 'C-s' from the same place. But with the patch, > 'C-M-d' unexpectedly jumps to a previous match, and every next 'C-M-d' > jumps back it its previous match that makes no sense. I can verify this. But I think you just found a related but independent issue. Consider this example: (progn (save-excursion (insert "a1 b2 a3")) (isearch-mode t t) (isearch-printing-char ?a) (isearch-repeat-forward) (isearch-printing-char ?\\) (isearch-printing-char ?|) (isearch-printing-char ?b)) When "\\|b" is added to search string, the point is at "3". So it shouldn't move, right? But instead it goes back to "2". Do you get the same behavior?