From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tim Cross Newsgroups: gmane.emacs.help Subject: Re: face at point Date: 18 Nov 2002 09:40:28 +1100 Organization: University of New England, NSW, Australia Sender: help-gnu-emacs-admin@gnu.org Message-ID: <87vg2v6crn.fsf@blind-bat.une.edu.au> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1037574300 30424 80.91.224.249 (17 Nov 2002 23:05:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 17 Nov 2002 23:05:00 +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 18DYTJ-0007u5-00 for ; Mon, 18 Nov 2002 00:04:57 +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 18DYUK-0007Lr-00; Sun, 17 Nov 2002 18:06:00 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!news1.optus.net.au!optus!news.usyd.edu.au!news.une.edu.au!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: blind-bat.une.edu.au User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:107137 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:3688 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3688 John Hunter writes: > [ I recently inadvertently posted this to g.e.gnus, but it really > belongs here. Sorry for the crosspost ] > > I don't really understand how to identify what faces are in use in a > given buffer. > I find the following two functions very useful ,----[ C-h f list-colors-display RET ] | list-colors-display is an interactive compiled Lisp function in `facemenu'. | (list-colors-display &optional LIST) | | Display names of defined colors, and show what they look like. | If the optional argument LIST is non-nil, it should be a list of | colors to display. Otherwise, this command computes a list | of colors that the current display can handle. `---- and ,----[ C-h f list-text-properties-at RET ] | list-text-properties-at is an interactive compiled Lisp function in `facemenu'. | (list-text-properties-at P) | | Pop up a buffer listing text-properties at LOCATION. `---- As I also find many of the "default colours don't work well with a dark background, I usually start my customization of emacs colours by setting the default foreground/background and then using list-colors-display to see the values for all loaded faces and setting those which are difficult to read. If I find there is still a face in some mode which is difficult to read I put the cursor on a bit of the text and use list-text-properties-at-point to identify which face i need to set. Tim