unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Re: Help-gnu-emacs Digest, Vol 9, Issue 52
       [not found] <E19sZYb-0008Gq-Q3@monty-python.gnu.org>
@ 2003-08-29 20:41 ` Joe Corneli
  0 siblings, 0 replies; only message in thread
From: Joe Corneli @ 2003-08-29 20:41 UTC (permalink / raw)
  Cc: help-gnu-emacs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1291 bytes --]

> `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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-29 20:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E19sZYb-0008Gq-Q3@monty-python.gnu.org>
2003-08-29 20:41 ` Help-gnu-emacs Digest, Vol 9, Issue 52 Joe Corneli

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).