From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Feature: Group and limit items in agenda Date: Mon, 25 Feb 2013 10:50:38 +0100 Message-ID: <87r4k4oh75.fsf@bzg.ath.cx> References: <87ip64z9rx.fsf@bzg.ath.cx> <87d2w6kier.fsf@bzg.ath.cx> <87ppzr2tn8.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9uhu-0004cC-G4 for emacs-orgmode@gnu.org; Mon, 25 Feb 2013 04:50:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9uhn-00040d-BK for emacs-orgmode@gnu.org; Mon, 25 Feb 2013 04:50:50 -0500 Received: from mail-wi0-f178.google.com ([209.85.212.178]:47790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9uhn-00040N-0K for emacs-orgmode@gnu.org; Mon, 25 Feb 2013 04:50:43 -0500 Received: by mail-wi0-f178.google.com with SMTP id hq4so281231wib.5 for ; Mon, 25 Feb 2013 01:50:42 -0800 (PST) In-Reply-To: (Samuel Wales's message of "Sun, 24 Feb 2013 13:23:34 -0700") 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: Samuel Wales Cc: emacs-orgmode@gnu.org, Muchenxuan Tong Hi Samuel, Samuel Wales writes: > One other use here is to show a small random sample of your tasks > without affecting speed. > > In before sorting filter function, set a pseudorandom number (biased > according to a distribution of your choice) on a text property. You > can set some to appear always. > > In the mapcar function, use user-defined sorting to sort according to > the numbers and limit to just the first 5. Yes, this is a nice use of `org-agenda-before-sorting-filter-function'. > Can defadvice be relied on to keep working in future versions of Org? As much as possible, yes. -- Bastien