emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why act from point forward by default, instead of whole buffer?


From: Davis Herring
Subject: Re: Why act from point forward by default, instead of whole buffer?
Date: Mon, 24 Sep 2007 10:42:05 -0700 (PDT)
User-agent: SquirrelMail/1.4.8-6.el3.2lanl

> General question that occurred to me while reading thread
> "keep|flush-lines,
> how-many to be used backward": What is the advantage of having such
> commands
> (`keep-lines' and many others) act, by default, from point forward instead
> of (by default) on the entire buffer?
>
> They do act on the region, if it is active, so that's good. But why not
> have
> the entire buffer be the default if the region is not active? I use that
> behavior for many commands I define.

Not everyone uses Transient Mark mode.  If they acted on the whole buffer,
you would have to use narrowing to restrain them in any way.  By acting
forward, one common case can be handled with no prefix, and the whole
buffer with just M-<, and narrowing (again) otherwise.

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]