all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kai Grossjohann <kai@emptydomain.de>
Subject: Re: Regexp Query/Replace Without Trashing Original Text
Date: Sun, 01 Aug 2004 15:15:53 +0200	[thread overview]
Message-ID: <86hdrnc83a.fsf@ketchup.de.uu.net> (raw)
In-Reply-To: 1091270054.672720@sj-nntpcache-5

"Tennis Smith" <tennis_smith@yahoo-remove-to-reply.com> writes:

> How can I convert something like this
>
> $GLOBAL_VAR
>
> to this:
>
> $global_array(GLOBAL_VAR)
>
> ??

I presume it's variables starting with an uppercase letter.  You can
make a kbd macro for this.  C-x ( starts recording, C-x ) ends
recording.  In the macro, search for $ followed by an uppercase
letter.  Then move point to after the $, then insert "global_array(",
then use M-f or C-M-f to skip forward over the variable name, then
insert the closing parenthesis.

Kbd macros are your friends.

Kai

  reply	other threads:[~2004-08-01 13:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-31 10:37 Regexp Query/Replace Without Trashing Original Text Tennis Smith
2004-08-01 13:15 ` Kai Grossjohann [this message]
2004-08-01 17:34 ` Pascal Bourguignon
2004-08-02  2:45   ` Tennis Smith
2004-08-02 14:56 ` Yair Friedman

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86hdrnc83a.fsf@ketchup.de.uu.net \
    --to=kai@emptydomain.de \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.