From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.help Subject: Re: face at point Date: 15 Nov 2002 13:24:53 +0900 Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: Reply-To: Miles Bader NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1037335904 24155 80.91.224.249 (15 Nov 2002 04:51:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 15 Nov 2002 04:51:44 +0000 (UTC) Cc: help-gnu-emacs@gnu.org 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 18CYSE-0006HI-00 for ; Fri, 15 Nov 2002 05:51:42 +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 18CYTd-00012I-00; Thu, 14 Nov 2002 23:53:09 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18CY2Y-0005fz-00 for help-gnu-emacs@gnu.org; Thu, 14 Nov 2002 23:25:10 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18CY2W-0005fn-00 for help-gnu-emacs@gnu.org; Thu, 14 Nov 2002 23:25:09 -0500 Original-Received: from tyo202.gate.nec.co.jp ([210.143.35.52]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18CY2W-0005fh-00; Thu, 14 Nov 2002 23:25:08 -0500 Original-Received: from mailgate4.nec.co.jp ([10.7.69.197]) by TYO202.gate.nec.co.jp (8.11.6/3.7W01080315) with ESMTP id gAF4Ovl11527; Fri, 15 Nov 2002 13:24:57 +0900 (JST) Original-Received: from mailsv4.nec.co.jp (mailgate51.nec.co.jp [10.7.69.196]) by mailgate4.nec.co.jp (8.11.6/3.7W-MAILGATE-NEC) with ESMTP id gAF4Ou409145; Fri, 15 Nov 2002 13:24:56 +0900 (JST) Original-Received: from mcsss2.ucom.lsi.nec.co.jp ([10.30.114.133]) by mailsv4.nec.co.jp (8.11.6/3.7W-MAILSV4-NEC) with ESMTP id gAF4Ot222676; Fri, 15 Nov 2002 13:24:55 +0900 (JST) Original-Received: from mcspd15.ucom.lsi.nec.co.jp (mcspd15 [10.30.114.174]) by mcsss2.ucom.lsi.nec.co.jp (8.10.2+Sun/3.7Wlsi_mx_6.0) with ESMTP id gAF4OsB28620; Fri, 15 Nov 2002 13:24:54 +0900 (JST) Original-Received: by mcspd15.ucom.lsi.nec.co.jp (Postfix, from userid 31295) id 029733815; Fri, 15 Nov 2002 13:24:53 +0900 (JST) Original-To: John Hunter System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: Original-Lines: 13 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:3623 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3623 John Hunter writes: > Ie, how do I find out what face is responsible for a given segment of > text in a given mode? (defun what-face (pos) (interactive "d") (let ((face (or (get-char-property (point) 'read-face-name) (get-char-property (point) 'face)))) (if face (message "Face: %s" face) (message "No face at %d" pos)))) -Miles -- 97% of everything is grunge