From: Ferdinand <Ferdinand.Gruebler@gmx.de>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: efficient replacing – really faster compared to using the mouse?
Date: Sat, 11 Aug 2012 13:55:16 +0200 [thread overview]
Message-ID: <CA6712AE-049C-476F-A5A9-888AFABB82EF@gmx.de> (raw)
In-Reply-To: <e6f53915-e9c1-4988-880b-6b372533a95f@td3g2000pbc.googlegroups.com>
>
> On Aug 10, 8:21 pm, Ferdinand <Ferdinand.Grueb...@gmx.de> wrote:
>> Here is the specific problem:
>>
>> I have a html table with a lot of radio buttons.
>> These radio buttons have names (xyz + a number).
>> Now I have to change all the numbers in the following way:
>>
>> - orignal:
>> ----------
>>
>> print("<tr>\n");
>>
>> ... something else ...
>>
>> print("<td class='Button'> <input type='radio' name='xyz23' value='0'> </td>\n");
>> print("<td class='Button'> <input type='radio' name='xyz23' value='1'> </td>\n");
>> print("<td class='Button'> <input type='radio' name='xyz23' value='2'> </td>\n");
>> print("<td class='Button'> <input type='radio' name='xyz23' value='3'> </td>\n");
>>
>> print("</tr>\n");
>>
>> print("<tr>\n");
>>
>> ... something else ...
>>
>> print("<td class='Button'> <input type='radio' name='xyz54' value='0'> </td>\n");
>> print("<td class='Button'> <input type='radio' name='xyz54' value='1'> </td>\n");
>> print("<td class='Button'> <input type='radio' name='xyz54' value='2'> </td>\n");
>> print("<td class='Button'> <input type='radio' name='xyz54' value='3'> </td>\n");
>>
>> print("</tr>\n");
>>
>> [....]
>>
>> edited:
>> -------
>>
>> print("<tr>\n");
>>
>> ... something else ...
>>
>> print("<td class='Button'> <input type='radio' name='xyz1' value='0'> </td>\n");
>> print("<td class='Button'> <input type='radio' name='xyz1' value='1'> </td>\n");
>> print("<td class='Button'> <input type='radio' name='xyz1' value='2'> </td>\n");
>> print("<td class='Button'> <input type='radio' name='xyz1' value='3'> </td>\n");
>>
>> print("</tr>\n");
>>
>> print("<tr>\n");
>>
>> ... something else ...
>>
>> print("<td class='Button'> <input type='radio' name='xyz2' value='0'> </td>\n");
>> print("<td class='Button'> <input type='radio' name='xyz2' value='1'> </td>\n");
>> print("<td class='Button'> <input type='radio' name='xyz2' value='2'> </td>\n");
>> print("<td class='Button'> <input type='radio' name='xyz2' value='3'> </td>\n");
>>
>> print("</tr>\n");
>
Thanks for all the feedback!
Probably, I just have to get used to the replace and search-shortcuts.
I will try it again in emacs and will see how it works out.
What would be perfect in this particular case, would be a search-function that lets me edit the replacement-string after each occurrence.
You would search for xyz, toggle through all the occurrences and for each occurrence you can type in an individual replacement string.
(like M-% xyz ent 1 spc 1 spc 1 spc 2 spc 2 spc 2 spc 2 …..)
Is there something like this?
thanks again!
next prev parent reply other threads:[~2012-08-11 11:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.6706.1344612116.855.help-gnu-emacs@gnu.org>
2012-08-10 15:40 ` efficient replacing – really faster compared to using the mouse? Carson Chittom
2012-08-10 16:46 ` Raffaele Ricciardi
2012-08-10 16:47 ` Ralf Fassel
2012-08-10 18:44 ` B. T. Raven
2012-08-11 3:50 ` rusi
2012-08-11 11:55 ` Ferdinand [this message]
2012-08-11 13:13 ` Filipp Gunbin
2012-08-12 2:49 ` Eric Abrahamsen
2012-08-10 15:21 Ferdinand
2012-08-10 16:00 ` Filipp Gunbin
2012-08-10 16:46 ` Peter Dyballa
2012-08-10 18:14 ` Aurélien Aptel
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=CA6712AE-049C-476F-A5A9-888AFABB82EF@gmx.de \
--to=ferdinand.gruebler@gmx.de \
--cc=help-gnu-emacs@gnu.org \
/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.