emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: org-agenda-list should respect org-agenda-max-entries


From: Bastien
Subject: Re: org-agenda-list should respect org-agenda-max-entries
Date: Mon, 26 Apr 2021 10:56:40 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Hi Ag,

Ag Ibragimov <agzam.ibragimov@gmail.com> writes:

> While going through the source code, I've noticed that org-agenda-list
> scans all the files in org-agenda-files and processes all Org items
> those files contain.
>
> However, it seems when org-agenda-max-entries or org-agenda-max-todos
> are not nil, it still processes every entry, and only after building
> the agenda it reduces the number of items in the list. It's okay, but
> if you have lots of files and tons of entries, it seems to be waste of
> time and resources.

Yes, agreed.  `org-agenda-max-entries' and `org-agenda-max-entries'
are less useful when the limitation is done *at the end* as it is now
(my bad, as I implemented this).

I would welcome a patch that take org-agenda-max-* variables into
account right after the list of agenda items has been collected and
just *before* any other filtering happens.

Let me know if this is something you can explore.  Thanks!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]