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 10:15:58 -0800 Message-ID: <5A215296D64C4D40A27409D73647E458@us.oracle.com> References: <419D9CDD3C2740E3B0E0CDE556F7BD12@us.oracle.com><3F565B0F873C4BCCAA938FB0B136521E@us.oracle.com><86libsb3o6.fsf@somewhere.org><834nif93ed.fsf@gnu.org> <83r4lj7la4.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 1358446586 11579 80.91.229.3 (17 Jan 2013 18:16:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jan 2013 18:16:26 +0000 (UTC) To: "'Eli Zaretskii'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 17 19:16:45 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 1Tvu12-0006al-49 for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jan 2013 19:16:40 +0100 Original-Received: from localhost ([::1]:52892 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvu0i-0005iR-85 for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jan 2013 13:16:20 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvu0Z-0005i7-Uh for help-gnu-emacs@gnu.org; Thu, 17 Jan 2013 13:16:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tvu0V-0003Yy-V9 for help-gnu-emacs@gnu.org; Thu, 17 Jan 2013 13:16:10 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:41272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvu0S-0003Y7-Ih; Thu, 17 Jan 2013 13:16:04 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r0HIG1qH020490 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 17 Jan 2013 18:16:01 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r0HIG0TG023335 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 17 Jan 2013 18:16:00 GMT Original-Received: from abhmt112.oracle.com (abhmt112.oracle.com [141.146.116.64]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r0HIG0jX022869; Thu, 17 Jan 2013 12:16:00 -0600 Original-Received: from dradamslap1 (/130.35.178.8) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 17 Jan 2013 10:15:59 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <83r4lj7la4.fsf@gnu.org> Thread-Index: Ac302v0a6wehz5jNTWumy/iwIGdI2AAAHPEw 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: 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:88684 Archived-At: > > 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. > > I see only 5 instances, not 7, These occurrences all looked to me superficially like they were just testing whether FRAME is for graphic display: 1. (when (memq (window-system frame) '(x w32 ns)) (x-focus-frame frame)) 2. (or (window-system frame) (and tty-type (string-match "^\\(xterm\\|\\rxvt\\|dtterm\\|eterm\\)" tty-type))) 3. (cond ((null (window-system frame)) (if (tty-display-color-p frame) 'color 'mono)) 4. (and (window-system frame) (x-get-resource "backgroundMode" "BackgroundMode")) 5 and 6 (two occurrences). (or window-system (face-set-after-frame-default (selected-frame))) OK, these occurrences use the variable `window-system', not the function, but it too is deprecated in favor of function `display-*-p'. 7. (not (memq window-system '(x w32 ns))) Again, the deprecated variable. If you don't count the variable occurrences then 4, not 5, AFAICT. > and it is not clear to me what display-*-p predicate would be > appropriate in their stead. If it's not clear to you how to replace deprecated `window-system' occurrences here, I wonder how it should be clear to us mortals. ;-) But which of the functions with names matching `display-*-p' correspond to what you and the `window-system' deprecation doc mean by `display-*-p'? All of them? display-color-p display-graphic-p display-grayscale-p display-images-p display-mouse-p display-multi-font-p display-multi-frame-p display-popup-menus-p display-selections-p display-supports-face-attributes-p display-time-file-nonempty-p If all of them, then there should be a comma in the `window-system' doc string here, just before "which": Instead, use `display-graphic-p' or any of the other `display-*-p' predicates which report frame's specific UI-related capabilities. ^ Without a comma, the text suggests that there are some `display-*-p' predicates that do not "report frame's...", and that those are not included as `window-system' substitutes. (BTW, "frame's" here should be "FRAME's", referring to the argument. Or else it should say "the frame's".)