From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.devel Subject: Re: Interpretation of a space in regexp isearch? Date: Sun, 26 Aug 2012 17:19:44 +0200 Message-ID: References: <502B2845.9070200@yandex.ru> <878vdgiv2d.fsf@gnu.org> <87r4qu8ffq.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1345994401 6821 80.91.229.3 (26 Aug 2012 15:20:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Aug 2012 15:20:01 +0000 (UTC) Cc: Bastien , emacs-devel@gnu.org, Dmitry Gutov To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 26 17:20:02 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 1T5ecz-0003s7-TR for ged-emacs-devel@m.gmane.org; Sun, 26 Aug 2012 17:19:54 +0200 Original-Received: from localhost ([::1]:40793 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5ecx-0000nR-Rq for ged-emacs-devel@m.gmane.org; Sun, 26 Aug 2012 11:19:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5ecv-0000nM-Km for emacs-devel@gnu.org; Sun, 26 Aug 2012 11:19:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T5ecu-0001F4-LO for emacs-devel@gnu.org; Sun, 26 Aug 2012 11:19:49 -0400 Original-Received: from mail-ob0-f169.google.com ([209.85.214.169]:59059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5ecr-0001Ee-UF; Sun, 26 Aug 2012 11:19:46 -0400 Original-Received: by obhx4 with SMTP id x4so7915427obh.0 for ; Sun, 26 Aug 2012 08:19:44 -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=Wx5KdJG61FnnCgim4k434Ex0DD5yHMEPKjBbcSEklq4=; b=iea/QrB+K6iCOwsQn7pPo5VqID/nJ1xangvB9dykVCYD2MMMJ8vEPK0P0hGc71WKrz ABndvpwagRNH6vmntRvZJCBpAC1vQJWCClelmGZndGQkIRzqu+wvk2HFmG08n+NCh3p2 wGd8Uejn33cPoD2soIgmWGZlq6eOnKrItNc9OtiGfrxBRqRuOcB4iWGuztY7l9VHin7l sS/U2mpXqD9as1yGbTXaMbJE+hMvdlyph67X1FIw83Zr4emS/+IRNQbiIaOTZH/Ih+g1 0OZGbbkXxu6aGf15/XQLUTsEYiOQxn+YrMp4uYjPPnF4i++SfsQuw43VtgdojJlsd3dX bOlg== Original-Received: by 10.60.11.136 with SMTP id q8mr7997438oeb.132.1345994384727; Sun, 26 Aug 2012 08:19:44 -0700 (PDT) Original-Received: by 10.60.50.130 with HTTP; Sun, 26 Aug 2012 08:19:44 -0700 (PDT) In-Reply-To: <87r4qu8ffq.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.214.169 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:152849 Archived-At: > I committed a change to trunk to make non-regexp isearch match multiple > spaces via search-spaces-regexp. > > As for regexp isearch, it seems disruptive to remove the feature now, > since some some users might have grown to rely on it. So I left regexp > isearch alone (i.e. it still does the multiple spaces matching). > > It is now possible to change the variable `search-whitespace-regexp' and > give it a cons cell value, which specifies different behaviors for > ordinary and regexp isearch. Thank's Chong. While testing your change, I've noticed a couple of things that I'd like to understand: 1. Info mode has its own variable `Info-search-whitespace-regexp'. Why is it necessary? I guess there's a reason (which I don't know by now) so it seems that your change should also affect to this variable. 2. Why don't you include \n and \r by default in the regexp? IMO that'd be TRT for most users. TIA. -- Dani Moncayo