]> git.eshelyaron.com Git - emacs.git/commit
Display separators on tty menus with display table entries
authorGerd Möllmann <gerd@gnu.org>
Sun, 26 Jan 2025 10:31:32 +0000 (11:31 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sun, 26 Jan 2025 19:02:28 +0000 (20:02 +0100)
commitefc5a26fe2dca6ea221dbd2aebe0937f6ff397ba
treee53822943035b58533d563abec17ec988264be6a
parent8f43d9119e06284acdf70131ccb6b063a57142d5
Display separators on tty menus with display table entries

* src/xdisp.c (display_tty_menu_separator): Lookup separator char in
standard-display-table, make a string, and display that using
display_string.
* src/xdisp.c (display_tty_menu_separator_char): New function.
(display_tty_menu_separator): Use it.
* lisp/disp-table.el (display-table): Increase from 12 to 18.
(box-double-vertical, box-double-horizontal, box-double-down-right)
(box-double-down-left, box-double-up-right, box-double-up-left): New
symbols for extra slots.
(display-table-slot, set-display-table-slot): Change doc string.
(describe-display-table): Describe new slots.
(standard-display-unicode-special-glyphs): Define new slots.
* src/disptab.h (DISP_TABLE_P): Add enumerators.
(DISP_TABLE_EXTRA_SLOTS): Define based on enum box.
* src/dispnew.c (produce_box_glyphs): Add new enumerators to switch to
make it exhaustive.
* src/xdisp.c (display_tty_menu_separator): Use BOX_DOUBLE_HORIZONTAL
for '=' if present.
* doc/lispref/display.texi: Add documentation.
* etc/NEWS: Mention in NEWS.

(cherry picked from commit 4e78a3e117f4ca0b6b9f3b7a2d7919cb5b2e0295)
doc/lispref/display.texi
lisp/disp-table.el
src/dispnew.c
src/disptab.h
src/xdisp.c