From: "Peter Milliken" <peter.milliken@gmail.com>
To: sharky <landhaj@yahoo.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Search and replace enclosing \commands{word}
Date: Mon, 12 Jan 2009 06:53:43 +1100 [thread overview]
Message-ID: <791153ba0901111153y3ac1baa1idd4b70108dd281f6@mail.gmail.com> (raw)
In-Reply-To: <572f9fcb-b5df-4923-88bf-53658b82f09f@r15g2000prd.googlegroups.com>
[-- Attachment #1: Type: text/plain, Size: 667 bytes --]
Yes, read the help sections on regular expression search and replace. You
can "capture" the text between the {}'s and keep it without losing it (read
up on submatches).
On Mon, Jan 12, 2009 at 1:31 AM, sharky <landhaj@yahoo.com> wrote:
> Hi!
>
> I'm using emacs to write LaTeX code, which means I have a lot of stuff
> that looks like this:
>
> \section{Headline}
>
> Blah blah yada yada \textit{italic yada} and the yada yada \textbf
> {bold yada} and then \myspecial{yada}.
>
> You get the picture. I wanna search and delete the enclosing thingy,
> like so:
>
> \myspecial{yada} -----> yada
>
> Is there a way to do this in emacs?
>
> Please help!
>
> /Sharky
>
[-- Attachment #2: Type: text/html, Size: 1021 bytes --]
next prev parent reply other threads:[~2009-01-11 19:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-11 14:31 Search and replace enclosing \commands{word} sharky
2009-01-11 15:25 ` Teemu Likonen
2009-01-11 19:53 ` Peter Milliken [this message]
[not found] ` <mailman.4573.1231703627.26697.help-gnu-emacs@gnu.org>
2009-01-17 20:20 ` sharky
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=791153ba0901111153y3ac1baa1idd4b70108dd281f6@mail.gmail.com \
--to=peter.milliken@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=landhaj@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).