unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Hrvoje Niksic <hniksic@xemacs.org>
Cc: miles@gnu.org, snogglethorpe@gmail.com,
	Romain Francoise <romain@orebokech.com>,
	emacs-devel@gnu.org
Subject: Re: prefix-region
Date: Tue, 25 Oct 2005 23:24:31 +0200	[thread overview]
Message-ID: <87slupwar4.fsf@xemacs.org> (raw)
In-Reply-To: <jeslups3m4.fsf@sykes.suse.de> (Andreas Schwab's message of "Tue, 25 Oct 2005 23:12:19 +0200")

Andreas Schwab <schwab@suse.de> 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/'.

  reply	other threads:[~2005-10-25 21:24 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           ` prefix-region Hrvoje Niksic
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               ` Hrvoje Niksic [this message]
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=87slupwar4.fsf@xemacs.org \
    --to=hniksic@xemacs.org \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    --cc=romain@orebokech.com \
    --cc=snogglethorpe@gmail.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).