From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.bugs Subject: bug#14729: 24.3.50; Isearch oddity Date: Sun, 30 Jun 2013 00:34:55 +0200 Message-ID: References: <87mwqbay6p.fsf@mail.jurta.org> <87haggmv72.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1372545366 22468 80.91.229.3 (29 Jun 2013 22:36:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Jun 2013 22:36:06 +0000 (UTC) Cc: 14729@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 30 00:36:07 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ut3kU-0006La-Lu for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Jun 2013 00:36:06 +0200 Original-Received: from localhost ([::1]:50089 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ut3kU-00034I-8H for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Jun 2013 18:36:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ut3kR-00034D-8Y for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2013 18:36:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ut3kQ-0006yB-B6 for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2013 18:36:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54284) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ut3kQ-0006y5-7P for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2013 18:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Ut3kP-0007Zs-Lr for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2013 18:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dani Moncayo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Jun 2013 22:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14729 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14729-submit@debbugs.gnu.org id=B14729.137254530529034 (code B ref 14729); Sat, 29 Jun 2013 22:36:01 +0000 Original-Received: (at 14729) by debbugs.gnu.org; 29 Jun 2013 22:35:05 +0000 Original-Received: from localhost ([127.0.0.1]:48599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ut3jU-0007YD-LS for submit@debbugs.gnu.org; Sat, 29 Jun 2013 18:35:05 -0400 Original-Received: from mail-lb0-f179.google.com ([209.85.217.179]:37375) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ut3jR-0007Xh-TU for 14729@debbugs.gnu.org; Sat, 29 Jun 2013 18:35:02 -0400 Original-Received: by mail-lb0-f179.google.com with SMTP id w20so1655626lbh.10 for <14729@debbugs.gnu.org>; Sat, 29 Jun 2013 15:34:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=dRWjbWH/+I0k/WzmnQo9Ip3K8LGr/LeLTAcXNhOelXE=; b=Tj/pZ2lnBXcMOATCK7Ju9ni87qCxBt4Q+wRWQc+0AZouz239szufl4ONlNNfvhUC5/ fUwee21gOHEsrotTQulZ+jXwY0wJAf76wjr66ybg0NVQ1o64M+Uqcbenv+oWIn7b5xy7 NvfK91rRgfUcnrjjvypE7vk+LywTxj/k+pBsErxnvLJQUSeYb7lk1RstAwRPP29f9PDn syNJJCbb4faT3IXWcjKXwJwGVk2fA9T4TJiCc5zMrFw7f8q85U//xv+mFOEtKMhmWz6k 0HlnwhxfOBY+18OHU1s6VSvVV80BKPeUJHZKSouBo+L2PYWq17EOP50KWBB4x3Z6Jz4O RPLg== X-Received: by 10.112.180.164 with SMTP id dp4mr9021168lbc.68.1372545295736; Sat, 29 Jun 2013 15:34:55 -0700 (PDT) Original-Received: by 10.114.75.35 with HTTP; Sat, 29 Jun 2013 15:34:55 -0700 (PDT) In-Reply-To: <87haggmv72.fsf@mail.jurta.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:75729 Archived-At: On Sat, Jun 29, 2013 at 11:53 PM, Juri Linkov wrote: >> I expect that the fontification of the echo area reflects what is >> happening: that the whole search string ("buffer") is unmatched (not >> only the last "fer"), since the current search begins just after the >> last instance of "buf" in the buffer [1], and there is no match >> (neither full nor partial) of the current search string between that >> location and the end of the buffer. > > `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. Then the mistake is not re-setting that "last successful match" after each "C-s", because here, the last successful match was "buf" only after doing "M-< C-s buf" and also after the subsequent "C-s", but once you type the third "C-s", the whole search string ("buf") is unmatched (because the search now begins at [1]), and that fact (fully unmatched search string) cannot change by appending more characters to the search string. IOW: After the third "C-s", the search goes from [1] to the end of the buffer, and therefore any search string starting with a character different from "f", "e", "r", "." or whitespace will be fully unmatched, and should be highlighted as such in the echo area. ----------------------- [1] Position between "buf" and "fer" in the last instance of the string "buffer". -- Dani Moncayo