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: Interpretation of a space in regexp isearch? Date: Thu, 30 Aug 2012 11:54:38 +0300 Organization: JURTA Message-ID: <87d328lqc1.fsf@mail.jurta.org> References: <502B2845.9070200@yandex.ru> <878vdgiv2d.fsf@gnu.org> <87r4qu8ffq.fsf@gnu.org> <87haro6v5y.fsf@gnu.org> <87k3wjto4o.fsf@mail.jurta.org> <87k3wihbl1.fsf@mail.jurta.org> <878vcw4wsh.fsf@gnu.org> <87ligwg4ra.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1346316930 2106 80.91.229.3 (30 Aug 2012 08:55:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Aug 2012 08:55:30 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 30 10:55:31 2012 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 1T70XB-0003zX-NZ for ged-emacs-devel@m.gmane.org; Thu, 30 Aug 2012 10:55:29 +0200 Original-Received: from localhost ([::1]:33424 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T70X9-0005Xt-Ft for ged-emacs-devel@m.gmane.org; Thu, 30 Aug 2012 04:55:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59852) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T70X2-0005XX-MX for emacs-devel@gnu.org; Thu, 30 Aug 2012 04:55:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T70X1-0008Ca-Ne for emacs-devel@gnu.org; Thu, 30 Aug 2012 04:55:20 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:47820 helo=ps18281.dreamhostps.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T70Wu-00083S-QP; Thu, 30 Aug 2012 04:55:12 -0400 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 35EC0451CC2B; Thu, 30 Aug 2012 01:55:08 -0700 (PDT) In-Reply-To: <87ligwg4ra.fsf@gnu.org> (Chong Yidong's message of "Thu, 30 Aug 2012 16:31:37 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:152898 Archived-At: >> Instead of adding an `isearch-whitespace' flag, I think this is best >> implemented as a third possible value for `isearch-word', say the >> symbol `match-any-whitespace'. > > Whoops, `isearch-word' already accepts function values, for purposes of > symbol searching. The `isearch-toggle-whitespace' command simply needs > to set this. Maybe that's is what you already had in mind. The problem is that whitespace mode can be active together with regexp mode and also simultaneously with plain C-s mode. This is different from `isearch-word' that is a separate mode mutually exclusive with C-s and C-M-s. For instance, `isearch-toggle-regexp' sets `isearch-word' to nil, but it should not disable whitespace mode (it should be disabled only with the command `isearch-toggle-whitespace'). This is why I tend to implement it more like `isearch-toggle-case-fold' than `isearch-toggle-word'.