I would like to use special mark symbols not only in window-system
but also in xterm
:
(setq gnus-summary-to-prefix (if window-system "▒ " "==> "))
What check I should use?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityI would like to use special mark symbols not only in window-system
but also in xterm
:
(setq gnus-summary-to-prefix (if window-system "▒ " "==> "))
What check I should use?
It's probably not just about whether Unicode is available but also whether a given font supports a particular Unicode character.
I'm not sure that it helps for non-graphic (i.e., console/terminal) Emacs, but for a graphic display you can use char-displayable-p
:
char-displayable-p is an autoloaded Lisp function in `mule-util.el'.
(char-displayable-p CHAR)
Return non-nil if we should be able to display CHAR.
On a multi-font display, the test is only whether there is an
appropriate font from the selected frame's fontset to display
CHAR's charset in general. Since fonts may be specified on a
per-character basis, this may not be accurate.
char-displayable-p
is no working on terminal.
– gavenkoa
Feb 10 '16 at 15:34
M-x report-emacs-bug
) to ask for it (assuming it is possible), or to at least ask that it be clearly documented.
– Drew
Feb 10 '16 at 15:42