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

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

Re: what is the point of point-min?


From: Rob Thorpe
Subject: Re: what is the point of point-min?
Date: 1 Sep 2003 06:41:31 -0700

Jesper Harder <harder@myrealbox.com> wrote in message 
news:<m3he3zsvlz.fsf@defun.localdomain>...
> robert.thorpe@antenova.com (Rob Thorpe) writes:
> 
> > Jesper Harder <harder@myrealbox.com> wrote:
>  
> >> if there's no difference between (region-end) and (max (point)
> >> (mark)).
> >
> > Secondly it will obey the value of the variable transient-mark-mode,
> > if it is set to non-nil then the mark will deactivate when the
> > buffer contents change.  Given the function you have posted:
> >
> > (global-set-key [delete] 
> >   (lambda () (interactive) 
> >      (if mark-active
> >                (kill-region (point) (mark)) 
> >        (delete-char 1))))
> >
> > This version in transient mark mode will delete the region even though
> > in this mode it is not thought of as existing after a character is
> > inserted into the buffer.
> 
> I don't understand that.  The code tests `mark-active', so it won't
> delete the region in transient-mark-mode if the region is inactive
> (i.e. the mark is deactivated).

Sorry, your right, my mistake.


reply via email to

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