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 19:31:41 +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 1346002323 32070 80.91.229.3 (26 Aug 2012 17:32:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Aug 2012 17:32:03 +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 19:32:04 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 1T5ggo-0007SG-VH for ged-emacs-devel@m.gmane.org; Sun, 26 Aug 2012 19:31:59 +0200 Original-Received: from localhost ([::1]:42410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5ggn-0006wv-24 for ged-emacs-devel@m.gmane.org; Sun, 26 Aug 2012 13:31:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5ggf-0006wo-56 for emacs-devel@gnu.org; Sun, 26 Aug 2012 13:31:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T5gge-0002tK-4T for emacs-devel@gnu.org; Sun, 26 Aug 2012 13:31:49 -0400 Original-Received: from mail-ob0-f169.google.com ([209.85.214.169]:45748) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5ggY-0002s5-Qj; Sun, 26 Aug 2012 13:31:42 -0400 Original-Received: by obhx4 with SMTP id x4so8023626obh.0 for ; Sun, 26 Aug 2012 10:31:42 -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=2K8q8L0e6BCff6SFQMnGU3KYJMSiHFolPWJyra4yXzw=; b=xp0sh7xZt941BgV+mXhMsxIkhygOLgmkU9P57v+SJvpautcoq72ZjmHxtoQFzm5B1x 8eImfVJbViNd/m2Duq6U59IREnO+TMxmMctMUFiwJ+Dp1kIxJmJ1uYcZ2542YpxZgcqz 406OCsCy/a3v0ON4IQx/zGn86Y3zPuXpUnrReZksXm5f3L+SHcNsuaJB9EA5NaddKpfs z0TJCPyVITvPT2a/a1xr93zk3w/4grPBpBJBbmiSuMf4NtR1EvsFivlqQ6Gs64lSGl4I aAV+xMc1teRA0MA6VShJ8ko9rnNdGHhsngAC5aiW0sRahKu1K/7/IZDFecb1blnY/LVC AoIw== Original-Received: by 10.60.30.168 with SMTP id t8mr8553648oeh.89.1346002302050; Sun, 26 Aug 2012 10:31:42 -0700 (PDT) Original-Received: by 10.60.50.130 with HTTP; Sun, 26 Aug 2012 10:31:41 -0700 (PDT) In-Reply-To: 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:152851 Archived-At: > 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. 3. Why should this feature be limited to _incremental_ searches? I don't think it should. The documentation states this limitation (see [1][2][3]) but according to the tests I've done, non-incremental searches also take `search-whitespace-regexp' into account. ----------- [1] Docstring of command `isearch-forward'. [2] Docstring of variable `search-whitespace-regexp'. [3] Info node "(emacs) Regexp Search". -- Dani Moncayo