From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deepak Ramani Newsgroups: gmane.emacs.help Subject: Re: Interrogating which face is being used Date: Fri, 17 Jul 2009 12:02:47 -0400 Organization: Aioe.org NNTP Server Message-ID: <81hbxb70wo.fsf@yahoo.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1247896866 21886 80.91.229.12 (18 Jul 2009 06:01:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Jul 2009 06:01:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 18 08:00:59 2009 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 1MS2yg-0002Ey-9Z for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Jul 2009 08:00:58 +0200 Original-Received: from localhost ([127.0.0.1]:51139 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MS2yf-0004Vo-U6 for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Jul 2009 02:00:57 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!news.stack.nl!aioe.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-NNTP-Posting-Host: zNQs8W3mG8rkTf195SS8pg.user.aioe.org Original-X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.7.9 Cancel-Lock: sha1:ulcBocw3PTSkQL5hLJTtBhmXpgw= sha1:YAsGS+jyOYrDFBvlgtJZv0ZIeKU= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt) Original-Xref: news.stanford.edu gnu.emacs.help:170987 X-Mailman-Approved-At: Sat, 18 Jul 2009 02:00:36 -0400 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:66192 Archived-At: On Fri, 17 Jul 2009 11:07:18 -0400, Tim Visher wrote: > I'm wondering if it's possible to interrogate the entity under point > to discover which face is currently being used to control its display. You might consider the following function, which you can bind to any key you want: (defun describe-face-at-point () "Return face used at point." (interactive) (get-char-property (point) 'face)) -Deepak