emacs-devel
[Top][All Lists]
Advanced

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

Re: Adding a "quick-help" menu


From: Lars Ingebrigtsen
Subject: Re: Adding a "quick-help" menu
Date: Fri, 14 Oct 2022 13:03:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Philip Kaludercic <philipk@posteo.net> writes:

> One annoyance I have, that your screenshot illustrates is that the
> keybinding face is applied beyond just the key, even though I just
> `propertize' the result of (key-description bind).  It seems the issue
> is that
>
>    (format "%-10s" (propertize "test" 'prop 'val))
>
> evaluates to
>
>    #("test      " 0 10 (prop val))
>
> instead of just
>
>    #("test      " 0 4 (prop val))

Yes, I think you have to compute the widths "by hand" and avoid %10s
format directives, unfortunately.



reply via email to

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