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 21:15:43 +0200 Message-ID: <8764rlxva8.fsf@xemacs.org> References: <87hdb6accw.fsf@xemacs.org> <87u0f68rfk.fsf@xemacs.org> <87zmoy0zsf.fsf@pacem.orebokech.com> <87y84h7whw.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 1130268502 7737 80.91.229.2 (25 Oct 2005 19:28:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Oct 2005 19:28:22 +0000 (UTC) Cc: Romain Francoise , emacs-devel@gnu.org, miles@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 25 21:28:18 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EUUOG-00045Y-As for ged-emacs-devel@m.gmane.org; Tue, 25 Oct 2005 21:23:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUUOF-0004PC-Oc for ged-emacs-devel@m.gmane.org; Tue, 25 Oct 2005 15:23:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EUUHn-00085q-Ft for emacs-devel@gnu.org; Tue, 25 Oct 2005 15:16:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EUUHc-00082n-Vv for emacs-devel@gnu.org; Tue, 25 Oct 2005 15:16:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUUHa-00082B-Ts for emacs-devel@gnu.org; Tue, 25 Oct 2005 15:16:28 -0400 Original-Received: from [195.29.150.97] (helo=ls405.htnet.hr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EUUH7-0003HQ-7S; Tue, 25 Oct 2005 15:15:58 -0400 Original-Received: from ls422.t-com.hr (ls422.t-com.hr [195.29.150.237]) by ls405.htnet.hr (0.0.0/8.12.10) with ESMTP id j9PJFkWj032096; Tue, 25 Oct 2005 21:15:46 +0200 Original-Received: from ls422.t-com.hr (localhost.localdomain [127.0.0.1]) by ls422.t-com.hr (Qmlai) with ESMTP id BFCB6988045; Tue, 25 Oct 2005 21:15:46 +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 Original-Received: from ls422.t-com.hr (localhost.localdomain [127.0.0.1]) by ls422.t-com.hr (Qmlai) with ESMTP id 9A8F1988042; Tue, 25 Oct 2005 21:15:46 +0200 (CEST) Original-Received: from localhost.localdomain (83-131-15-239.adsl.net.t-com.hr [83.131.15.239]) by ls422.t-com.hr (Qmlai) with ESMTP id 42A998B8049; Tue, 25 Oct 2005 21:15:46 +0200 (CEST) Original-Received: by localhost.localdomain (Postfix, from userid 1000) id ACFD943409A; Tue, 25 Oct 2005 21:15:43 +0200 (CEST) Original-To: snogglethorpe@gmail.com In-Reply-To: (Miles Bader's message of "Tue, 25 Oct 2005 22:59:00 +0900") 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:44844 Archived-At: Miles Bader writes: > 2005/10/25, Hrvoje Niksic : >> I'm not saying that there is anything wrong with those functions, only >> that they are not as useful for this particular purpose as >> `prefix-region' is. > > Which purpose though? Prefixing a region with an arbitrary string. It comes up a lot. > I suspect 90% of the time, `comment-dwim' (M-;) It won't work when editing snippets of code in mail messages or when editing a language for which you don't have a major mode handy. > or `indent-rigidly' are really what's wanted, and do the job better > (for instance `comment-dwim' handles mail quoting and commenting-out > of code just about perfectly); adding arbitrary prefixes seems kinda > rare. I don't think it's all that rare. I've used the function a lot over the years, and I know other XEmacs users who have found it useful. Writing a replacement one is non-trivial.