[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Moving point after character when clicking latter half of it
From: |
Moritz Maxeiner |
Subject: |
Re: Moving point after character when clicking latter half of it |
Date: |
Fri, 21 Jul 2023 21:04:40 +0200 |
On Thursday 13 July 2023 10:47:36 CEST Eli Zaretskii wrote:
> > From: Moritz Maxeiner <mm@ucw.sh>
> > Cc: emacs-devel@gnu.org
> > Date: Wed, 12 Jul 2023 21:58:44 +0200
> >
> > +@defvar mouse-prefer-closest-glyph
>
> This is a user option, so please use @defopt, not @defvar.
>
> Also, please use some smaller (preferably, default) value for
> fill-column, as the text you posted uses too long lines.
>
> > +If you set this variable to non-@code{nil}, whenever you click or drag
> > the mouse, +instead of the point being always set in front of the clicked
> > glyph, the point +horizontally closest to the mouse position will be
> > used.
> > +So if you click in the left half of a glyph, point is set in front of it,
> > +but if you click in the right half, point is set after it.
>
> There's too much of passive voice here. I think the alternative
> wording proposed by Po Lu is better.
>
> > ++++
> > +** New user option 'mouse-prefer-closest-glyph'.
> > +When enabled, clicking or dragging with the mouse will put the point
> > +in front of the glyph with the closest x coordinate to the mouse pointer.
>
> ^^^^^^^^^^^^^^^^^^^^
> "to the click or start of the drag"
>
> > +In other words, if the mouse pointer is in the right half of a glyph,
> > +point will be put after that glyph, while if the mouse pointer is in the
> > +left half of a glyph, point will be put in front of that glyph.
>
> Point is buffer position, whereas "glyph" is something on display. So
> this should say something like "point will be put after the buffer
> position corresponding to that glyph".
>
> Also, please state explicitly that the default of this feature is OFF.
>
> I understand that the details of the code are still under discussion,
> but I thought I'd post these comments anyway.
>
> Thanks.
Thank you both for your continued feedback. I haven't had time to work on this
in a bit, but I think the patch now includes all your latest suggestions
(sorry if I overlooked something).
emacs-29-move_it_in_display_line_to-nextglyphafterhalf-poc-0.7.patch
Description: Text Data
- Re: Moving point after character when clicking latter half of it, (continued)
- Re: Moving point after character when clicking latter half of it, Moritz Maxeiner, 2023/07/11
- Re: Moving point after character when clicking latter half of it, Po Lu, 2023/07/11
- Re: Moving point after character when clicking latter half of it, Moritz Maxeiner, 2023/07/12
- Re: Moving point after character when clicking latter half of it, Yuan Fu, 2023/07/12
- Re: Moving point after character when clicking latter half of it, Moritz Maxeiner, 2023/07/12
- Re: Moving point after character when clicking latter half of it, Yuan Fu, 2023/07/12
- Re: Moving point after character when clicking latter half of it, Eli Zaretskii, 2023/07/13
- Re: Moving point after character when clicking latter half of it, Yuan Fu, 2023/07/13
- Re: Moving point after character when clicking latter half of it, Po Lu, 2023/07/12
- Re: Moving point after character when clicking latter half of it, Eli Zaretskii, 2023/07/13
- Re: Moving point after character when clicking latter half of it,
Moritz Maxeiner <=
- Re: Moving point after character when clicking latter half of it, Po Lu, 2023/07/21
- Re: Moving point after character when clicking latter half of it, Eli Zaretskii, 2023/07/22
- Re: Moving point after character when clicking latter half of it, Moritz Maxeiner, 2023/07/22
- Re: Moving point after character when clicking latter half of it, Po Lu, 2023/07/22
- Re: Moving point after character when clicking latter half of it, Eli Zaretskii, 2023/07/22
- Re: Moving point after character when clicking latter half of it, Moritz Maxeiner, 2023/07/22
- Re: Moving point after character when clicking latter half of it, Eli Zaretskii, 2023/07/22
- Re: Moving point after character when clicking latter half of it, Moritz Maxeiner, 2023/07/22
- Re: Moving point after character when clicking latter half of it, Eli Zaretskii, 2023/07/22
- Re: Moving point after character when clicking latter half of it, Yuan Fu, 2023/07/22