stasvla...@disroot.org writes: > `org-agenda' function passes `current-prefix-arg' to its commands (e.g., > `org-agenda-tags') instead of `arg' > > This might create unexpected behaviour if one uses `org-agenda' function > inside another interactive function that accepts on universal prefix. For > example if I define `my/agenda-done-todos' it wont show any DONE todos if I > call it with prefix to restrict it to current buffer because > `org-agenda-tags' will be limited only to active todos by > `current-prefix-arg' and this will always produce empty set:
Thanks for reporting! Your examples makes sense and I do not see any reason why `current-prefix-arg' should be used instead of ARG. The present usage appears to be introduced in the initial agenda implementation back 14 years ago. Fixed on main via db12a497d. Best, Ihor