From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: face at point Date: Tue, 19 Nov 2002 08:24:06 +0200 (IST) Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <87u1ie2j8r.fsf@blind-bat.une.edu.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1037687328 17371 80.91.224.249 (19 Nov 2002 06:28:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 19 Nov 2002 06:28:48 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18E1sK-0004Vp-00 for ; Tue, 19 Nov 2002 07:28:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18E1pF-0000Az-00; Tue, 19 Nov 2002 01:25:33 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18E1o1-0005on-00 for help-gnu-emacs@gnu.org; Tue, 19 Nov 2002 01:24:17 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18E1nx-0005jw-00 for help-gnu-emacs@gnu.org; Tue, 19 Nov 2002 01:24:16 -0500 Original-Received: from is.elta.co.il ([199.203.121.2]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18E1nv-0005hW-00 for help-gnu-emacs@gnu.org; Tue, 19 Nov 2002 01:24:12 -0500 Original-Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id IAA10644 for ; Tue, 19 Nov 2002 08:24:06 +0200 (IST) X-Sender: eliz@is Original-To: help-gnu-emacs@gnu.org In-Reply-To: <87u1ie2j8r.fsf@blind-bat.une.edu.au> Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3747 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3747 On 19 Nov 2002, Tim Cross wrote: > Is it OK to just use the window-system variable? I can't remember what > the discussion was some time ago that seemed to conclude it was a bad > idea. If you are better off not using it, what would be best? If you want to know whether the display is a bitmapped graphical one or a text-mode one, use display-graphic-p. If you want to distinguish displays according to the number of distinct colors they support, look at the number that display-color-cells returns. > ideally, > I'd like something that can tell the difference between X, the console > and a colour xterm. To distinguish between a console and xterm, try something like what startup.el does: (setq term (getenv "TERM")) ;; Some files in lisp/term do a better job with the ;; background mode, but we leave this here anyway, in ;; case they remove those files. (if (string-match "^\\(xterm\\|rxvt\\|dtterm\\|eterm\\)" term) ;; code that should run for xterm > From my apropos searches, it seems there is quite > a few to choose from and can already see how to make a number of > alternatives work If the ELisp manual in its node that describes display capabilities doesn't explain how to do what you want, please submit a docs bug report. Thanks.