[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [BUG] org-agenda passes current-prefix-arg to commands instead of ar
Re: [BUG] org-agenda passes current-prefix-arg to commands instead of arg [9.5.3 (9.5.3-g69c588 @ /Users/stas/.emacs.d/straight/build/org/)]
Thu, 07 Jul 2022 18:05:31 +0800
> `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
Fixed on main via db12a497d.