help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: describe all faces at point?


From: Emanuel Berg
Subject: Re: describe all faces at point?
Date: Fri, 23 Sep 2022 17:01:13 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Sam Steingold wrote:

> When I do `M-x describe-face`, the default face is, according to the doc,
> "the faces of the character after point"

Try this,

(defun what-face (pos)
  (interactive "d")
  (let ((face (or (get-char-property pos 'face)
                  (get-char-property pos 'read-cf-name) )))
    (message (format "%s" (or face "no face!"))) ))

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]