From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Fredrik Staxeng Newsgroups: gmane.emacs.help Subject: Re: face at point Date: 20 Nov 2002 18:56:09 +0100 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <1m3cpw2khy.fsf@Tempo.Update.UU.SE> References: <1madk63pnr.fsf@Tempo.Update.UU.SE> <1md6p02wgf.fsf@Tempo.Update.UU.SE> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1037815251 6536 80.91.224.249 (20 Nov 2002 18:00:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 20 Nov 2002 18:00:51 +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 18EZ9T-0001gl-00 for ; Wed, 20 Nov 2002 19:00:39 +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 18EZA5-0002V4-00; Wed, 20 Nov 2002 13:01:17 -0500 Original-Newsgroups: gnu.emacs.help Original-Lines: 70 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 Original-NNTP-Posting-Host: news.update.uu.se Original-X-Trace: puffinus.its.uu.se 1037814124 news.update.uu.se (20 Nov 2002 18:42:04 +0100) Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.bredband.com!bredband!news01.chello.se!newsfeed1.telenordia.se!algonet!newsfeed.sunet.se!news01.sunet.se!puffinus.its.uu.se Original-Xref: shelby.stanford.edu gnu.emacs.help:107252 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:3807 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3807 "Eli Zaretskii" writes: >> Newsgroups: gnu.emacs.help >> From: Fredrik Staxeng >> Date: 20 Nov 2002 14:37:52 +0100 >> >> - A way to emulate tty color when on X. That is, an Emacs maintainer >> could just do M-x color-restrict to see if his faces get mapped >> reasonably. > >What I normally do is run "emacs -nw" from xterm. The CVS code has a >way of forcing Emacs on a tty to use 8 colors even if the display >supports more (some versions of xterm support up to 256 colors). >This option only works in a non-windowed session, thus -nw. The easier it is, the more checking is likely to be done. Perhaps the CVS way is easy enough that it will happen. >> - That Emacs consider both foreground and background pairs, and changes >> those that has been troublesome. E.g yellow:white -> red:white. > >This might or might not be a good idea, I really don't know. Suppose >the user really wants yellow on white--is it okay for Emacs to "know >better"? > >For the default faces, this is already done manually: when the X >definition maps to something barely readable, like yellow on white, a >tty-specific definition is introduced with different colors. I was thinking that a tty user could add/remove pairs in the blacklist. It does seem to be cumbersome to need to first change the the face, and then change the blacklist. >> - I also think that it would be good to have a color picker for X, >> that lets the user select from the 6x6x6 cube, and possibly modifying >> the color. This is a much better way of selecting colors than >> reading rgb.txt and trial and error. > >Emacs has `list-colors-display' and `list-faces-display' which I >think greatly simplify the process of customizing face colors. Isn't >that a worthy equivalent of a color cube you envision? Except that 216 colors fit nicely in relatively small area. Look at xcmap (not in the X distribution anymore it seems). Something like +--------------------------------------------- + | +-----------+ +------------+ +-----------+ | | | list of | | | | | | | | faces | | fg picker | | bg picker | | | | | | | | | | | | + +------------+ +-----------+ | | | | rgb fields rgb fields | +-----------+ fields for other attributes | +----------------------------------------------+ If you put this in one window, and have your C code in the other window, and any changes you do apply immediately, selecting a set of good faces would take about two minutes, _including_ learning how to do it. Have _one_ save button, and _one_ undo button that reverts to the saved settings. Oh, the face names should be rendered in the face. For extra points, when the cursor is in the C buffer, select the corresponding face in the face buffer. -- Fredrik Stax\"ang | rot13: sfgk@hcqngr.hh.fr