From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: colorterms emulations Date: Mon, 03 Feb 2003 20:29:24 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <2110-Mon03Feb2003202924+0200-eliz@is.elta.co.il> References: <20030202220115.GC21485@boetes.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1044297239 13592 80.91.224.249 (3 Feb 2003 18:33:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 3 Feb 2003 18:33:59 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18flPq-0003X4-00 for ; Mon, 03 Feb 2003 19:33:58 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18flXY-0002HI-00 for ; Mon, 03 Feb 2003 19:41:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18flPb-0007RD-0E for emacs-devel@quimby.gnus.org; Mon, 03 Feb 2003 13:33:43 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18flOz-0006wt-00 for emacs-devel@gnu.org; Mon, 03 Feb 2003 13:33:05 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18flOi-0006H7-00 for emacs-devel@gnu.org; Mon, 03 Feb 2003 13:32:50 -0500 Original-Received: from bilbo.inter.net.il ([192.114.186.18]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18flON-0005yW-00 for emacs-devel@gnu.org; Mon, 03 Feb 2003 13:32:27 -0500 Original-Received: from zaretsky ([80.230.235.153]) by bilbo.inter.net.il (Mirapoint Messaging Server MOS 3.2.2-GA) with ESMTP id AET33471; Mon, 3 Feb 2003 20:32:16 +0200 (IST) Original-To: han@mijncomputer.nl X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <20030202220115.GC21485@boetes.org> (message from Han Boetes on Sun, 2 Feb 2003 23:00:53 +0059) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11327 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11327 [Redirected to emacs-devel, since I think this discussion does not belong to the bug-reporting list.] > Date: Sun, 2 Feb 2003 23:00:53 +0059 > From: Han Boetes > > I asked a question on #emacs on freenode.net ( nice channel btw ) and I > got the following conversation. > > 22:22 Han| (trivial) Does anybody have a clue where I can set > the terminal colors for termulators in emacs. I > have my own scheme and I like it very much. > 22:22 Han| http://www.xs4all.nl/~hanb/configs/dot-Xdefaults > 22:44 kensanata| Han: terminal colors -- there is a variable for this. > 22:45 Han| Easiest thing would be if emacs would read the > .Xdefaults. > 22:45 kensanata| Han: emacs does read face definitions from xdefaults, > but terminal colors are in an array of color names, > not faces. > 22:47 kensanata| hm. > 22:47 kensanata| Han: reading term.el, it seems that the faces are > created using make-face and copy-face instead of > using the defface special form. > 22:47 kensanata| you could report that as a bug... i would > prefer defface... > 22:48 kensanata| Han: example code fragment: > (set-face-foreground 'term-green "green") > 22:48 kensanata| ugly... > 22:49 Han| Perhaps there is a good (=portability) reason for > that? > 22:49 kensanata| no. this is old code. > 22:49 kensanata| in your case, write a set of defface expressions, > and eval-after-load term... > 22:49 kensanata| Han: the copyright line ends in 1995 > 22:50 kensanata| ugh. > 22:50 Han| lol > 22:51 Han| I don't what it al means but I'll send a polite > request to emacs-bugreport-something list. > 22:51 Han| With a paste of this conversation. > 22:52 kensanata| Han: do that. :) > > So he found some very old, outdated code. Perhaps somebody would like > to take a look at it. I'm not sure I see how that code would be useful. Emacs 21.x allows users to customize their colors via the functions tty-modify-color-alist and tty-color-alist. Aren't those enough for what's needed?