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?efficient_replacing_=96_really_faster_compared_?= =?windows-1252?Q?to_using_the_mouse=3F?= Date: Fri, 10 Aug 2012 17:21:48 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1485\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1344612123 12660 80.91.229.3 (10 Aug 2012 15:22:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Aug 2012 15:22:03 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 10 17:22:04 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 1Szr2G-00006K-6J for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Aug 2012 17:22:00 +0200 Original-Received: from localhost ([::1]:52107 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Szr2E-0008JX-QA for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Aug 2012 11:21:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Szr29-0008JG-T9 for help-gnu-emacs@gnu.org; Fri, 10 Aug 2012 11:21:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Szr27-0000PO-Gd for help-gnu-emacs@gnu.org; Fri, 10 Aug 2012 11:21:53 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:43914) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Szr27-0000Oi-77 for help-gnu-emacs@gnu.org; Fri, 10 Aug 2012 11:21:51 -0400 Original-Received: (qmail invoked by alias); 10 Aug 2012 15:21:48 -0000 Original-Received: from unknown (EHLO [137.120.213.157]) [137.120.213.157] by mail.gmx.net (mp037) with SMTP; 10 Aug 2012 17:21:48 +0200 X-Authenticated: #44561812 X-Provags-ID: V01U2FsdGVkX1/RuvgPW5PRqt1UEoIpY/DI2+i3mY/CuI5IVeJgXP R5/Z0B20LvHodY 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.23 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:86290 Archived-At: Hi, I am currently trying to get used to emacs. Before I heavily relied on TextMate (on Mac OS). A lot of people claim that, once you learned all the shortcuts, emacs is = much faster without ever using the mouse. I just ran into a problem where I really couldn't figure out how to do = this with emacs at all. Eventually I switched back to TextMate ... So, probably I just am not aware of some key-combinations or there are = other tricks I don't know, so I thought I just ask some = emacs-professionals here on the list. 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("\n"); ... something else ... print(" \n"); print(" \n"); print(" \n"); print(" \n"); =09 print("\n"); print("\n"); ... something else ... print(" \n"); print(" \n"); print(" \n"); print(" \n"); =09 print("\n"); [....] edited: ------- print("\n"); ... something else ... print(" \n"); print(" \n"); print(" \n"); print(" \n"); =09 print("\n"); print("\n"); ... something else ... print(" \n"); print(" \n"); print(" \n"); print(" \n"); =09 print("\n"); [and so on] Now in TextMate I just switch to column-mode with my mouse (by pressing = alt while selecting). Then I draw a rectangle with the mouse to select the number behind xyz = of one -block and type in the right number. This is fairly easy to me and quite quick. In emacs I just have no idea how to do this in a reasonable amount of = time. Only to navigate to the next block with C-n / C-p and to get to the = right place in the line with C-b / C-f takes a lot of time. And then to mark the beginning (with C-space) navigate to the end to = replace it ... That is much less efficient compared to using the mouse (in my opinion). So what am I doing wrong here? How do you solve such edits in emacs efficiently? Thanks for any suggestions!=