From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: How to find out if emacs is running inside GUI or terminal Date: Mon, 25 Nov 2013 05:45:14 +0200 Message-ID: <83li0db0vp.fsf@gnu.org> References: <20131122193025.GA18686@hysteria.proulx.com> <87d2lsjkc1.fsf@wanadoo.es> <20131125020405.GA5534@hysteria.proulx.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1385351125 25707 80.91.229.3 (25 Nov 2013 03:45:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Nov 2013 03:45:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 25 04:45:29 2013 Return-path: Envelope-to: geh-help-gnu-emacs@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 1Vkn72-0007tk-HA for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Nov 2013 04:45:28 +0100 Original-Received: from localhost ([::1]:49538 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vkn72-0007Am-61 for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Nov 2013 22:45:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vkn6k-0007Ah-9c for help-gnu-emacs@gnu.org; Sun, 24 Nov 2013 22:45:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vkn6e-0006vh-Aj for help-gnu-emacs@gnu.org; Sun, 24 Nov 2013 22:45:10 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:59954) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vkn6e-0006r5-3J for help-gnu-emacs@gnu.org; Sun, 24 Nov 2013 22:45:04 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MWS00800VIR8500@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Mon, 25 Nov 2013 05:45:02 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MWS007VOVR2ZXA0@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Mon, 25 Nov 2013 05:45:02 +0200 (IST) In-reply-to: <20131125020405.GA5534@hysteria.proulx.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94599 Archived-At: > Date: Sun, 24 Nov 2013 19:04:05 -0700 > From: Bob Proulx > > > C-h v window-system > > > > [...] > > > > Use of this variable as a boolean is deprecated. Instead, > > use `display-graphic-p' or any of the other `display-*-p' > > predicates which report frame's specific UI-related capabilities. > > Deprecated! I wish people would let the API mature and stabilize. I > hadn't heard of the display-graphic-p functions yet. Thanks for > mentioning them. display-graphic-p (as well as the other display-*-p predicates) exist since Emacs 21.1. And window-system is deprecated approximately since that time also. So I think this deprecation is mature enough ;-) > > There are several display-*-p functions for querying about specific > > features for a display. > > Sure. Unless you happen to be using an older emacs that doesn't have > those newer functions. I very much doubt that you have such old Emacsen around.