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:57:41 -0800 Message-ID: References: <419D9CDD3C2740E3B0E0CDE556F7BD12@us.oracle.com><3F565B0F873C4BCCAA938FB0B136521E@us.oracle.com><86libsb3o6.fsf@somewhere.org> <834nif93ed.fsf@gnu.org> 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 1358441876 27161 80.91.229.3 (17 Jan 2013 16:57:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jan 2013 16:57:56 +0000 (UTC) To: "'Eli Zaretskii'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 17 17:58:14 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 1Tvsn5-0004o7-39 for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jan 2013 17:58:11 +0100 Original-Received: from localhost ([::1]:51176 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvsmo-0007jB-L1 for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jan 2013 11:57:54 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvsmh-0007ig-7A for help-gnu-emacs@gnu.org; Thu, 17 Jan 2013 11:57:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tvsmg-0007Gt-5Z for help-gnu-emacs@gnu.org; Thu, 17 Jan 2013 11:57:47 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:35286) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvsme-0007Fs-MN; Thu, 17 Jan 2013 11:57:44 -0500 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r0HGvhLe029438 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 17 Jan 2013 16:57:43 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r0HGvgkf012873 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 17 Jan 2013 16:57:43 GMT Original-Received: from abhmt101.oracle.com (abhmt101.oracle.com [141.146.116.53]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r0HGvg1d030252; Thu, 17 Jan 2013 10:57:42 -0600 Original-Received: from dradamslap1 (/130.35.178.8) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 17 Jan 2013 08:57:42 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <834nif93ed.fsf@gnu.org> Thread-Index: Ac300Dhj5APbXRk6TPiNB5P9tGR4zAAASqDQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 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:88681 Archived-At: > > `window-system' has the advantage that it works with older > > Emacs releases. > > Only if you want to support Emacs versions before 21.1. Fair enough. However, even in the final Emacs 22 release there are _many_ uses of `window-sytem' as a predicate in the Gnu Emacs source code, even though `display-graphic-p' was introduced two releases before that. Heck, even in the latest Gnu Emacs development source code, to be Emacs 24.3, there are still many such "deprecated" uses, AFAICT. Here is a typical one, in dframe.el: ;; On a terminal, raise the frame or the user will ;; be confused. (if (not window-system) (select-frame (symbol-value frame-var))) In case you think dframe.el is a bit exotic, see the basic libraries faces.el and frame.el, where there are also several such uses. And frame.el is the very file where `display-graphic-p' is *defined*. It is called only 3 times in that file, while `window-system' seems to be used there as a predicate 7 times. Nobody's perfect, of course.