From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: epsmjd@ams.org (Michael J Downes) Newsgroups: gmane.emacs.help Subject: Re: face at point Date: 15 Nov 2002 06:21:31 -0800 Organization: http://groups.google.com/ Sender: help-gnu-emacs-admin@gnu.org Message-ID: <25180b3c.0211150621.77efeef4@posting.google.com> References: NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1037371095 7558 80.91.224.249 (15 Nov 2002 14:38:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 15 Nov 2002 14:38:15 +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 18Chbq-0001xi-00 for ; Fri, 15 Nov 2002 15:38:14 +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 18Chca-0007q3-00; Fri, 15 Nov 2002 09:39:00 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: 130.44.210.2 Original-X-Trace: posting.google.com 1037370091 13559 127.0.0.1 (15 Nov 2002 14:21:31 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 15 Nov 2002 14:21:31 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:107079 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:3633 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3633 Miles Bader writes: > (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)))) ? I'm curious: How/who/when/why does a property 'read-face-name ever get set? The Emacs Lisp reference manual (2.8 for 21.2) has no index entry for it: "No `read-face-name' in index" There is a function for it in faces.el, but the function seems to be for interactively reading a face name from the user, and I didn't see anything in the code that would make a text property out of it. Grepping in share/emacs/21.2/lisp/*.el doesn't seem to turn up anything more enlightening either.