From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#25562: 25.1; isearch-forward-word first matches a non-word Date: Wed, 01 Feb 2017 18:51:42 +0100 Message-ID: <87tw8dztn5.fsf@drachen> References: <87r33njun7.fsf@inria.fr> <87mvea3feg.fsf@mail.linkov.net> <87h94fp3z8.fsf@drachen> <877f5avj7r.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1485971533 20294 195.159.176.226 (1 Feb 2017 17:52:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 1 Feb 2017 17:52:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 25562@debbugs.gnu.org, Antoine Levitt To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 01 18:52:09 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYz4h-00050h-9z for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Feb 2017 18:52:07 +0100 Original-Received: from localhost ([::1]:52293 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYz4m-0005hH-Tz for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Feb 2017 12:52:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYz4f-0005gn-98 for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2017 12:52:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYz4c-0008Jb-7Y for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2017 12:52:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55407) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cYz4c-0008JX-4B for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2017 12:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cYz4b-0007i9-UQ for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2017 12:52:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Feb 2017 17:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25562 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25562-submit@debbugs.gnu.org id=B25562.148597151829630 (code B ref 25562); Wed, 01 Feb 2017 17:52:01 +0000 Original-Received: (at 25562) by debbugs.gnu.org; 1 Feb 2017 17:51:58 +0000 Original-Received: from localhost ([127.0.0.1]:53606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYz4Y-0007hp-0r for submit@debbugs.gnu.org; Wed, 01 Feb 2017 12:51:58 -0500 Original-Received: from mout.web.de ([212.227.17.11]:54140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYz4W-0007hc-EY for 25562@debbugs.gnu.org; Wed, 01 Feb 2017 12:51:57 -0500 Original-Received: from drachen.dragon ([188.98.96.108]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Ljrlt-1c2PPP1Jwv-00bwaP; Wed, 01 Feb 2017 18:51:46 +0100 In-Reply-To: <877f5avj7r.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 01 Feb 2017 02:38:16 +0200") X-Provags-ID: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Bv9+DWri7uQ5 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:128870 Archived-At: Juri Linkov writes: > Thanks for confirming that it would be a good solution. We are > already using "Pending" indication in the search prompt in other > places to show that the search is not yet fully accepted. Ok, then let's just do this. > This could do the same for word search as well: > > diff --git a/lisp/isearch.el b/lisp/isearch.el > index 5c48c30..3c9dff1 100644 > --- a/lisp/isearch.el > +++ b/lisp/isearch.el > @@ -2741,6 +2747,8 @@ (defun isearch-search-fun-default () > (if isearch-forward #'re-search-forward #'re-search-backward) > (cond (isearch-regexp-function > (let ((lax (isearch--lax-regexp-function-p))) > + (when lax > + (setq isearch-adjusted t)) > (if (functionp isearch-regexp-function) > (funcall isearch-regexp-function string lax) > (word-search-regexp string lax)))) I tried it. Works as I would expect in *scratch* and dired, but hmm, not in Info (the prompt just doesn't contain "pending" there). I tried with emacs -Q, and in any buffer I started a word search and just began typing characters. BTW, a different question: when I delete characters from my input (with backspace) in a word search and then add some new characters, I somehow expected that isearch would return to that "pending" state. But I got the jumpy (nonlax) incremental search behavior instead. I don't have an opinion about that, just wanted to mention it. Regards, Michael.