From: Richard M. Stallman Date: Tue, 16 Apr 1996 23:07:52 +0000 (+0000) Subject: (decode_mode_spec): Use frame F, not selected frame. X-Git-Tag: emacs-19.34~823 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=95184b48ec94a4def68e8a0123afa1623a088d2f;p=emacs.git (decode_mode_spec): Use frame F, not selected frame. On termcap frames, implicit names are ok. --- 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";