[stardiviner]           <Hack this world!>      GPG key ID: 47C32433
IRC(freeenode): stardiviner                     Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/


On Tue, Mar 7, 2023 at 9:59 PM Ihor Radchenko <yantar92@posteo.net> wrote:
stardiviner <numbchild@gmail.com> writes:

> But I can't do similar in `org-agenda-custom-commands` description part
> like this:
> ```elisp
> (add-to-list
>    'org-agenda-custom-commands
>    '("c" (format "%s Today [c]locked tasks." (all-the-icons-faicon
> "hourglass-start"))
>      ((agenda ""
>               ((org-agenda-ndays 1)
>                (org-agenda-span-1)
>                (org-agenda-use-time-grid t)
>                (org-agenda-include-diary nil)
>                (org-agenda-show-log (quote clockcheck))
>                (org-agenda-clockreport t))))))
> ```
> This upper code will report error.

Does `("c" ,(format ...) ...) work?


This macro-style expanded string works. I'm curious why have to be expanded?

 
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>