unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Hrvoje Niksic <hniksic@xemacs.org>
Cc: Romain Francoise <romain@orebokech.com>,
	emacs-devel@gnu.org, miles@gnu.org
Subject: Re: prefix-region
Date: Tue, 25 Oct 2005 21:15:43 +0200	[thread overview]
Message-ID: <8764rlxva8.fsf@xemacs.org> (raw)
In-Reply-To: <fc339e4a0510250659i1f095281k@mail.gmail.com> (Miles Bader's message of "Tue, 25 Oct 2005 22:59:00 +0900")

Miles Bader <snogglethorpe@gmail.com> writes:

> 2005/10/25, Hrvoje Niksic <hniksic@xemacs.org>:
>> 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.

  reply	other threads:[~2005-10-25 19:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-24 20:28 prefix-region Hrvoje Niksic
2005-10-24 21:39 ` prefix-region Andreas Schwab
2005-10-24 22:45   ` prefix-region Hrvoje Niksic
2005-10-25  8:24     ` prefix-region Romain Francoise
2005-10-25  9:54       ` prefix-region Hrvoje Niksic
2005-10-25 13:59         ` prefix-region Miles Bader
2005-10-25 19:15           ` Hrvoje Niksic [this message]
2005-10-25 19:41             ` prefix-region Stefan Monnier
2005-10-25 19:47               ` prefix-region Romain Francoise
2005-10-25 20:29               ` prefix-region Edward O'Connor
2005-10-25 21:12             ` prefix-region Andreas Schwab
2005-10-25 21:24               ` prefix-region Hrvoje Niksic
2005-10-31  1:14 ` prefix-region Richard M. Stallman
2005-10-31  8:54   ` prefix-region Hrvoje Niksic

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=8764rlxva8.fsf@xemacs.org \
    --to=hniksic@xemacs.org \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    --cc=romain@orebokech.com \
    /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.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).