aboutsummaryrefslogtreecommitdiffstats
path: root/exec
diff options
context:
space:
mode:
authorPengji Zhang2025-04-02 20:52:30 +0800
committerEli Zaretskii2025-04-05 12:30:46 +0300
commitc94f0d3dc82a72baa0ba8d69beda220aaf0b2d91 (patch)
treea60e9a00236ab43fa7bf5d1aa92a0743a5bf50fa /exec
parent2d0b5f34a008979d34f337c872bcf93a296c6ec2 (diff)
downloademacs-c94f0d3dc82a72baa0ba8d69beda220aaf0b2d91.tar.gz
emacs-c94f0d3dc82a72baa0ba8d69beda220aaf0b2d91.zip
Fix mouse highlighting for compact mode lines (bug#77336)
When 'mode-line-compact' is non-nil, the mode line string is displayed as a whole. That confuses the computation of ranges of mouse highlighting on the mode line because all the glyphs have the same Lisp object source. As such, in this commit we instead split the mode line string by sources, and display those elements one by one, so the boundaries of each element could be correctly detected for the purpose of mouse highlighting. * src/xdisp.c (display_mode_line): Display mode line elements one by one when 'mode-line-compact' is non-nil. (display_mode_element): Record source element number of the stored string via a text property. (Fformat_mode_line): Initialize 'mode_line_elt_no' to 0. (syms_of_xdisp): New symbol for the text property.
Diffstat (limited to 'exec')
0 files changed, 0 insertions, 0 deletions