From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id WHNnHVUbCGQEJAAASxT56A (envelope-from ) for ; Wed, 08 Mar 2023 06:21:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OItWHVUbCGQWCgEAauVa8A (envelope-from ) for ; Wed, 08 Mar 2023 06:21:25 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 07DF53C6E2 for ; Wed, 8 Mar 2023 06:21:24 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=WR6woJ0q; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678252885; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=nMwD2qQ+06GPQ1S5aTGVyZJfXyR2h/3ZF+QOdTsCcIo=; b=GAfM5LebM8ZKHN1/zaBdhnpIHHifrKRP6HpNyxF2REHsSqv0COvbu+bntzaIoG/VoDlQPp mI3EmQIodQ6dJJWBcbrW3O2vwDP9DCwRB4FSD3BCSfsJKbu7qX7OWIGPoq/ttlK+WaOwYl a+Wpua7VTaDhnbbfh0zAEBAIEOri8AgE70NM5bQdlMoUvZhFGcdAmTZiEBgAWap2006Qdr lsI87CQYZYfQ+nGR9ZDPhFdSmBZQy94wjCnOb0dt451qBwBxMEOnwhm5C7dSfyrQSGlrgn KTkNm3eiBC99v/IkCTkg7bLhH5yf3kM1Wib1We0+tuhGyCzk/f5+NeJZFmWqjw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678252885; a=rsa-sha256; cv=none; b=EkcxYsfQhuF+QnGPKWQOKetYLRFJVVNi6lAr5FuDpm0jxYQ0uJ4nsLJwwRYQJLV0krmEy8 ODouXGVf2/LuaCi6eTE+0yVK23pODSlMkqDfZVc2Lh95k6gJuoi2m6wBLaZDrhzV/DHpPC P5uRpMwtw64+mmI/PfoZI8ehFx1L/zy2Tv8LQqsIe1ju4FWSo3ghyqUSIRoH97N/aufopP PnirA0Ez0pXXYp30pT2HTW4U5xQy2dvOdL+KpQO/fg6+Fq+SLPvpEKPa3sKs2G3tbR1D8P mVf6Fsy+B56XjNlC2VlSaj7tEpTWil1e8V9+/FLdY9m6XjsOUV3uW1oLjeLTFA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=WR6woJ0q; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZmEK-0007aF-4n; Wed, 08 Mar 2023 00:20:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZmEI-0007Zn-Ou for emacs-orgmode@gnu.org; Wed, 08 Mar 2023 00:20:46 -0500 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZmEG-0002ms-WE for emacs-orgmode@gnu.org; Wed, 08 Mar 2023 00:20:46 -0500 Received: by mail-pl1-x62b.google.com with SMTP id i5so16655424pla.2 for ; Tue, 07 Mar 2023 21:20:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678252843; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=nMwD2qQ+06GPQ1S5aTGVyZJfXyR2h/3ZF+QOdTsCcIo=; b=WR6woJ0q1BDLGEuWw33/XYm662NvYVs2H/9nxSeisGroT/FdNGnmzpesh2pw4miT8r g2Afm3+BySuBFHbrcJ7JfVKKwi9ZyefW/HnBOGygKrHbu8DvJ9kaJXHD0qiDtnkxhL8I IzLqC/0fT/wU0R7yOusLQQ35YqONvhgRn723fVQcpvPhmxBXW/hFLRKhu+SUzNz+COsz joXWTQw2FDk4YX3gmkza7QbanFD1TrKsusPEwJS8xGkAuE3M/t5FysPHCYAPq2xtwJ6n cIKejs9aSUu65oz8d6ueeuJM8LO1yJyb25d+32BZpJrZURh9OdaaaQpmwohlnBuDr6pH 2mmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678252843; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nMwD2qQ+06GPQ1S5aTGVyZJfXyR2h/3ZF+QOdTsCcIo=; b=NN4GJSP0sesiij5gMAjsY+P87vk53lQRwnyUtSxLZWUfO6LPeBbwe6s/sM6kV2OUTE PeX0rQ9/aYFL/zwZmUs7vxzDNLS6LKLvKZ4y/ojozdl8EjWce7JTFEvCyCHW1/ZmAjo7 NC+6nyYd21zr88SlZZbNeu2uez25U4OHIAUC+PK/sVsLDNS2eaa+z4VHPGg4YbsUAmDo zlaqk+9x2D5DJ5CXkjTiRcSl3I1FkT08qvLUdKE4Ys9ioiBMEH5/6Y/mbybk98gwtrIS 7M/vASa0J0eS1xTxeGQthdGkGb7g1xwM1w5n/WMB34CmhegmyWoD5oanxS7iYz50Jg90 ydcw== X-Gm-Message-State: AO0yUKXNmzeOB9+cfQgA0exIc5lsszPm2d9HP88+cUYCdzU7qx7m/YS3 la0J4/itUPWTtevzbU8JA8eSK/ggz6Xo4E8YsA== X-Google-Smtp-Source: AK7set8Avk1k2C2eT9rOeVDFVkSjUGbpxWezGFFO5sq5qg9aw57ml3sshcfzQa/h9Ma02UH9uWfxVu1B5qTlKf+CGDg= X-Received: by 2002:a17:90a:5993:b0:233:b520:1544 with SMTP id l19-20020a17090a599300b00233b5201544mr8545679pji.0.1678252842602; Tue, 07 Mar 2023 21:20:42 -0800 (PST) MIME-Version: 1.0 References: <874jqwfyox.fsf@localhost> In-Reply-To: <874jqwfyox.fsf@localhost> From: stardiviner Date: Wed, 8 Mar 2023 13:20:16 +0800 Message-ID: Subject: [SOLVED] Re: [FEATURE request] hope `org-agenda-custom-commands` can support propertiezed-text. To: Ihor Radchenko Cc: Org-mode Content-Type: multipart/alternative; boundary="00000000000086d3ae05f65cb076" Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=numbchild@gmail.com; helo=mail-pl1-x62b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: 07DF53C6E2 X-Spam-Score: -7.73 X-Migadu-Spam-Score: -7.73 List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-TUID: 1dAT3RB6ukFr --00000000000086d3ae05f65cb076 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Tue, Mar 7, 2023 at 9:59=E2=80=AFPM Ihor Radchenko = wrote: > stardiviner 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 . > Support Org development at , > or support my work at > --00000000000086d3ae05f65cb076 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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


On Tue, Mar 7, 2023 at 9:59=E2=80=AFPM Ihor Radc= henko <yantar92@posteo.net>= ; wrote:
stardiv= iner <numbchild= @gmail.com> writes:

> But I can't do similar in `org-agenda-custom-commands` description= part
> like this:
> ```elisp
> (add-to-list
>=C2=A0 =C2=A0 'org-agenda-custom-commands
>=C2=A0 =C2=A0 '("c" (format "%s Today [c]locked task= s." (all-the-icons-faicon
> "hourglass-start"))
>=C2=A0 =C2=A0 =C2=A0 ((agenda ""
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0((org-agenda-nda= ys 1)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-agenda-spa= n-1)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-agenda-use= -time-grid t)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-agenda-inc= lude-diary nil)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-agenda-sho= w-log (quote clockcheck))
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-agenda-clo= ckreport 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?

= =C2=A0
--
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>
--00000000000086d3ae05f65cb076--