From mboxrd@z Thu Jan 1 00:00:00 1970 From: Muchenxuan Tong Subject: Re: Feature: Group and limit items in agenda Date: Sun, 17 Feb 2013 14:29:12 +0800 Message-ID: References: <87ip64z9rx.fsf@bzg.ath.cx> <87d2w6kier.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d042d051c1270a304d5e5bafd Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6xkT-0006BB-Ie for emacs-orgmode@gnu.org; Sun, 17 Feb 2013 01:29:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6xkQ-0003YF-ON for emacs-orgmode@gnu.org; Sun, 17 Feb 2013 01:29:17 -0500 Received: from mail-lb0-f177.google.com ([209.85.217.177]:41444) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6xkQ-0003Y8-Cy for emacs-orgmode@gnu.org; Sun, 17 Feb 2013 01:29:14 -0500 Received: by mail-lb0-f177.google.com with SMTP id go11so3480708lbb.22 for ; Sat, 16 Feb 2013 22:29:12 -0800 (PST) In-Reply-To: <87d2w6kier.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode@gnu.org --f46d042d051c1270a304d5e5bafd Content-Type: text/plain; charset=ISO-8859-1 Yes I understand your point. However, setting TODO for each category manually would be laborious in my situation, I have to adjust the configuration file each time I add/delete the project. For my implementation, I advice on function 'org-agenda-finalize-entries' to put lists into different groups, limit them and add separator after the line '(setq list (mapcar 'org-agenda-highlight-todo list))' There's a 'org-agenda-before-sorting-filter-function' variable. However, I'm not able to use it for grouping things, because it's used as '(mapcar org-agenda-before-sorting-filter-function list)' Would it be useful to add another function here, not used in 'mapcar', but work directly on the whole list? I don't know whether it is worthy, and I'm OK if that's not general enough to be added, because I can use defadvice anyway :) On Mon, Feb 11, 2013 at 9:42 PM, Bastien wrote: > Hi Muchenxuan, > > Muchenxuan Tong writes: > > > My intention is to limit the number of tasks in each category. > > Did you check (info "(org)Block Agenda") ? > > That's the way I would suggest: define a block agenda listing > the various categories, then use `org-agenda-max-todos' in each > of them to limit the number of TODOs. > > > For the new proposed 'org-agenda-max-todos', I can only limit the > > number of TODOs in the whole TODO lists. > > > > Maybe for what I want, it's desirable to add a auto-split or > > auto-group features, where a list of TODOs, can be split further into > > multiple lists of TODOs, by a certain criteria (tags, category). > > > > What do you think about it? > > I understand defining block agendas is not as straightforward than the > solution you envision, but my feeling is that allowing grouping+limits > will have too much overlap with the block agenda functionality. > > Let me know if you find the path to happiness with a combinaison of > block agendas and the new variables. > > Thanks, > > -- > Bastien > --f46d042d051c1270a304d5e5bafd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Yes I understand your point. However, setting TODO for eac= h category manually would be laborious in my situation, I have to adjust th= e configuration file each time I add/delete the project.

For my implementation, I advice on function 'org-agenda-finalize-entrie= s' to put lists into different groups, limit them and add separator aft= er the line '(setq list (mapcar 'org-agenda-highlight-todo list))&#= 39;

There's a 'org-agenda-before-sortin= g-filter-function' variable. However, I'm not able to use it for gr= ouping things, because it's used as '(mapcar org-agenda-before-sort= ing-filter-function list)'

Would it be useful to add another function = here, not used in 'mapcar', but work directly on the whole list? I = don't know whether it is worthy, and I'm OK if that's not gener= al enough to be added, because I can use defadvice anyway :)


On Mon,= Feb 11, 2013 at 9:42 PM, Bastien <bzg@altern.org> wrote:
Hi Muchenxuan,

Muchenxuan Tong <demon386@gmail.co= m> writes:

> My intention is to limit the number of tasks i= n each category.

Did you check (info "(org)Block Agenda") ?

That's the way I would suggest: define a block agenda listing
the various categories, then use `org-agenda-max-todos' in each
of them to limit the number of TODOs.

> For the new proposed 'org-agenda-max-todos', I can only limit = the
> number of TODOs in the whole TODO lists.
>
> Maybe for what I want, it's desirable to add a auto-split or
> auto-group features, where a list of TODOs, can be split further into<= br> > multiple lists of TODOs, by a certain criteria (tags, category).
>
> What do you think about it?

I understand defining block agendas is not as straightforward than th= e
solution you envision, but my feeling is that allowing grouping+limits
will have too much overlap with the block agenda functionality.

Let me know if you find the path to happiness with a combinaison of
block agendas and the new variables.

Thanks,

--
=A0Bastien

--f46d042d051c1270a304d5e5bafd--