From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: C - marking code between braces.
Date: Thu, 07 Dec 2006 15:28:38 -0700 [thread overview]
Message-ID: <ela4k6$qq5$1@sea.gmane.org> (raw)
In-Reply-To: <17783.57944.999245.840149@localhost.localdomain>
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
Now `C-x e' magically marks the text between the innermost parentheses
(or brackets or braces).
--
Kevin
next prev parent reply other threads:[~2006-12-07 22:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-07 9:43 C - marking code between braces Pawel
2006-12-07 16:36 ` Peter Dyballa
2006-12-07 22:28 ` Kevin Rodgers [this message]
2006-12-08 9:33 ` Pawel
2006-12-11 2:32 ` Dieter Wilhelm
[not found] ` <mailman.1734.1165804380.2155.help-gnu-emacs@gnu.org>
2006-12-11 11:02 ` Johan Bockgård
2006-12-12 22:49 ` C-M-r and C-M-s asymmetric [was: C - marking code between braces] Dieter Wilhelm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='ela4k6$qq5$1@sea.gmane.org' \
--to=ihs_4664@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).