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 19:04:05 -0700 Message-ID: <20131125020405.GA5534@hysteria.proulx.com> References: <20131122193025.GA18686@hysteria.proulx.com> <87d2lsjkc1.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1385345065 4051 80.91.229.3 (25 Nov 2013 02:04:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Nov 2013 02:04: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 03:04:31 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 1VklXK-0002UE-D9 for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Nov 2013 03:04:30 +0100 Original-Received: from localhost ([::1]:49250 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VklXJ-0004PX-OE for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Nov 2013 21:04:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57172) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VklX2-0004PK-S6 for help-gnu-emacs@gnu.org; Sun, 24 Nov 2013 21:04:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VklWw-0005ZG-SY for help-gnu-emacs@gnu.org; Sun, 24 Nov 2013 21:04:12 -0500 Original-Received: from joseki.proulx.com ([216.17.153.58]:42578) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VklWw-0005Z4-F9 for help-gnu-emacs@gnu.org; Sun, 24 Nov 2013 21:04:06 -0500 Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 02AAB2122C for ; Sun, 24 Nov 2013 19:04:06 -0700 (MST) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id E46A72DC77; Sun, 24 Nov 2013 19:04:05 -0700 (MST) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <87d2lsjkc1.fsf@wanadoo.es> 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:94596 Archived-At: =D3scar Fuentes wrote: > Bob Proulx writes: > > (if window-system > > (setq mouse-yank-at-point t)) > > And to head off complaints about the example, it is only an example. > > I am aware of 'fboundp'. >=20 > I'll complain about something else, then :-) :-) > C-h v window-system >=20 > [...] >=20 > 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. > So your example should be >=20 > (if (display-graphic-p) > .... >=20 > 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 will have to look to see how long they have been around. Bob