From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dieter Wilhelm Newsgroups: gmane.emacs.help Subject: C-M-r and C-M-s asymmetric [was: C - marking code between braces] Date: Tue, 12 Dec 2006 23:49:17 +0100 Organization: The Church of Emacs Message-ID: <87hcw0buhe.fsf_-_@hans.local.net> References: <17783.57944.999245.840149@localhost.localdomain> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1165964500 8754 80.91.229.10 (12 Dec 2006 23:01:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Dec 2006 23:01:40 +0000 (UTC) Cc: Johan =?utf-8?Q?Bockg=C3=A5rd?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 13 00:01:38 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GuGcy-0001OG-UG for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Dec 2006 00:01:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuGcy-00012f-HD for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Dec 2006 18:01:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GuGbK-0007oi-8n for help-gnu-emacs@gnu.org; Tue, 12 Dec 2006 17:59:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GuGbJ-0007nB-6s for help-gnu-emacs@gnu.org; Tue, 12 Dec 2006 17:59:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuGbJ-0007mx-0B for help-gnu-emacs@gnu.org; Tue, 12 Dec 2006 17:59:53 -0500 Original-Received: from [212.227.126.177] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GuGbI-0007rw-Ej for help-gnu-emacs@gnu.org; Tue, 12 Dec 2006 17:59:52 -0500 Original-Received: from [84.167.63.142] (helo=duenenhof-wilhelm.de) by mrelayeu.kundenserver.de (node=mrelayeu6) with ESMTP (Nemesis), id 0ML29c-1GuGbF0vsK-00032F; Tue, 12 Dec 2006 23:59:49 +0100 Original-Received: by duenenhof-wilhelm.de (Postfix, from userid 1000) id DC5FA75699; Tue, 12 Dec 2006 23:49:17 +0100 (CET) Original-To: help-gnu-emacs@gnu.org In-Reply-To: (Johan =?utf-8?Q?Bo?= =?utf-8?Q?ckg=C3=A5rd's?= message of "Mon\, 11 Dec 2006 12\:02\:25 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) X-Provags-ID: kundenserver.de abuse@kundenserver.de login:d7ab225b98a136e1c2910381f940ecb9 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:39484 Archived-At: bojohan+news@dd.chalmers.se (Johan Bockg=C3=A5rd) writes: > Dieter Wilhelm writes: > >> Another idea for one level could be >> >> C-M-r [^{}]+ >> C-M-s >> >> but to my astonishment C-M-r does not skip to the char behind {! > > I think the key is here: > > ,----[ C-h f search-backward-regexp RET ] > | [...] > | Search backward from point for match for regular expression REGEXP. > | Set point to the beginning of the match, and return point. > | The match found is the one starting last in the buffer > | and yet ending before the origin of the search. > | [...] > `---- Sorry Johan, I don't get it, the behaviour might be consistent with the description above but the fact is that + should be greedy. Please search with C-M-s for "o.*o" in the following line hans otto otto otto hans When you C-M-r wouldn't you expect to find the same matches? This is clearly not the case and I can't imagine why. --=20 Best wishes H. Dieter Wilhelm Darmstadt, Germany