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

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

Re: x popup menu does not honor font faces.


From: Eli Zaretskii
Subject: Re: x popup menu does not honor font faces.
Date: Sun, 11 May 2014 07:19:42 +0300

> Date: Sat, 10 May 2014 22:18:36 +0200
> From: Paul K <mafeuser@gmail.com>
> 
> I would like to have "first" be bold, but no luck with the following
> example.
> 
> (let ((BOLD (propertize "first" 'font 'bold)))
>   (x-popup-menu t (list "choose either" (list "two numbers" (cons BOLD
> "1st") (cons "second" 2)))))
> 
> Is it because popup menu is some external feature of x thus just skip text
> properties or am I doing something wrong?

Emacs ignores the text properties in menu items, yes.  That's because
on most platforms these strings will be displayed by external
libraries that have their own ideas about the fonts to use in menus.




reply via email to

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