[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mouse-face and help echo support for xterm mouse
From: |
Eli Zaretskii |
Subject: |
Re: mouse-face and help echo support for xterm mouse |
Date: |
Fri, 06 Nov 2020 08:00:20 +0200 |
> Date: Thu, 05 Nov 2020 21:23:26 -0800
> Cc: "Jared Finder via \"Emacs development discussions.\""
> <emacs-devel@gnu.org>
> From: Jared Finder via "Emacs development discussions." <emacs-devel@gnu.org>
>
> All points addressed. New patch attached.
Thanks.
> * src/dispnew.c (update_mouse_position): New function for mouse movement
> logic in 'handle_one_term_event' that can be shared across different
> mouse backends.
> (display--update-for-mouse-movement): New lisp function, call it.
> * lisp/xt-mouse.el (xterm-mouse--handle-mouse-movement): New function that
> calls 'display--update-for-mouse-movement'.
> (xterm-mouse-translate-1): Call it.
> * src/term.c (handle_one_term_event): Inline logic from
> 'term_mouse_movement' and call 'update_mouse_position'.
> (term_mouse_movement): Delete.
Nitpicking: the lines in the change log are too long, they will
overflow 80 columns when indented by TABs (which happens when we
generate a ChangeLog file from Git log). Please use one of the Emacs
commands available for generating ChangeLog entries, they will keep
you from making these mistakes.
> + XSETFRAME(frame, f);
^
Please leave a space before the opening parenthesis, to conform to our
coding conventsions.
> + update_mouse_position (XFRAME (selected_frame), XFIXNUM (mouse_x),
^^^^^^^^^^^^^^^^^^^^^^^
A.k.a. SELECTED_FRAME().
> (defface mode-line-highlight
> - '((((class color) (min-colors 88))
> + '((((type graphic) (class color) (min-colors 88))
> :box (:line-width 2 :color "grey40" :style released-button))
I don't think I understand the rationale. With TTYs supporting many
colors nowadays, and mode-line-highlight available on TTYs, what is
the problem you tried to fix here?
Re: mouse-face and help echo support for xterm mouse, Jared Finder, 2020/11/05
- Re: mouse-face and help echo support for xterm mouse, Stefan Monnier, 2020/11/05
- Re: mouse-face and help echo support for xterm mouse, Jared Finder, 2020/11/05
- Re: mouse-face and help echo support for xterm mouse, Stefan Monnier, 2020/11/05
- Re: mouse-face and help echo support for xterm mouse, Jared Finder, 2020/11/06
- Re: mouse-face and help echo support for xterm mouse,
Eli Zaretskii <=
- Re: mouse-face and help echo support for xterm mouse, Jared Finder, 2020/11/06
- Re: mouse-face and help echo support for xterm mouse, Eli Zaretskii, 2020/11/06
- Re: mouse-face and help echo support for xterm mouse, Jared Finder, 2020/11/06
- Re: mouse-face and help echo support for xterm mouse, Eli Zaretskii, 2020/11/14
Re: mouse-face and help echo support for xterm mouse, Eli Zaretskii, 2020/11/14