From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#25562: 25.1; isearch-forward-word first matches a non-word Date: Wed, 01 Feb 2017 02:38:16 +0200 Organization: LINKOV.NET Message-ID: <877f5avj7r.fsf@mail.linkov.net> References: <87r33njun7.fsf@inria.fr> <87mvea3feg.fsf@mail.linkov.net> <87h94fp3z8.fsf@drachen> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1485910158 12128 195.159.176.226 (1 Feb 2017 00:49:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 1 Feb 2017 00:49:18 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (x86_64-pc-linux-gnu) Cc: 25562@debbugs.gnu.org, Antoine Levitt To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 01 01:49:14 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 1cYj6o-0002sU-40 for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Feb 2017 01:49:14 +0100 Original-Received: from localhost ([::1]:41990 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYj6s-0002my-13 for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Jan 2017 19:49:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYj6f-0002mB-2y for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2017 19:49:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYj6c-00050R-2i for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2017 19:49:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54476) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cYj6b-00050K-W9 for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2017 19:49:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cYj6b-0002Hv-PL for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2017 19:49:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Feb 2017 00:49: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.14859101128748 (code B ref 25562); Wed, 01 Feb 2017 00:49:01 +0000 Original-Received: (at 25562) by debbugs.gnu.org; 1 Feb 2017 00:48:32 +0000 Original-Received: from localhost ([127.0.0.1]:52673 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYj67-0002H2-Ux for submit@debbugs.gnu.org; Tue, 31 Jan 2017 19:48:32 -0500 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:40695 helo=homiemail-a76.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYj64-0002Gg-Rm for 25562@debbugs.gnu.org; Tue, 31 Jan 2017 19:48:29 -0500 Original-Received: from homiemail-a76.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a76.g.dreamhost.com (Postfix) with ESMTP id 40D6E45807B; Tue, 31 Jan 2017 16:48:28 -0800 (PST) Original-Received: from localhost.linkov.net (m213-102-76-140.cust.tele2.ee [213.102.76.140]) (Authenticated sender: jurta@jurta.org) by homiemail-a76.g.dreamhost.com (Postfix) with ESMTPA id 3DF8B458071; Tue, 31 Jan 2017 16:48:27 -0800 (PST) In-Reply-To: <87h94fp3z8.fsf@drachen> (Michael Heerdegen's message of "Tue, 31 Jan 2017 17:51:39 +0100") 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:128853 Archived-At: >> merge 22589 25562 >> thanks > > AFAIK you didn't yet make the change so that the lax matching state is > recognizable from the prompt. No hurry, but I think this report shows > that the current behavior is at first surprising to users. Maybe even a > stronger term than your suggested "Pending" would be appropriate. 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. 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))))