From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Chong Yidong" Newsgroups: gmane.emacs.devel Subject: Re: isearch magic space Date: Tue, 15 Mar 2005 10:00:03 -0500 (EST) Message-ID: <2110.220.255.169.59.1110898803.squirrel@220.255.169.59> References: <1491.220.255.169.59.1110885253.squirrel@220.255.169.59> <87hdjd3uoz.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1110899587 7300 80.91.229.2 (15 Mar 2005 15:13:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 15 Mar 2005 15:13:07 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 15 16:13:07 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DBDZX-0004kF-AU for ged-emacs-devel@m.gmane.org; Tue, 15 Mar 2005 16:03:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DBDpQ-00065V-Kz for ged-emacs-devel@m.gmane.org; Tue, 15 Mar 2005 10:19:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DBDmc-0005RM-QN for emacs-devel@gnu.org; Tue, 15 Mar 2005 10:16:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DBDmX-0005QE-BJ for emacs-devel@gnu.org; Tue, 15 Mar 2005 10:16:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DBDmW-0005Px-QC for emacs-devel@gnu.org; Tue, 15 Mar 2005 10:16:28 -0500 Original-Received: from [64.21.80.18] (helo=shark.dnsvelocity.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1DBDWk-0005wD-Hr for emacs-devel@gnu.org; Tue, 15 Mar 2005 10:00:10 -0500 Original-Received: from stupidch by shark.dnsvelocity.com with local (Exim 4.44) id 1DBDWd-0000EL-TK; Tue, 15 Mar 2005 10:00:03 -0500 Original-Received: from 220.255.169.59 ([220.255.169.59]) (SquirrelMail authenticated user cyd@stupidchicken.com); by www.stupidchicken.com with HTTP; Tue, 15 Mar 2005 10:00:03 -0500 (EST) In-Reply-To: <87hdjd3uoz.fsf@jurta.org> Original-To: "Juri Linkov" User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a X-Priority: 3 (Normal) Importance: Normal X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - shark.dnsvelocity.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [32675 33085] / [47 12] X-AntiAbuse: Sender Address Domain - stupidchicken.com X-Source: /usr/local/cpanel/3rdparty/bin/php X-Source-Args: /usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/base/3rdparty/squirrelmail/src/compose.php X-Source-Dir: :/base/3rdparty/squirrelmail/src 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:34604 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34604 > 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. That is fine. > 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. It is actually easy to extend this to string search, by making an additional small tweak to isearch-quote-char: *** 1768,1774 **** ;; Assume character codes 0200 - 0377 stand for characters in some ;; single-byte character set, and convert them to Emacs ;; characters. ! (if (and isearch-regexp (= char ?\ )) (if (subregexp-context-p isearch-string (length isearch-string)) (isearch-process-search-string "[ ]" " ") (isearch-process-search-char char)) --- 1777,1783 ---- ;; Assume character codes 0200 - 0377 stand for characters in some ;; single-byte character set, and convert them to Emacs ;; characters. ! (if (and (not isearch-word) (= char ?\ )) (if (subregexp-context-p isearch-string (length isearch-string)) (isearch-process-search-string "[ ]" " ") (isearch-process-search-char char))