From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: isearch-allow-move [Was: isearch-allow-prefix] Date: Fri, 07 Jun 2013 22:30:18 +0300 Organization: JURTA Message-ID: <87hah9lnw5.fsf@mail.jurta.org> References: <20130525200103.GA3451@acm.acm> <878v32aj3c.fsf@mail.jurta.org> <20130602210512.GC2765@acm.acm> <87sj0xn484.fsf@mail.jurta.org> <20130604212400.GB2492@acm.acm> <87d2s1otjb.fsf@mail.jurta.org> <20130605210241.GA3730@acm.acm> <8761xr93h5.fsf_-_@mail.jurta.org> <20130606200719.GA3911@acm.acm> <87ehcexw3u.fsf@mail.jurta.org> <20130607103057.GA3199@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1370634130 13641 80.91.229.3 (7 Jun 2013 19:42:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Jun 2013 19:42:10 +0000 (UTC) Cc: Stefan Monnier , Drew Adams , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 07 21:42:10 2013 Return-path: Envelope-to: ged-emacs-devel@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 1Ul2Y6-0001wC-Bi for ged-emacs-devel@m.gmane.org; Fri, 07 Jun 2013 21:42:10 +0200 Original-Received: from localhost ([::1]:47427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ul2Y5-0008Ep-UG for ged-emacs-devel@m.gmane.org; Fri, 07 Jun 2013 15:42:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ul2Y2-0008Ei-4u for emacs-devel@gnu.org; Fri, 07 Jun 2013 15:42:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ul2Y0-0008BV-Cc for emacs-devel@gnu.org; Fri, 07 Jun 2013 15:42:06 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:35223 helo=ps18281.dreamhostps.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ul2Y0-0008Ah-7o for emacs-devel@gnu.org; Fri, 07 Jun 2013 15:42:04 -0400 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 67109258B9E938; Fri, 7 Jun 2013 12:42:02 -0700 (PDT) In-Reply-To: <20130607103057.GA3199@acm.acm> (Alan Mackenzie's message of "Fri, 7 Jun 2013 10:30:57 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 69.163.218.105 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:160249 Archived-At: > What happens in a regexp search? Particularly when the last typed > characters are "\)" or "]", or "?", or there's still an unbalanced > "\(" in the string. It does exactly the same as `C-M-w' already does in a regexp search. IOW, the new feature just replaces `C-M-r ... C-M-w C-M-w ...' with a more intuitive key sequence `C-M-r ... M-s C-b C-b ...' If the existing `C-M-w' (isearch-del-char) has some problems, then `M-s C-b' shares the same problems with it, although I'm not aware of any problems with `isearch-del-char'. However, the new feature `M-s C-f' helped to discover a problem in a word search where the same problem exists in `C-M-y' (isearch-yank-char). Test case: type `M-s w C-M-y C-M-y ...' and see how it fails to grab the next character at the word boundary at the end of the word. This bug should be fixed with the following patch: === modified file 'lisp/isearch.el' --- lisp/isearch.el 2013-06-05 20:57:09 +0000 +++ lisp/isearch.el 2013-06-07 19:28:35 +0000 @@ -1549,7 +1635,7 @@ (defun word-search-regexp (string &optio "" (concat "\\b" - (mapconcat 'identity (split-string string "\\W+" t) "\\W+") + (mapconcat 'identity (split-string string "\\W+") "\\W+") (if (or (not lax) (string-match-p "\\W$" string)) "\\b"))))