emacs-devel
[Top][All Lists]
Advanced

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

Re: master fe7c015b20: Support XFCE in wallpaper.el


From: Visuwesh
Subject: Re: master fe7c015b20: Support XFCE in wallpaper.el
Date: Tue, 27 Sep 2022 21:13:04 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

[செவ்வாய் செப்டம்பர் 27, 2022] Stefan Kangas wrote:

> Could we change `format-spec' to accept functions in the substitutions,
> that are then only called when actually needed?

+1. I was thinking of raising such a proposal myself.  It seems wasteful to
pre-calculate all the specifications instead of lazily evaluating them.

>
> For example, from its docstring:
>
>   (format-spec "su - %u %l"
>                `((?u . ,(user-login-name))
>                  (?l . "ls")))
>
> Could then instead be:
>
>   (format-spec "su - %u %l"
>                `((?u . #'user-login-name)
>                  (?l . "ls")))
>
> Perhaps we should hide that behind a new optional argument though.



reply via email to

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