opensubscriber
   Find in this group all groups
 
Unknown more information…

h : help-gnu-emacs@gnu.org 11 August 2012 • 11:50AM -0400

Re: efficient replacing – really faster compared to using the mouse?
by rusi

REPLY TO AUTHOR
 
REPLY TO GROUP




On Aug 10, 8:21 pm, Ferdinand <Ferdinand.Grueb...@gmx....> 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");

Seen this?
http://vimeo.com/1168225

One or two caveats
1. Its badly documented (That video is the best document I know for
this)
2. You need cua mode for that. Turning on cua in .emacs is however
overkill for this.  Just turn it on with M-x and when done turn it off

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.