回答:
what-face次のコードで定義できます。
(defun what-face (pos)
  (interactive "d")
  (let ((face (or (get-char-property (pos) 'read-face-name)
                  (get-char-property (pos) 'face))))
    (if face (message "Face: %s" face) (message "No face at %d" pos))))
その後、
M-x what-face
現在のポイントで見つかった顔を印刷します。
(組み込みではないことを指摘してくれたthedzに感謝しwhat-faceます。)
hl-line-modeするとhl-line、顔としてのみ表示され、他の顔は表示されません。gist.github.com/Wilfred/f7d61b7cdf9fdbb1d11cを
                    pos関数ではありません。オーダースニペットを動作させるには、あなたは交換する必要があります(pos)とpos3行目と4行目に
                    what-cursor-position プレフィックス引数を指定すると、他の情報とともに、アンダーフェイスが表示されます。
キーボードショートカットはCu Cx =
出力例(faceプロパティは最後の段落に示されています):
             position: 5356 of 25376 (21%), column: 4
            character: r (displayed as r) (codepoint 114, #o162, #x72)
    preferred charset: ascii (ASCII (ISO646 IRV))
code point in charset: 0x72
               syntax: w    which means: word
             category: .:Base, L:Left-to-right (strong), a:ASCII, l:Latin, r:Roman
          buffer code: #x72
            file code: #x72 (encoded by coding system undecided-unix)
              display: by this font (glyph code)
    nil:-apple-Monaco-medium-normal-normal-*-12-*-*-*-m-0-iso10646-1 (#x55)
Character code properties: customize what to show
  name: LATIN SMALL LETTER R
  general-category: Ll (Letter, Lowercase)
  decomposition: (114) ('r')
There are text properties here:
  face                 org-level-2
  fontified            t
[back]
              what-cursor-position。
                    emacs気に入った方法を表示し、次回の再起動でそれを取り戻す方法はありませんでした
                    C-u C-x =、端末で実行されているEmacsでそうした場合は利用できませんemacs -nw file.txt。
                    MX記述面
return。たとえば、私の結果は次のとおりDescribe face (default ‘org-block-background’): です。
                    トレイの顔は正しい方向に向かっています。それは私にこれを持っているメーリングリストの電子メールに導きました:
(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))))
              「what-face」コードにバグがあります。関数は引数として「pos」を受け取りますが、顔を取得するときにそれを使用しません。代わりに「(point)」を使用しますが、メッセージは後でposを要求します「%dに顔がありません」の場合。
point問題のテキストにアクセスできない場合