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 magic space Date: Tue, 15 Mar 2005 15:09:55 +0200 Organization: JURTA Message-ID: <87hdjd3uoz.fsf@jurta.org> References: <1491.220.255.169.59.1110885253.squirrel@220.255.169.59> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1110896434 26165 80.91.229.2 (15 Mar 2005 14:20:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 15 Mar 2005 14:20:34 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 15 15:20:32 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DBCtN-0007Bm-Vm for ged-emacs-devel@m.gmane.org; Tue, 15 Mar 2005 15:19:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DBD9G-0003b5-Dl for ged-emacs-devel@m.gmane.org; Tue, 15 Mar 2005 09:35:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DBCoL-0006tE-HC for emacs-devel@gnu.org; Tue, 15 Mar 2005 09:14:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DBCoA-0006pz-Jp for emacs-devel@gnu.org; Tue, 15 Mar 2005 09:14:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DBCo9-0006mu-0Y for emacs-devel@gnu.org; Tue, 15 Mar 2005 09:14:05 -0500 Original-Received: from [194.126.101.111] (helo=MXR-5.estpak.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DBCUE-0008CO-VC for emacs-devel@gnu.org; Tue, 15 Mar 2005 08:53:31 -0500 Original-Received: from mail.neti.ee (80-235-32-24-dsl.mus.estpak.ee [80.235.32.24]) by MXR-5.estpak.ee (Postfix) with ESMTP id D89E112DB5C; Tue, 15 Mar 2005 15:52:51 +0200 (EET) Original-To: "Chong Yidong" In-Reply-To: <1491.220.255.169.59.1110885253.squirrel@220.255.169.59> (Chong Yidong's message of "Tue, 15 Mar 2005 06:14:13 -0500 (EST)") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34600 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34600 "Chong Yidong" writes: > Some time ago, I proposed providing a magic space for ordinary isearch. > The response was generally favorable, but my papers were not in order, so > the patch could not be applied. My copyright assignment is settled now; > can the patch be applied, or is it too late? I like the idea of using a space to match any whitespace in plain non-regexp isearch. However, it should be nil by default to preserve the default behavior for users who don't expect such a change. Also there should be an easy way to put a literal space into the search string. In regexp isearch this can be done with C-q SPC. One solution is to allow `search-whitespace-regexp' to be a list of regexps and a new key could rotate this list and search will use the first element. I noticed that in most cases as the whitespace regexp "\\W+" is more useful than "\\s-+". So a new key could use the default values '(nil "\\s-+" "\\W+") and switch between them. -- Juri Linkov http://www.jurta.org/emacs/