[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) |
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).
- Re: what is the point of point-min?, (continued)
- Re: what is the point of point-min?, Johan Bockgård, 2003/08/28
- Message not available
- Re: what is the point of point-min?, Oliver Scholz, 2003/08/29
- Re: what is the point of point-min?, Eli Zaretskii, 2003/08/29
- Re: what is the point of point-min?, Oliver Scholz, 2003/08/29
- Message not available
- Re: what is the point of point-min?, Kai Großjohann, 2003/08/29
- Re: what is the point of point-min?, Rob Thorpe, 2003/08/29
- Re: what is the point of point-min?,
Jesper Harder <=
- Re: what is the point of point-min?, Kevin Rodgers, 2003/08/28
- Message not available
- Re: what is the point of point-min?, Jesper Harder, 2003/08/28
- Message not available
- Re: what is the point of point-min?, Jesper Harder, 2003/08/29
- Message not available
- Re: what is the point of point-min?, Eli Zaretskii, 2003/08/31