GNU bug report logs - #1165
23.0.60; doc of make-frame-command

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Tue, 14 Oct 2008 17:50:03 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>, 1165 <at> debbugs.gnu.org
Cc: emacs-pretest-bug <at> gnu.org, bug-gnu-emacs <at> gnu.org
Subject: bug#1165: 23.0.60; doc of make-frame-command
Date: Tue, 14 Oct 2008 21:45:19 +0200
> From: "Drew Adams" <drew.adams <at> oracle.com>
> Date: Tue, 14 Oct 2008 10:42:43 -0700
> Cc: 
> 
> (if (and window-system (not (eq window-system 'pc)))
>     (make-frame)
>   (select-frame (make-frame)))
>  
> 1. Why the difference for `pc'?

`pc' is the value of window-system for the MS-DOS build of Emacs.  The
MS-DOS build behaves like a text terminal, but its window-system has a
non-nil value; thus the difference.

Although correct, that code should actually be rewritten using
display-graphic-p to become cleaner.

> 2. What does the doc string mean by "terminal" and "if the terminal
> displays only one frame"?

It means the text-only terminals, which can only display one frame at
a time.

> If "terminal" refers only to emacs -nw, then nothing is said about
> the window-manager case.

Well, I think it does say something about the windowed terminals: it
says that on those terminals, a new frame is created, but it is not
selected.




This bug report was last modified 16 years and 210 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.