From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: How to restore the layout? Date: Fri, 28 Jun 2013 09:07:24 +0300 Message-ID: <83fvw2g44j.fsf@gnu.org> References: <51C5AA68.4000204@alice.it> <87vc5345t3.fsf@gmail.com> <51C8B2C8.4000803@gmx.at> <51C93CDB.2020301@gmx.at> <51C9C790.3020407@gmx.at> <51CA0D4C.7080204@alice.it> <51CC3E42.7020409@alice.it> <51CC4CC1.3030202@alice.it> <51CC8403.1030009@gmx.at> <51CCA56A.8000508@gmx.at> <51CCA7DC.8060605@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1372399663 17428 80.91.229.3 (28 Jun 2013 06:07:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Jun 2013 06:07:43 +0000 (UTC) Cc: angelo.graziosi@alice.it, emacs-devel@gnu.org, rudalics@gmx.at, monnier@iro.umontreal.ca, stephen.berman@gmx.net, kjambunathan@gmail.com To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 28 08:07:42 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UsRqO-00017v-PL for ged-emacs-devel@m.gmane.org; Fri, 28 Jun 2013 08:07:40 +0200 Original-Received: from localhost ([::1]:38975 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsRqO-0003wg-7m for ged-emacs-devel@m.gmane.org; Fri, 28 Jun 2013 02:07:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsRqK-0003wb-NB for emacs-devel@gnu.org; Fri, 28 Jun 2013 02:07:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsRqJ-00061I-Mg for emacs-devel@gnu.org; Fri, 28 Jun 2013 02:07:36 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:61205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsRqJ-00061A-EC for emacs-devel@gnu.org; Fri, 28 Jun 2013 02:07:35 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MP300F00A5VJN00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Fri, 28 Jun 2013 09:07:26 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MP300F4XACEJJ20@a-mtaout20.012.net.il>; Fri, 28 Jun 2013 09:07:26 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:161167 Archived-At: > From: Juanma Barranquero > Date: Fri, 28 Jun 2013 01:33:17 +0200 > Cc: Angelo Graziosi , Emacs developers , > Stefan Monnier , Eli Zaretskii , > Stephen Berman , Jambunathan K > > 1.- Is there a way to check from Emacs wheter a given DISPLAY is accessible? If the experts say there isn't, I'd say catch errors from make-frame-on-display, display a warning, and be done. > 2.- It is acceptable on POSIX systems to try to create X frames if > emacs was started with -nw? I won't like that, FWIW. > 3.- On Windows, after "emacs -nw", creating w32 frames is a no-no. > What is the "correct" or "elegant" way to detect that? Is there > something better than > > (and (eq system-type 'windows-nt) (not window-system)) You could use display-graphic-p, of course. > 4.- What about the MS-DOS port? Does it support more than one frame? Yes, it does, like any TTY session: all the frames occupy the same screen space, and only one of them is visible at any given time.