diff options
| author | Chong Yidong | 2012-06-19 14:49:50 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-06-19 14:49:50 +0800 |
| commit | c6bf30222430f41fbb696e296f0f63f465eefc35 (patch) | |
| tree | 257eb724e088a7e5e321170ce078cc0e3efc5f6e /etc | |
| parent | 4e2cc2f31f8e516901bc3cacf98def678cd45dc9 (diff) | |
| download | emacs-c6bf30222430f41fbb696e296f0f63f465eefc35.tar.gz emacs-c6bf30222430f41fbb696e296f0f63f465eefc35.zip | |
Preserve tty top-frames under various window-changing operations.
* subr.el (with-selected-window): Preserve the selected window's
terminal's top-frame.
* window.el (save-selected-window): Likewise.
* frame.c (delete_frame): When selecting a frame on a different
text terminal, do not alter the terminal's top-frame.
* term.c (Ftty_top_frame): New function.
* xdisp.c (format_mode_line_unwind_data): Record the target
frame's selected window and its terminal's top-frame.
(unwind_format_mode_line): Restore them.
(x_consider_frame_title, display_mode_line, Fformat_mode_line):
Callers changed.
(x_consider_frame_title): Do not condition on HAVE_WINDOW_SYSTEM,
since tty frames can be explicitly named.
(prepare_menu_bars): Likewise.
Fixes: debbugs:4702
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -473,6 +473,8 @@ is detected. | |||
| 473 | Emacs now supports mouse highlight, help-echo (in the echo area), and | 473 | Emacs now supports mouse highlight, help-echo (in the echo area), and |
| 474 | mouse-autoselect-window. | 474 | mouse-autoselect-window. |
| 475 | 475 | ||
| 476 | ** New function `tty-top-frame' returns the topmost frame of a text terminal. | ||
| 477 | |||
| 476 | 478 | ||
| 477 | * Installation Changes in Emacs 24.1 | 479 | * Installation Changes in Emacs 24.1 |
| 478 | 480 | ||