diff options
| author | Jim Blandy | 1992-09-13 12:45:33 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-09-13 12:45:33 +0000 |
| commit | 0956dd969c70521c36318a2c781d0d57739a40c9 (patch) | |
| tree | 0b847b05b1d1d1baec5d52934996cdaae07df209 /src | |
| parent | 83762ba49a6dba2c9dcfca26fe888a586f669a0f (diff) | |
| download | emacs-0956dd969c70521c36318a2c781d0d57739a40c9.tar.gz emacs-0956dd969c70521c36318a2c781d0d57739a40c9.zip | |
* xdisp.c (display_mode_line): If the only other frames are
minibuffer frames, don't name the frame after the in the selected
window. We can use Fnext_frame to do this test easily.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 46d9cc2f080..a44f988a8ab 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -1776,14 +1776,21 @@ display_mode_line (w) | |||
| 1776 | 1776 | ||
| 1777 | #ifdef HAVE_X_WINDOWS | 1777 | #ifdef HAVE_X_WINDOWS |
| 1778 | /* I'm trying this out because I saw Unimpress use it, but it's | 1778 | /* I'm trying this out because I saw Unimpress use it, but it's |
| 1779 | possible that this may mess adversely with some window managers. jla */ | 1779 | possible that this may mess adversely with some window managers. -jla |
| 1780 | 1780 | ||
| 1781 | Wouldn't it be nice to use something like mode-line-format to | ||
| 1782 | describe frame titles? -JimB */ | ||
| 1783 | |||
| 1784 | /* Change the title of the frame to the name of the buffer displayed | ||
| 1785 | in the currently selected window. Don't do this for minibuffer frames, | ||
| 1786 | and don't do it when there's only one non-minibuffer frame. */ | ||
| 1781 | if (FRAME_X_P (f) | 1787 | if (FRAME_X_P (f) |
| 1782 | && ! FRAME_MINIBUF_ONLY_P (f) | 1788 | && ! FRAME_MINIBUF_ONLY_P (f) |
| 1783 | && w == XWINDOW (f->selected_window)) | 1789 | && w == XWINDOW (f->selected_window)) |
| 1784 | x_implicitly_set_name (f, ((XINT (Flength (Vframe_list)) > 1) | 1790 | x_implicitly_set_name (f, (EQ (Fnext_frame (WINDOW_FRAME (w), Qnil), |
| 1785 | ? XBUFFER (w->buffer)->name | 1791 | WINDOW_FRAME (w)) |
| 1786 | : Qnil), | 1792 | ? Qnil |
| 1793 | : XBUFFER (w->buffer)->name), | ||
| 1787 | Qnil); | 1794 | Qnil); |
| 1788 | #endif | 1795 | #endif |
| 1789 | } | 1796 | } |