* [BUG] Second item of `org-agenda-timerange-leaders' cannot be a function [9.4.6 (9.4.6-gf70e36 @ /home/viz/lib/emacs/straight/build/org/)]
@ 2021-07-30 6:18 Visuwesh via General discussions about Org-mode.
0 siblings, 0 replies; only message in thread
From: Visuwesh via General discussions about Org-mode. @ 2021-07-30 6:18 UTC (permalink / raw)
Looking at the definition of `org-agenda-timerange-leaders' suggests
that the second item of the list can be a function.
(defcustom org-agenda-timerange-leaders '("" "(%d/%d): ")
"Text preceding timerange entries in the agenda view.
This is a list with two strings. The first applies when the range
is entirely on one day. The second applies if the range spans several days.
The strings may have two \"%d\" format specifiers which will be filled
with the sequence number of the days, and the total number of days in the
(string :tag "Deadline today ")
(choice :tag "Deadline relative"
(string :tag "Format string")
However, setting it to a function simply yields a type error since
`format' expects a string. This has been a problem ever since the
option was introduced in the commit ea258dbdb.
It would be nice if org could accept a function, as one would expect
from the definition of the concerned option. The function would accept two arguments and return a format-string or a _formatted_ string?
P.S. Please add me to CCs since I don't follow the mailing list.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-03 12:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-30 6:18 [BUG] Second item of `org-agenda-timerange-leaders' cannot be a function [9.4.6 (9.4.6-gf70e36 @ /home/viz/lib/emacs/straight/build/org/)] Visuwesh via General discussions about Org-mode.
Code repositories for project(s) associated with this inbox:
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).