[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.
- Re: Adding a "quick-help" menu, Philip Kaludercic, 2022/10/13
- Re: Adding a "quick-help" menu, Lars Ingebrigtsen, 2022/10/13
- Re: Adding a "quick-help" menu, Howard Melman, 2022/10/16
- Re: Adding a "quick-help" menu, Philip Kaludercic, 2022/10/16
- Re: Adding a "quick-help" menu, Howard Melman, 2022/10/16
- Re: Adding a "quick-help" menu, Philip Kaludercic, 2022/10/16
- RE: [External] : Re: Adding a "quick-help" menu, Drew Adams, 2022/10/16
- Re: Adding a "quick-help" menu, Howard Melman, 2022/10/17
- Re: Adding a "quick-help" menu, Eli Zaretskii, 2022/10/17