summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/byte-run.el
diff options
context:
space:
mode:
authorMartin Rudalics <rudalics@gmx.at>2025-03-17 09:36:59 +0100
committerMartin Rudalics <rudalics@gmx.at>2025-03-17 09:36:59 +0100
commit7e71b0a2c938623872ec7404d81339c8ff51b012 (patch)
treedbdd6a42187ca09405a19d165f183e0279b225e5 /lisp/emacs-lisp/byte-run.el
parentd708ebe401a2001e764821b7e43d9e9aaa23ea95 (diff)
downloademacs-7e71b0a2c938623872ec7404d81339c8ff51b012.tar.gz
emacs-7e71b0a2c938623872ec7404d81339c8ff51b012.tar.bz2
emacs-7e71b0a2c938623872ec7404d81339c8ff51b012.zip
Implement surrogate menu bars for tty child frames
* lisp/menu-bar.el (popup-menu): When asked to pop up MENU from a tty child frame try to use menu of its root frame. (menu-bar-open): When FRAME is a child frame and 'tty-menu-open-use-tmm' is nil, navigate menu bar of its root frame. * src/keymap.c (Fcurrent_active_maps): Accept live window as POSITION argument and use its buffer as current when processing the key sequence. Needed for tty child frames so the root frame's menu bar can be updated according to the selected window's buffer when navigating the menu bar from keyboard. * src/xdisp.c (prepare_menu_bars): If the selected window's frame is a tty child frame without menu bar, that frame's root frame has a menu bar and 'tty-menu-open-use-tmm' is nil, prepare to update the menu bar of the root frame as surrogate. (update_menu_bar): New argument W denoting the window that should be considered as selected. For a tty child frame using F as surrogate menu bar frame this specifies the child frame's selected window and its buffer shall be used for updating the menu bar of the root frame instead of the buffer of the root frame's selected window. (redisplay_window): Instead of setting redisplay_menu_p flag always call display_menu_bar right away. This facilitates to call display_menu_bar for a tty child frame with its root frame as surrogate menu bar frame. (display_tty_menu_item): If the selected frame is a tty child frame, overwrite its root frame's glyph matrix (and not that of the child frame) when displaying a menu item. (Qtty_menu_open_use_tmm): Define symbol.
Diffstat (limited to 'lisp/emacs-lisp/byte-run.el')
0 files changed, 0 insertions, 0 deletions