[சனி மே 09, 2026] Christer Enfors wrote:
> Visuwesh via "General discussions about Org-mode."
> <[email protected]> writes:
>
>> Looking at the definition of `org-agenda-timerange-leaders' suggests
>> that the second item of the list can be a function.
>>
>> [...]
>> 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?
>>
>> Regards.
>>
>> P.S. Please add me to CCs since I don't follow the mailing list.
>
> I didn't get an error when I tried to use a function as the second
> entry. But I don't know enough about Org or Elisp to confirm that the
> problem you're describing has been fixed either.
>
> So, I turn to the other members of the list and ask - can someone who
> knows more than me investigate this?
I can still reproduce the bug:
1. emacs -Q
2. C-x C-f /tmp/test.org RET
3. Insert the following text in the buffer:
* TODO test
DEADLINE: <2026-05-14 வி>--<2026-05-15 வெ>
4. C-x C-s
5. M-x org-agenda RET < a
At this point, the agenda buffer should show up just fine.
6. M-: (setq org-agenda-timerange-leaders `("" ,(lambda () "(%d/%d): "))) RET
7. M-x org-agenda RET < a
8. Witness the error
The problem isn't with the function signature since the error is a type
error.