From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bitterspetey Newsgroups: gmane.emacs.help Subject: Re: Search in filled text does not work correctly Date: Sun, 26 Feb 2012 11:41:46 -0800 (PST) Message-ID: <33395942.post@talk.nabble.com> References: <33390451.post@talk.nabble.com> <86k43a1hik.fsf@dbn66.laserlab.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1330285319 22161 80.91.229.3 (26 Feb 2012 19:41:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 26 Feb 2012 19:41:59 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 26 20:41:58 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S1jyl-0004Ji-Qb for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Feb 2012 20:41:55 +0100 Original-Received: from localhost ([::1]:39966 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1jyl-00007N-2y for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Feb 2012 14:41:55 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1jyg-000073-DM for Help-gnu-emacs@gnu.org; Sun, 26 Feb 2012 14:41:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1jyd-000679-V2 for Help-gnu-emacs@gnu.org; Sun, 26 Feb 2012 14:41:50 -0500 Original-Received: from sam.nabble.com ([216.139.236.26]:52847) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1jyd-00066q-MV for Help-gnu-emacs@gnu.org; Sun, 26 Feb 2012 14:41:47 -0500 Original-Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1S1jyc-00008i-GG for Help-gnu-emacs@gnu.org; Sun, 26 Feb 2012 11:41:46 -0800 In-Reply-To: <86k43a1hik.fsf@dbn66.laserlab.com> X-Nabble-From: business@stevepetersen.net X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 216.139.236.26 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83874 Archived-At: Certainly you can learn to do it - but I found it a bit remarkable that suc= h a sophisticated regexp was required to allow for the possibility of breakin= g over lines (and catch the other usual whitespace). I'm not a power user by a longshot (like I very rarely do any lisp) - but I've been a user for over a decade, and I picked up some amount of regular expression stuff, and it still took me some time to figure out that '\s-' does not match line feeds, contrary to explicit statement in=20 http://www.emacswiki.org/emacs/RegularExpression the manual : Note also that \s- matches space, tab, newline and carriage return. This ca= n be handy in a [^ =E2=80=A6 ] construct. If I had this trouble, I'm guessing a totally new user, curious about the power of emacs, is going to be totally at sea. So I think if the emacs community cares about new users, this is a default that should be changed. You should have the option to search for an explicit space, of course, but the default in searches should be a whitespace of any of the generic sorts. gregben wrote: >=20 > I happened to want to convert a list like this: >=20 > "apple" "banana" "cherry" >=20 > to this format: >=20 > apple > banana > cherry >=20 > the other day. I started our with 'replace-regexp' and learned about > C-q C-j in a matter of minutes after first trying \n, \\n, C-j, > etc. before googling.=20 >=20 > Perhaps it would be better to educate rather than change emacs' > behavior. The built-in tutorial could have a few words added about > using C-q C-j with respect to searching and replacing, or the single > tutorial now provided could be broken into several, with one dedicated > to searching, replacing, highlighting, displaying only the lines > containing a pattern, etc. >=20 --=20 View this message in context: http://old.nabble.com/Search-in-filled-text-d= oes-not-work-correctly-tp33390451p33395942.html Sent from the Emacs - Help mailing list archive at Nabble.com.