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#14729: 24.3.50; Isearch oddity Date: Sat, 04 Dec 2021 21:59:16 +0200 Organization: LINKOV.NET Message-ID: <865ys4taxv.fsf@mail.linkov.net> References: <87mwqbay6p.fsf@mail.jurta.org> <87haggmv72.fsf@mail.jurta.org> <87h7bpqb6q.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6759"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 14729@debbugs.gnu.org, Dani Moncayo To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 04 21:10:16 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 1mtbMK-0001Yq-Ip for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 21:10:12 +0100 Original-Received: from localhost ([::1]:49634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtbMI-0000z9-Tz for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 15:10:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtbMA-0000yZ-M2 for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 15:10:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43530) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtbMA-00055P-Df for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 15:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mtbMA-0004IO-8n for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 15:10: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, 04 Dec 2021 20:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14729 X-GNU-PR-Package: emacs Original-Received: via spool by 14729-submit@debbugs.gnu.org id=B14729.163864860016500 (code B ref 14729); Sat, 04 Dec 2021 20:10:02 +0000 Original-Received: (at 14729) by debbugs.gnu.org; 4 Dec 2021 20:10:00 +0000 Original-Received: from localhost ([127.0.0.1]:55076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtbM8-0004I4-L3 for submit@debbugs.gnu.org; Sat, 04 Dec 2021 15:10:00 -0500 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:46959) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtbM7-0004HS-7L for 14729@debbugs.gnu.org; Sat, 04 Dec 2021 15:09:59 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id E4EDE1BF203; Sat, 4 Dec 2021 20:09:51 +0000 (UTC) In-Reply-To: <87h7bpqb6q.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 04 Dec 2021 04:51:57 +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:221498 Archived-At: >> `isearch-fail-pos' assumes that in a failed state of search >> a shorter previous successful search string should be taken >> as a basis for highlighting. In this case, the last successful match >> was "buf", so an appended suffix is highlighted as failed. > > So, first we have: > > > > > Then we type "fer", and then get: > > > > > But... I think I'd expect getting > > > > > instead? Probably. Or to turn the failing search into a successful one since the search string matches the buffer. OTOH, the current behavior also makes sense since it highlights the last failing characters typed by the user. E.g. compare it with `C-s bufzzz'.