1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-07 06:50:23 -08:00

Show drag cursor on all window lines (mode, tab, header)

* lisp/ruler-mode.el (ruler-mode-map): Remove down-mouse-1
binding that conflicts with dragging header line.
* src/xdisp.c (note_mode_line_or_margin_highlight): Renamed
to...
(note_line_or_margin_highlight): ...new name since it applies to
any window line (mode, tab, header).  Set drag cursor for window
top lines.
(note_mouse_highlight): Update call to new name (bug#76084).
This commit is contained in:
Jared Finder 2025-02-22 14:25:37 -08:00 committed by Juri Linkov
parent f67e64028e
commit 8528249ee2
2 changed files with 19 additions and 15 deletions

View file

@ -511,7 +511,6 @@ START-EVENT is the mouse click event."
(defvar-keymap ruler-mode-map
:doc "Keymap for `ruler-mode'."
"<header-line> <down-mouse-1>" #'ignore
"<header-line> <down-mouse-3>" #'ignore
"<header-line> <down-mouse-2>" #'ruler-mode-mouse-grab-any-column
"<header-line> S-<down-mouse-1>" #'ruler-mode-mouse-set-left-margin