From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: small function suggestion (org-examplize-region) Date: Tue, 17 Mar 2009 21:34:58 -0400 Message-ID: <8287.1237340098@gamaville.dokosmarshall.org> References: <87hc1sc9iw.fsf@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ljkhr-0008Kv-JG for emacs-orgmode@gnu.org; Tue, 17 Mar 2009 21:36:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ljkhp-0008Kh-Rx for emacs-orgmode@gnu.org; Tue, 17 Mar 2009 21:36:31 -0400 Received: from [199.232.76.173] (port=49171 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ljkhp-0008Ke-LK for emacs-orgmode@gnu.org; Tue, 17 Mar 2009 21:36:29 -0400 Received: from qmta07.emeryville.ca.mail.comcast.net ([76.96.30.64]:58984) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ljkhp-0000CR-6w for emacs-orgmode@gnu.org; Tue, 17 Mar 2009 21:36:29 -0400 In-Reply-To: Message from Charles Cave of "Wed, 18 Mar 2009 00:50:18 -0000." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Charles Cave Cc: emacs-orgmode@gnu.org Charles Cave wrote: > Eric Schulte gmail.com> writes: > > > > > Hi, > > > > This function could be used to comment out a region of an org-mode file > > as an example using the ': ' syntax. > > I just use the prefix-region command of Emacs. > > Esc-x prefix-region > > then .. > > : SPACE RET My emacs (GNU Emacs 23.0.91.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2009-03-06 on alphaville.usa.hp.com) doesn't seem to have prefix-region - where does it come from? OTOH, it can be simulated with something like this (let ((fill-prefix ": ")) (indent-region (mark) (point))) but making it more general (arbitrary prefix) and bullet-proof (not sure whether (indent-region start end) requires that start be less than end) would need a bit more code than this. Thanks, Nick