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: Re: C - marking code between braces. Date: Mon, 11 Dec 2006 03:32:53 +0100 Organization: The Church of Emacs Message-ID: <874ps3cgbu.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=us-ascii X-Trace: sea.gmane.org 1165804400 15830 80.91.229.10 (11 Dec 2006 02:33:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Dec 2006 02:33:20 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 11 03:33:19 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 1Gtayj-00072C-Ka for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Dec 2006 03:33:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gtayj-00053U-3i for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Dec 2006 21:33:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GtayR-00052c-2w for help-gnu-emacs@gnu.org; Sun, 10 Dec 2006 21:32:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GtayQ-00051f-80 for help-gnu-emacs@gnu.org; Sun, 10 Dec 2006 21:32:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GtayP-00051H-Uh for help-gnu-emacs@gnu.org; Sun, 10 Dec 2006 21:32:57 -0500 Original-Received: from [212.227.126.186] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GtayP-0002rA-Ae for help-gnu-emacs@gnu.org; Sun, 10 Dec 2006 21:32:58 -0500 Original-Received: from [84.167.66.73] (helo=duenenhof-wilhelm.de) by mrelayeu.kundenserver.de (node=mrelayeu0) with ESMTP (Nemesis), id 0MKwh2-1GtayO14WH-0006Uo; Mon, 11 Dec 2006 03:32:56 +0100 Original-Received: by duenenhof-wilhelm.de (Postfix, from userid 1000) id 36BB275802; Mon, 11 Dec 2006 03:32:53 +0100 (CET) Original-To: Kevin Rodgers In-Reply-To: (Kevin Rodgers's message of "Thu\, 07 Dec 2006 15\:28\:38 -0700") 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:39407 Archived-At: Kevin Rodgers writes: > Pawel wrote: >> Could You tell me whether is there command in emacs that is able to >> mark code between braces, but not braces themselves? > > C-x ( ; kmacro-start-macro (Emacs 22)/ > ; start-kbd-macro > > C-M-u ; backward-up-list > C-@ ; set-mark-command > C-M-f ; forward-sexp > C-b ; backward-char > C-x C-x ; exchange-point-and-mark > C-f ; forward-char > > C-x ) ; kmacro-end-macro (Emacs 22)/ > ; end-kdb-macro C-M-u C-M-SPC C-f C-x C-x C-b or for only *one* level of braces C-M-u C-f C-s } C-b but this sets (marks) only the proper region and does not activate (highlight) it. 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 {! -- Best wishes H. Dieter Wilhelm Darmstadt, Germany