From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.help Subject: Re: face at point Date: Wed, 20 Nov 2002 12:06:04 +0100 Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <87ptt12oj0.fsf@blind-bat.une.edu.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1037790681 32589 80.91.224.249 (20 Nov 2002 11:11:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 20 Nov 2002 11:11:21 +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 18ESlL-0008TR-00 for ; Wed, 20 Nov 2002 12:11:19 +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 18ESla-0008JB-00; Wed, 20 Nov 2002 06:11:34 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!dialin-145-254-205-110.arcor-ip.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: dialin-145-254-205-110.arcor-ip.net (145.254.205.110) Original-X-Trace: fu-berlin.de 1037790383 19386852 145.254.205.110 (16 [87814]) X-Operating-System: GNU/Linux, built from scratch: http://www.linuxfromscratch.org/ X-Attribution: os X-Face: "HgH2sgK|bfH$;PiOJI6|qUCf.ve<51_Od(%ynHr?=>znn#~#oS>",F%B8&\vus),2AsPYb -n>PgddtGEn}s7kH?7kH{P_~vu?]OvVN^qD(L)>G^gDCl(U9n{:d>'DkilN!_K"eNzjrtI4Ya6;Td% IZGMbJ{lawG+'J>QXPZD&TwWU@^~A}f^zAb[Ru;CT(UA]c& User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-msvc-nt5.1.2600) Cancel-Lock: sha1:4DBS/3wDBfllnOD37+2Fi8mYHQo= Original-Xref: shelby.stanford.edu gnu.emacs.help:107225 Original-To: help-gnu-emacs@gnu.org 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:3780 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3780 Tim Cross writes: [...] > All I really wanted to know was "Which is the best/most > appropriate/accepted way of distinguishing between emacs running on a > tty, in its own X frame and within an X term so that I can set my > colours accordingly. [...] The reason to use a check for specific display capabilities with the `display-.*-p' functions is, that Emacs' capabilities on different displays/operating systems may change in the future as well as the operating systems/displays themselves. Even the distinction between a tty and a graphical display may become more and more blurred. An xterm may already display 256 colours, why not a future Linux console, too? Why not real face attributes like bold and italic on a future console? Emacs 20 did not display colours on a Linux console, for example, but Emacs 21 does. Or the other way around: Emacs 21.2 does not display images on MS Windows, although this is a graphical display. But Emacs 21.4 will do. When you check for display capabilities as needed, you play safe. You don't have to change your package or your .emacs according to the display capabilities du jour. Therefore it is depreciated to check for a specific display or operating system via `window-system' or some such. In other words: there is no "appropriate/accepted way" to do this. Oliver -- 30 Brumaire an 211 de la Révolution Liberté, Egalité, Fraternité!