emacs-devel
[Top][All Lists]
Advanced

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

Re: Moving point after character when clicking latter half of it


From: Yuri Khan
Subject: Re: Moving point after character when clicking latter half of it
Date: Sun, 9 Jul 2023 20:58:28 +0700

On Sun, 9 Jul 2023 at 20:24, Eli Zaretskii <eliz@gnu.org> wrote:

> I was more asking about user
> expectations: those could be different when clicking to move point and
> when dragging.

In my head, it’s a matter of rounding pixel coordinates to integer
boundaries between characters. It feels natural to round to the
nearest boundary. That feeling does not change whether it is for the
purpose of insertion or region selection; in both cases we target the
boundary.

One case which feels different is moving point for the purpose of
overwriting (overwrite-mode). Ostensibly, in this case we target the
character, rather than the boundary between characters. Since
overwrite-mode overwrites the character after the point, this means
rounding towards the beginning of the buffer.



reply via email to

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