From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Feature: Group and limit items in agenda Date: Sat, 23 Feb 2013 10:58:09 +0100 Message-ID: <87ppzr2tn8.fsf@bzg.ath.cx> References: <87ip64z9rx.fsf@bzg.ath.cx> <87d2w6kier.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9CeS-0004cG-Mg for emacs-orgmode@gnu.org; Sat, 23 Feb 2013 05:48:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9CeQ-0000KA-3h for emacs-orgmode@gnu.org; Sat, 23 Feb 2013 05:48:20 -0500 Received: from mail-wi0-f179.google.com ([209.85.212.179]:53669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9CeP-0000It-Sz for emacs-orgmode@gnu.org; Sat, 23 Feb 2013 05:48:18 -0500 Received: by mail-wi0-f179.google.com with SMTP id ez12so1626465wid.6 for ; Sat, 23 Feb 2013 02:48:17 -0800 (PST) In-Reply-To: (Muchenxuan Tong's message of "Sun, 17 Feb 2013 14:29:12 +0800") 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: Muchenxuan Tong Cc: emacs-orgmode@gnu.org Hi Muchenxuan, Muchenxuan Tong writes: > 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 :) Well, I guess you don't want the grouping to take place *before* the sorting, as the sorting may destroy it, so a defadvice is the way to go here I'd say. If your defadvice can be useful for others, please consider adding it to Worg! (Just send me your public key and I'll give you write access to Worg.) Thanks, -- Bastien