From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: Re: How to find out if emacs is running inside GUI or terminal Date: Sun, 24 Nov 2013 22:56:35 -0700 Message-ID: <20131125055635.GA22914@hysteria.proulx.com> References: <20131122193025.GA18686@hysteria.proulx.com> <87d2lsjkc1.fsf@wanadoo.es> <20131125020405.GA5534@hysteria.proulx.com> <83li0db0vp.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1385359018 31973 80.91.229.3 (25 Nov 2013 05:56:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Nov 2013 05:56:58 +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 06:56:59 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 1VkpAJ-0004On-L0 for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Nov 2013 06:56:59 +0100 Original-Received: from localhost ([::1]:49783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkpAJ-0007F1-7a for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Nov 2013 00:56:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkpA3-0007Ew-HA for help-gnu-emacs@gnu.org; Mon, 25 Nov 2013 00:56:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vkp9x-0007Et-I4 for help-gnu-emacs@gnu.org; Mon, 25 Nov 2013 00:56:43 -0500 Original-Received: from joseki.proulx.com ([216.17.153.58]:43116) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vkp9x-0007Ep-BA for help-gnu-emacs@gnu.org; Mon, 25 Nov 2013 00:56:37 -0500 Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 383E62122A for ; Sun, 24 Nov 2013 22:56:36 -0700 (MST) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id 1A17E2DC77; Sun, 24 Nov 2013 22:56:35 -0700 (MST) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <83li0db0vp.fsf@gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 216.17.153.58 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:94601 Archived-At: Eli Zaretskii wrote: > Bob Proulx wrote: > > 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 ;-) I guess since 21.1 is long 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. Yes, unlikely. Version 23 is the typically oldest one for me. I am using version 24 on my recent systems. Although I do sometimes miss version 18 which always seems like the best "old one" that I remember. :-) Bob