From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Using the same custom file in two different OSes Date: Thu, 17 Jan 2013 15:38:32 +0100 Message-ID: <4A918D61-83A2-4C60-A35C-9EA5CCF24090@Web.DE> References: <419D9CDD3C2740E3B0E0CDE556F7BD12@us.oracle.com><3F565B0F873C4BCCAA938FB0B136521E@us.oracle.com> <86libsb3o6.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1358433523 6812 80.91.229.3 (17 Jan 2013 14:38:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jan 2013 14:38:43 +0000 (UTC) Cc: 'Sebastien Vauban' , help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 17 15:39:01 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 1TvqcO-00050k-4H for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jan 2013 15:39:00 +0100 Original-Received: from localhost ([::1]:39408 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvqc7-0000TM-Ib for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jan 2013 09:38:43 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvqc1-0000SZ-Iv for help-gnu-emacs@gnu.org; Thu, 17 Jan 2013 09:38:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tvqbz-0002Zt-89 for help-gnu-emacs@gnu.org; Thu, 17 Jan 2013 09:38:37 -0500 Original-Received: from mout.web.de ([212.227.17.12]:64997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvqby-0002Za-VK for help-gnu-emacs@gnu.org; Thu, 17 Jan 2013 09:38:35 -0500 Original-Received: from sumac.fritz.box ([95.223.148.182]) by smtp.web.de (mrweb101) with ESMTPA (Nemesis) id 0M8zFx-1TmFHw1rtF-00DBvR; Thu, 17 Jan 2013 15:38:33 +0100 In-Reply-To: X-Mailer: Apple Mail (2.1085) X-Provags-ID: V02:K0:QoCCFWVi1S+BxMqjK2/mT+hAZGWdNv5D0Iwp7QUHTiT GS0SosSGWpLf+GTTVeYEyxYQ4S2zQR0Sx6zLTzg6lieukNGE0E BvQ/iTKb0co39ITzeynu5Bj7BAtmQTjT+aV6YLcTQkVhV8N6gU 035RsaktddjmW9BR368UI0NqsC379U2XSd9lpSWZKeKxSXr3kY VN71FQGM0FMFRkcmk3bnA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.12 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:88671 Archived-At: Am 17.01.2013 um 15:19 schrieb Drew Adams: >>> (if (display-graphic-p) ... >>=20 >> FYI, I'm using: (if window-system ... >> but that comes down to pretty much the same thing, it seems. >=20 > `window-system' has the advantage that it works with older Emacs = releases. >=20 > But `display-graphic-p' is what is recommended for recent releases. > =46rom the doc string of `window-system': >=20 > "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." >=20 >=20 This looks more like a regression than progress=85 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 =96 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. -- Greetings Pete Eat the rich =96 the poor are tough and stringy.