help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Help-gnu-emacs Digest, Vol 9, Issue 52


From: Joe Corneli
Subject: Re: Help-gnu-emacs Digest, Vol 9, Issue 52
Date: Fri, 29 Aug 2003 15:41:54 -0500

> `point-min' usually return 1, so you won't notice any difference.  But
> if the buffer is narrowed, point-min returns a different number ...
> making the effect of pressing delete quite unpredictable.

I thought the documentation sounded a bit weird, I definitely couldn't
see why anyone would want to use it in the given context.  I guess you
might want to use this function to write code that deals with
e.g. selecting the region that is narrowed to... but not much else.

> > Besides the point-min confusion, kill-region should be called with
> > (region-beginning) and (region-end) which usually -- but not always --
> > correspond to (point) and (mark).
 
> > | or are there other instances where `region-beginning' is different
> > | from `point'?
 
> > Absolutely.  This is an easy one.  Set point at the start of a paragraph.
> > Type C-SPACE to set the mark.  Type M-n to move to the end of the
> > paragraph.  You now have a region where mark is the beginning and point is
> > the end.
> 
> > Now type C-x C-x (exchange-point-and-mark).

> Yes, but what I meant to say with »other instances« was if there are
> any cases where (region-end) is not equivalent to (max (point)
> (mark)).

Are there any instances where the difference actually matters to
(kill-region BEG END)?

Joe





reply via email to

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