[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Regexp Query/Replace Without Trashing Original Text
|
From: |
Kai Grossjohann |
|
Subject: |
Re: Regexp Query/Replace Without Trashing Original Text |
|
Date: |
Sun, 01 Aug 2004 15:15:53 +0200 |
|
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) |
"Tennis Smith" <address@hidden> 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
- Re: Regexp Query/Replace Without Trashing Original Text,
Kai Grossjohann <=