From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hrvoje Niksic Newsgroups: gmane.emacs.devel Subject: Re: prefix-region Date: Tue, 25 Oct 2005 23:24:31 +0200 Message-ID: <87slupwar4.fsf@xemacs.org> References: <87hdb6accw.fsf@xemacs.org> <87u0f68rfk.fsf@xemacs.org> <87zmoy0zsf.fsf@pacem.orebokech.com> <87y84h7whw.fsf@xemacs.org> <8764rlxva8.fsf@xemacs.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130275582 32244 80.91.229.2 (25 Oct 2005 21:26:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Oct 2005 21:26:22 +0000 (UTC) Cc: miles@gnu.org, snogglethorpe@gmail.com, Romain Francoise , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 25 23:26:19 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EUWHu-0005qe-Mc for ged-emacs-devel@m.gmane.org; Tue, 25 Oct 2005 23:24:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUWHu-0006DX-0k for ged-emacs-devel@m.gmane.org; Tue, 25 Oct 2005 17:24:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EUWHg-0006DL-KA for emacs-devel@gnu.org; Tue, 25 Oct 2005 17:24:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EUWHe-0006D9-CQ for emacs-devel@gnu.org; Tue, 25 Oct 2005 17:24:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUWHe-0006D6-90 for emacs-devel@gnu.org; Tue, 25 Oct 2005 17:24:38 -0400 Original-Received: from [195.29.150.97] (helo=ls405.htnet.hr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EUWHc-0004YB-Oc; Tue, 25 Oct 2005 17:24:37 -0400 Original-Received: from ls401.t-com.hr (ls401.t-com.hr [195.29.150.236]) by ls405.htnet.hr (0.0.0/8.12.10) with ESMTP id j9PLOVWn016796; Tue, 25 Oct 2005 23:24:33 +0200 Original-Received: from ls401.t-com.hr (localhost.localdomain [127.0.0.1]) by ls401.t-com.hr (Qmlai) with ESMTP id A039570003; Tue, 25 Oct 2005 23:24:33 +0200 (CEST) X-Envelope-Sender: hniksic@xemacs.org X-Envelope-Sender: hniksic@xemacs.org X-Envelope-Sender: hniksic@xemacs.org X-Envelope-Sender: hniksic@xemacs.org X-Envelope-Sender: hniksic@xemacs.org Original-Received: from localhost.localdomain (83-131-15-239.adsl.net.t-com.hr [83.131.15.239]) by ls401.t-com.hr (Qmlai) with ESMTP id 293D3A800C; Tue, 25 Oct 2005 23:24:33 +0200 (CEST) Original-Received: by localhost.localdomain (Postfix, from userid 1000) id BD78343409A; Tue, 25 Oct 2005 23:24:31 +0200 (CEST) Original-To: Andreas Schwab In-Reply-To: (Andreas Schwab's message of "Tue, 25 Oct 2005 23:12:19 +0200") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:44867 Archived-At: Andreas Schwab writes: >> Prefixing a region with an arbitrary string. It comes up a lot. > > I have yet to find a situation where string-rectangle did not suit > my needs. YMMV, of course. No one is claiming that prefix-region can do something that string-rectangle cannot do if you are careful enough. I do claim that prefix-region is much more convenient to use because you don't need to adjust region endpoints to beginning of line. prefix-region is also more easily discovered by someone trying to, well, prefix a region... Before discovering it I used to do things like `C-u M-| sed 's/^/PREFIX/'.