From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ferdinand Newsgroups: gmane.emacs.help Subject: =?windows-1252?Q?Re=3A_efficient_replacing_=96_really_faster_com?= =?windows-1252?Q?pared_to_using_the_mouse=3F?= Date: Sat, 11 Aug 2012 13:55:16 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1485\)) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1344686129 28661 80.91.229.3 (11 Aug 2012 11:55:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Aug 2012 11:55:29 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 11 13:55:30 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T0AHx-0004PS-QD for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Aug 2012 13:55:29 +0200 Original-Received: from localhost ([::1]:45788 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0AHw-0006kd-UO for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Aug 2012 07:55:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0AHr-0006kL-BM for help-gnu-emacs@gnu.org; Sat, 11 Aug 2012 07:55:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T0AHp-0002dF-2X for help-gnu-emacs@gnu.org; Sat, 11 Aug 2012 07:55:23 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:47050) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1T0AHo-0002d3-PZ for help-gnu-emacs@gnu.org; Sat, 11 Aug 2012 07:55:21 -0400 Original-Received: (qmail invoked by alias); 11 Aug 2012 11:55:18 -0000 Original-Received: from s5597cbf5.adsl.wanadoo.nl (EHLO [192.168.1.108]) [85.151.203.245] by mail.gmx.net (mp038) with SMTP; 11 Aug 2012 13:55:18 +0200 X-Authenticated: #44561812 X-Provags-ID: V01U2FsdGVkX1+fCcxavRKfqR920TvCHccQgDn2/ntIsz+ZQi2faT 7avxY2VZLc05SS In-Reply-To: X-Mailer: Apple Mail (2.1485) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86311 Archived-At: >=20 > On Aug 10, 8:21 pm, Ferdinand wrote: >> Here is the specific problem: >>=20 >> 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: >>=20 >> - orignal: >> ---------- >>=20 >> print("\n"); >>=20 >> ... something else ... >>=20 >> print(" \n"); >> print(" \n"); >> print(" \n"); >> print(" \n"); >>=20 >> print("\n"); >>=20 >> print("\n"); >>=20 >> ... something else ... >>=20 >> print(" \n"); >> print(" \n"); >> print(" \n"); >> print(" \n"); >>=20 >> print("\n"); >>=20 >> [....] >>=20 >> edited: >> ------- >>=20 >> print("\n"); >>=20 >> ... something else ... >>=20 >> print(" \n"); >> print(" \n"); >> print(" \n"); >> print(" \n"); >>=20 >> print("\n"); >>=20 >> print("\n"); >>=20 >> ... something else ... >>=20 >> print(" \n"); >> print(" \n"); >> print(" \n"); >> print(" \n"); >>=20 >> print("\n"); >=20 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 =85..) Is there something like this? thanks again!