[Top][All Lists]

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

Re: "Why is emacs so square?"

From: Stefan Monnier
Subject: Re: "Why is emacs so square?"
Date: Fri, 17 Apr 2020 16:14:38 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> (with-current-buffer (get-buffer-create "button")
>   (insert (propertize "[" 'display '(when (display-graphic-p 
> (selected-frame)) . "")))
>   (insert (propertize "button" 'face 'my-button))
>   (insert (propertize "]" 'display '(when (display-graphic-p 
> (selected-frame)) . ""))))

My guess is that the (selected-frame) at the time the code is run might
not be the one you think.  Maybe we should change/fix that (we had the
same problem when computing the mode/header lines).


reply via email to

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