[Top][All Lists]

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

Re: what is the point of point-min?

From: Jesper Harder
Subject: Re: what is the point of point-min?
Date: Sat, 30 Aug 2003 04:54:48 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

address@hidden (Rob Thorpe) writes:

> Jesper Harder <address@hidden> 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).

reply via email to

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