From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Interpretation of a space in regexp isearch? Date: Wed, 15 Aug 2012 22:37:18 -0700 Message-ID: <97A275406701489A9F75D44DC8D05B2C@us.oracle.com> References: <502B2845.9070200@yandex.ru><878vdgiv2d.fsf@gnu.org> <61874483AF75410DB400C72A9306D065@us.oracle.com> <502C286F.2010302@yandex.ru> <17A9DBC4175D4596877A60388AA68C25@us.oracle.com> <502C5A04.1030208@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1345095457 2684 80.91.229.3 (16 Aug 2012 05:37:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Aug 2012 05:37:37 +0000 (UTC) Cc: 'Bastien' , cyd@gnu.org, emacs-devel@gnu.org, 'Dani Moncayo' To: "'Dmitry Gutov'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 16 07:37:36 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 1T1slx-0003HC-UW for ged-emacs-devel@m.gmane.org; Thu, 16 Aug 2012 07:37:34 +0200 Original-Received: from localhost ([::1]:37882 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1slw-00043z-O4 for ged-emacs-devel@m.gmane.org; Thu, 16 Aug 2012 01:37:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1slt-00043r-5W for emacs-devel@gnu.org; Thu, 16 Aug 2012 01:37:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1sls-0004kO-47 for emacs-devel@gnu.org; Thu, 16 Aug 2012 01:37:29 -0400 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:36165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1slq-0004k4-Fs; Thu, 16 Aug 2012 01:37:26 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q7G5bMBw022496 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 16 Aug 2012 05:37:23 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q7G5bM3H019910 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 16 Aug 2012 05:37:22 GMT Original-Received: from abhmt106.oracle.com (abhmt106.oracle.com [141.146.116.58]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q7G5bLxC016883; Thu, 16 Aug 2012 00:37:21 -0500 Original-Received: from dradamslap1 (/10.159.167.242) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 15 Aug 2012 22:37:21 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <502C5A04.1030208@yandex.ru> Thread-Index: Ac17Vlu71Hg8hOA6SxqRQG10/Ri1sgAD5z7Q X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 141.146.126.227 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:152582 > >> On the flip side, I've seen many times that less-technical > >> users can be sloppy with the amount of whitespace between words. > >> If the non-regexp version is supposed to be easy to use, then > >> `search-whitespace-regexp' behavior might be quite useful there. > > > > Less-technical users are often used to less-technical > > editors that do NOT try to be so clever (er, that is, "easy > > to use"). > > Incremental search in Emacs is different enough from the > search function in simple editors, I think, that doing things > the same way is not very valuable. Oh, we are so smart. How come those who _invented_ incremental search and _invented_ Emacs were not so terribly smart? http://en.wikipedia.org/wiki/Incremental_search Someone should also tell the web browsers that offer incremental search... --- Seriously, I'm convinced of the usefulness of magic-SPC simple search. No one is suggesting that Emacs must "do things the same way" as simple editors. The question about minimizing surprise here is a question about the _default_ behavior: which simple-search behavior is turned on to begin with, with `emacs -Q'. And I don't really care a whole lot whether you make magic-SPC the default behavior. What I care about more is (a) the ability to easily toggle it on/off on the fly and (b) the ability for users to choose their own default (initial) behavior. --- BTW, it just occurred to me that when magic-SPC searching is turned on for simple search, it could help to (optionally) highlight consecutive SPC, and any non-SPC, whitespace chars in search hits (slightly) differently from the normal search-hit highlighting. And within a search hit, non-SPC whitespace chars (e.g. TAB, nobreak space) could be highlighted (slightly) differently from SPC chars. (This is for search hits - not the same thing as `nobreak-char-display'.) This would distinguish search hits with more than one whitespace char, and those with non-SPC whitespace chars, from those with only one SPC char. And it would help users tell which SPC-search mode they are currently in. It might be less surprising for a user who is not expecting (aware of) matching of consecutive whitespace chars and matching of non-SPC whitespace chars when s?he hits SPC, if such matches were more apparent. And that includes not just a newbie but also someone who has forgotten that magic-SPC search is turned on.