From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: Testing window-system considered harmful Date: Mon, 24 Oct 2005 10:09:49 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1130116258 29946 80.91.229.2 (24 Oct 2005 01:10:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 Oct 2005 01:10:58 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 24 03:10:57 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ETqqu-0000JQ-VV for ged-emacs-devel@m.gmane.org; Mon, 24 Oct 2005 03:10:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ETqqu-0002Mf-4r for ged-emacs-devel@m.gmane.org; Sun, 23 Oct 2005 21:10:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ETqqX-0002Kd-6l for emacs-devel@gnu.org; Sun, 23 Oct 2005 21:09:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ETqqW-0002Jr-Ci for emacs-devel@gnu.org; Sun, 23 Oct 2005 21:09:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ETqqW-0002JQ-2c for emacs-devel@gnu.org; Sun, 23 Oct 2005 21:09:52 -0400 Original-Received: from [133.82.132.2] (helo=mathmail.math.s.chiba-u.ac.jp) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ETqqV-0000op-4d; Sun, 23 Oct 2005 21:09:51 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 14ADB2CB8; Mon, 24 Oct 2005 10:09:50 +0900 (JST) Original-To: Eli Zaretskii In-Reply-To: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/22.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:44668 Archived-At: >>>>> On Fri, 21 Oct 2005 16:50:36 +0200, Eli Zaretskii said: > Is it possible to use one of the display-*-p predicate functions > instead of testing the value of window-system here? It is always > better to use one of those predicates, because they automatically > support all relevant Emacs configurations, without any need to add > them explicitly to a list such as the one above. I don't think any of existing one is suitable for this particular case. Maybe introduce display-has-x-resource-p? > (There are other changes like the one above that used window-system; > please consider them all.) I'm afraid general cases are beyond me. Experts at disp-table.el and faces.el could provide good abstractions. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp