From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Aur=C3=A9lien_Aptel?= Newsgroups: gmane.emacs.help Subject: =?UTF-8?Q?Re=3A_efficient_replacing_=E2=80=93_really_faster_compared_t?= =?UTF-8?Q?o_using_the_mouse=3F?= Date: Fri, 10 Aug 2012 20:14:41 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1344622499 1972 80.91.229.3 (10 Aug 2012 18:14:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Aug 2012 18:14:59 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Ferdinand Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 10 20:14:59 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 1SztjX-0006PY-AS for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Aug 2012 20:14:51 +0200 Original-Received: from localhost ([::1]:39872 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SztjW-0004JY-78 for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Aug 2012 14:14:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36464) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SztjQ-0004JB-C0 for help-gnu-emacs@gnu.org; Fri, 10 Aug 2012 14:14:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SztjN-0003sy-UC for help-gnu-emacs@gnu.org; Fri, 10 Aug 2012 14:14:44 -0400 Original-Received: from mail-yw0-f41.google.com ([209.85.213.41]:49015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SztjN-0003sp-Pv for help-gnu-emacs@gnu.org; Fri, 10 Aug 2012 14:14:41 -0400 Original-Received: by yhr47 with SMTP id 47so2073428yhr.0 for ; Fri, 10 Aug 2012 11:14:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=sRSkMQRA5TLaIyAv5JHlkNBjX3bKHTTpLZwCu6Fn/NA=; b=Yti02z0EfS8nSmRof14P6Z71Ipxmw7c9AP7zoplUQPNj4SPPPDrjFlKRi1dKF99zys gm5srl/hiycgkCdDRafK8HGnzf1aUHaPzBVOOhshm2F8GARUej/txvlyJclvCgbbT55r zsjZUesN9im+a05cyx+wUOaRKv+wIvr+aGULF3LfzilEVMQGdIDX/70diNlE4JBlWtBb RdSU0dk2QJOClk3mipVlB/KcIp7J9bV3yyih4kz3kKKiBpobxZyC/pZ5RrgWUrXI5T+p 8qlEkETfxGwW3ByMICY0y02lgTCR2+KwKQscs/skuUf6S97etrxhzEFWlOv+IhIBfU6Q paCg== Original-Received: by 10.60.169.138 with SMTP id ae10mr5434608oec.7.1344622481446; Fri, 10 Aug 2012 11:14:41 -0700 (PDT) Original-Received: by 10.182.42.1 with HTTP; Fri, 10 Aug 2012 11:14:41 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: rUdv19k7_1-n4o98i3O0ntHIZ9A X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.213.41 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:86303 Archived-At: On Fri, Aug 10, 2012 at 5:21 PM, Ferdinand wrote: > 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. There is a very similar thing in emacs which has not been mentionned yet: cua-selection You have to enable it first in your .emacs or via M-x cua-selection-mode. Then, the default keybinding is C-RET. It will let you make rectangle selection with visual feedback, etc. Look at the help message in the minibuffer while using it. That being said, I think I would simply replace xyz25 with xyz42 using M-%. If you select (mark) a region before, the search&replace will only look in the marked text.