emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: stardiviner <numbchild@gmail.com>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: Org-mode <emacs-orgmode@gnu.org>
Subject: [SOLVED] Re: [FEATURE request] hope `org-agenda-custom-commands` can support propertiezed-text.
Date: Wed, 8 Mar 2023 13:20:16 +0800	[thread overview]
Message-ID: <CAL1eYu+bEddpZUs7-T8GdjMBx+0L6zUg1K_6-OQ86rtxGZs04A@mail.gmail.com> (raw)
In-Reply-To: <874jqwfyox.fsf@localhost>

[-- Attachment #1: Type: text/plain, Size: 1377 bytes --]

[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>
>

[-- Attachment #2: Type: text/html, Size: 2785 bytes --]

  reply	other threads:[~2023-03-08  5:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-07  5:09 [FEATURE request] hope `org-agenda-custom-commands` can support propertiezed-text stardiviner
2023-03-07 14:01 ` Ihor Radchenko
2023-03-08  5:20   ` stardiviner [this message]
2023-03-08  6:40     ` [SOLVED] " Ruijie Yu via General discussions about Org-mode.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAL1eYu+bEddpZUs7-T8GdjMBx+0L6zUg1K_6-OQ86rtxGZs04A@mail.gmail.com \
    --to=numbchild@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).