emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Charles Cave <charles_cave@optusnet.com.au>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: small function suggestion (org-examplize-region)
Date: Tue, 17 Mar 2009 21:34:58 -0400	[thread overview]
Message-ID: <8287.1237340098@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Charles Cave <charles_cave@optusnet.com.au> of "Wed, 18 Mar 2009 00:50:18 -0000." <loom.20090318T004935-735@post.gmane.org>

Charles Cave <charles_cave@optusnet.com.au> wrote:

> Eric Schulte <schulte.eric <at> 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

  reply	other threads:[~2009-03-18  1:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-17 18:02 small function suggestion (org-examplize-region) Eric Schulte
2009-03-17 19:00 ` Manish
2009-03-18  8:38   ` Carsten Dominik
2009-03-18  0:50 ` Charles Cave
2009-03-18  1:34   ` Nick Dokos [this message]
2009-03-18  5:35     ` Charles Cave
2009-03-18  8:32       ` Mikael Fornius
2009-03-18 16:07       ` Daniel Clemente

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8287.1237340098@gamaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=charles_cave@optusnet.com.au \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).