help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: rusi
Subject: Re: efficient replacing – really faster compared to using the mouse?
Date: Fri, 10 Aug 2012 20:50:42 -0700 (PDT)
User-agent: G2/1.0

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");

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]