From 95184b48ec94a4def68e8a0123afa1623a088d2f Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 16 Apr 1996 23:07:52 +0000 Subject: [PATCH] (decode_mode_spec): Use frame F, not selected frame. On termcap frames, implicit names are ok. --- src/xdisp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index b967bbf243c..5f05b79338d 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -3721,10 +3721,10 @@ decode_mode_spec (w, c, spec_width, maxwidth) case 'F': /* %F displays the frame name. */ #ifdef MULTI_FRAME - if (!NILP (selected_frame->title)) - return (char *) XSTRING (selected_frame->title)->data; - if (selected_frame->explicit_name) - return (char *) XSTRING (selected_frame->name)->data; + if (!NILP (f->title)) + return (char *) XSTRING (f->title)->data; + if (f->explicit_name || FRAME_TERMCAP_P (f)) + return (char *) XSTRING (f->name)->data; #endif return "Emacs"; -- 2.39.2