emacs-devel
[Top][All Lists]
Advanced

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

Re: Display of undisplayable characters: \U01F3A8 instead of diamond


From: Emanuel Berg
Subject: Re: Display of undisplayable characters: \U01F3A8 instead of diamond
Date: Sat, 27 Aug 2022 23:50:42 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Eli Zaretskii wrote:

>>> It is also displayed in a distinct face, designed to make
>>> this stand out.
>> 
>> It looks like it is Bright Yellow (ANSI 3) but it's not of
>> any Emacs face that my tools detect so that must be handled
>> in some special way if so ...
>
> There's nothing special about its face.

Try do

  M-x describe-face RET RET

or

  (get-char-property (point) 'face)
  
or

  (get-char-property (point) 'read-cf-name)

nothing!

Unless there is a face already, but then it still don't have
that color ...

Even when no face is reported, it isn't the default color
either (again, it is bright yellow). But I can set to red like
this ...

(defun set-all-faces (fg &optional bg weight)
  (let ((backg (or bg     "black"))
        (wght  (or weight 'normal))
        (faces) )
    (mapatoms (lambda (s)
                (when (facep s)
                  (push (symbol-name s) faces) )))
    (dolist (f faces)
      (set-face-attribute (intern f) nil
                          :foreground fg)
                          :background backg
                          :weight     wght
                          :italic     nil) ))
;; (set-all-faces "red")

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




reply via email to

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