aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii1997-10-13 17:08:02 +0000
committerEli Zaretskii1997-10-13 17:08:02 +0000
commit261bfd0e0e4379a33fda653cf3d618d99174578f (patch)
tree7b739d043bbaab62389a53f21b2ce5a885688545
parente48f782ce41d744e80486b9356222d02ab4e0380 (diff)
downloademacs-261bfd0e0e4379a33fda653cf3d618d99174578f.tar.gz
emacs-261bfd0e0e4379a33fda653cf3d618d99174578f.zip
(decode_mode_spec): Display non-nil title as the frame's
name only on FRAME_WINDOW_P frames.
-rw-r--r--src/xdisp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 26eca6d258b..b7c0c274c1f 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -4309,7 +4309,10 @@ decode_mode_spec (w, c, spec_width, maxwidth)
4309 4309
4310 case 'F': 4310 case 'F':
4311 /* %F displays the frame name. */ 4311 /* %F displays the frame name. */
4312 if (!NILP (f->title)) 4312 /* Systems that can only display a single frame at a time should
4313 NOT replace the frame name with the (constant) frame title,
4314 since then they won't be able to tell which frame is that. */
4315 if (FRAME_WINDOW_P (f) && !NILP (f->title))
4313 return (char *) XSTRING (f->title)->data; 4316 return (char *) XSTRING (f->title)->data;
4314 if (f->explicit_name || ! FRAME_WINDOW_P (f)) 4317 if (f->explicit_name || ! FRAME_WINDOW_P (f))
4315 return (char *) XSTRING (f->name)->data; 4318 return (char *) XSTRING (f->name)->data;