From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hadron Newsgroups: gmane.emacs.help Subject: Re: Question about font-lock faces Date: Wed, 28 Feb 2007 16:53:12 +0100 Message-ID: <87mz2ye0t3.fsf@gmail.com> References: <874pp6fi9j.fsf@gmail.com> <87tzx6qoyp.fsf@comcast.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172680869 7748 80.91.229.12 (28 Feb 2007 16:41:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Feb 2007 16:41:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 28 17:40:58 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HMRrN-0003eS-Rx for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Feb 2007 17:40:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMRrO-0000bl-54 for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Feb 2007 11:40:58 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-X-Trace: individual.net dO6qXFwh9Y/5MK/IWy5OOwMm21Gt9MwK83Fwhc3P5TIYLRcjUO X-Orig-Path: news.individual.net!news X-Face: 2h#||Cd#d%F*NCm59[_6/{1a@jy%; |j>{D~4^gKg(^i%7j0IK?+,/GmW&:CD5fEKb_! User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:XdUI9MJcDPMseFPkJiOfVmTyTuE= Original-Xref: shelby.stanford.edu gnu.emacs.help:145926 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41530 Archived-At: "Robert D. Crawford" writes: > Hadron writes: > >> Is it possible to interactively query whyt "face" a certain word is >> using in a font-lock mode? > > This should work. I adapted it from a function in emacspeak and have > tested it several times. > > (defun rdc-show-face-at-point () > "Show value of property faceat point." > (interactive ) > (let ((f (get-text-property (point) 'face)) > (o > (delq nil > (mapcar > #'(lambda (overlay) > (overlay-get overlay 'face)) > (overlays-at (point)))))) > (message "Face %s" f > (if o > o > " ")))) > > > There might be a better way to do it or there might be a way built into > emacs. > > rdc worked great! thanks. font-lock-variable-name-face it was. Couldnt customise it from the variable query though which surprised me. But could do from edit/text/display faces.