]> git.eshelyaron.com Git - emacs.git/commitdiff
(decode_mode_spec): Use frame F, not selected frame.
authorRichard M. Stallman <rms@gnu.org>
Tue, 16 Apr 1996 23:07:52 +0000 (23:07 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 16 Apr 1996 23:07:52 +0000 (23:07 +0000)
On termcap frames, implicit names are ok.

src/xdisp.c

index b967bbf243c510f30b7cf098de145d7139f61986..5f05b79338d33f8555382645bd3420755ac69acc 100644 (file)
@@ -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";