help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C - marking code between braces.


From: Johan Bockgård
Subject: Re: C - marking code between braces.
Date: Mon, 11 Dec 2006 12:02:25 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.90 (gnu/linux)

Dieter Wilhelm <dieter@duenenhof-wilhelm.de> 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.
| [...]
`----

-- 
Johan Bockgård


reply via email to

[Prev in Thread] Current Thread [Next in Thread]