From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Using the same custom file in two different OSes Date: Thu, 17 Jan 2013 08:01:17 -0800 Message-ID: References: <419D9CDD3C2740E3B0E0CDE556F7BD12@us.oracle.com><3F565B0F873C4BCCAA938FB0B136521E@us.oracle.com> <86libsb3o6.fsf@somewhere.org> <4A918D61-83A2-4C60-A35C-9EA5CCF24090@Web.DE> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1358438493 24482 80.91.229.3 (17 Jan 2013 16:01:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jan 2013 16:01:33 +0000 (UTC) Cc: 'Sebastien Vauban' , help-gnu-emacs@gnu.org To: "'Peter Dyballa'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 17 17:01:47 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 1TvruV-0000tv-18 for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jan 2013 17:01:47 +0100 Original-Received: from localhost ([::1]:46865 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvruE-0003os-Hz for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jan 2013 11:01:30 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvru8-0003oX-3B for help-gnu-emacs@gnu.org; Thu, 17 Jan 2013 11:01:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tvru5-0000EG-BA for help-gnu-emacs@gnu.org; Thu, 17 Jan 2013 11:01:24 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:43179) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvru5-0000Dx-3t for help-gnu-emacs@gnu.org; Thu, 17 Jan 2013 11:01:21 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r0HG1JHv028875 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 17 Jan 2013 16:01:20 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r0HG1Ib8029000 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 17 Jan 2013 16:01:19 GMT Original-Received: from abhmt106.oracle.com (abhmt106.oracle.com [141.146.116.58]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r0HG1HPH029188; Thu, 17 Jan 2013 10:01:17 -0600 Original-Received: from dradamslap1 (/130.35.178.8) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 17 Jan 2013 08:01:18 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <4A918D61-83A2-4C60-A35C-9EA5CCF24090@Web.DE> Thread-Index: Ac30wFWPPhiYRNUBTQ6py99F/33vKgACsb6A X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 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:88676 Archived-At: > >>> (if (display-graphic-p) ... > >> > >> FYI, I'm using: (if window-system ... > >> but that comes down to pretty much the same thing, it seems. > > > > `window-system' has the advantage that it works with older > > Emacs releases. > > > > But `display-graphic-p' is what is recommended for recent releases. > > From the doc string of `window-system': > > > > "Use of this function as a predicate is deprecated. Instead, ^^^^^^^^^^^^^^ > > use `display-graphic-p' or any of the other `display-*-p' > > predicates which report frame's specific UI-related capabilities." > > This looks more like a regression than progress. Feel free to report it: `M-x report-emacs-bug'. I only relayed the message, as I understand it. > The variable `window-system' at least returns a value > indicating on which kind of graphic display this instance of > GNU Emacs runs: x, w32, ns, pc, mac. These variants still > need different set-ups. And it also makes sense to decorate > the instance running in different colours to see at once in > which variant I'm in. > > In future one might need to parse the text returned by > `emacs-version' to find this information - and might fail at > first because being build for a graphic display does not > exclude its use without a windowing system. So one would need > a second test. AFAIK, `window-system' is _not_ deprecated. It is its "use as a predicate" that is deprecated. IOW, Emacs Dev suggests that people use `display-graphic-p', not `window-system', to determine whether the current Emacs session supports a graphic display. Again though, that's just my understanding, and I'm just relaying what I have understood.