[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#42889: 28.0.50; make-pointer-invisible t should work also for naviga
From: |
Stefan Kangas |
Subject: |
bug#42889: 28.0.50; make-pointer-invisible t should work also for navigation commands |
Date: |
Mon, 17 Aug 2020 15:34:48 +0000 |
Eli Zaretskii <eliz@gnu.org> writes:
>> Please consider the following feature request:
>>
>> 0. emacs -Q
>> 1. (setq make-pointer-invisible t)
>> 2. M-x customize-group RET RET
>> 3. Move mouse pointer over e.g. "Editing" to highlight it
>> 4. C-n C-p C-f C-b
>>
>> Result: "Editing" is still highlighted.
>>
>> Desired result: "Editing" is _not_ highlighted.
>
> I think it should be very easy to add such a feature, and I'm willing
> to help by advice. Want to give it a try?
Sure, why not? Thanks for offering to help.
I had a first naive crack at it, and ended up with the attached. It
covers the commands that often irks me, but it might need some more
adjusting. I considered exposing this to Lisp, but it seemed better to
do this in the low-level primitives, maybe?
I did find one problem, which is that the mouse cursor disappears when I
scroll using the mouse wheel. I tried fixing it using a simple
let-binding, but that didn't work for some reason I don't yet understand
(see patch).
Also, is this behaviour suitable as a default or should it be optional?
Best regards,
Stefan Kangas
make-invisible.diff
Description: Text Data