From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy =?utf-8?b?IkxlSnlCeSI=?= Barbay Subject: Re: need: custom agenda for last 7 days Date: Thu, 21 Feb 2013 11:39:10 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8W42-0001ju-8Z for emacs-orgmode@gnu.org; Thu, 21 Feb 2013 08:19:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8W3v-00031d-4E for emacs-orgmode@gnu.org; Thu, 21 Feb 2013 08:19:54 -0500 Received: from plane.gmane.org ([80.91.229.3]:53235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8W3u-00031K-Tf for emacs-orgmode@gnu.org; Thu, 21 Feb 2013 08:19:47 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U8W4C-0003ki-QB for emacs-orgmode@gnu.org; Thu, 21 Feb 2013 14:20:04 +0100 Received: from ARouen-156-1-145-188.w82-126.abo.wanadoo.fr ([82.126.16.188]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Feb 2013 14:20:04 +0100 Received: from jbarbay by ARouen-156-1-145-188.w82-126.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Feb 2013 14:20:04 +0100 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: emacs-orgmode@gnu.org Subhan Tindall rentrakmail.com> writes: > I have a question regarding a custom agenda report. I've found the > variable org-agenda-span to set the number of days shown. But, I > can't seem to some up with a way to make it start in the past. > IE I want to see all agenda items for today and the previous 6 days. Hi Subhan. - Would the following serve you? ((org-agenda-list nil (- (org-today) 7) 6) ; 6 day agenda starting 6 days ago I tried (and failed) to find how to define a custom command in the agenda to this purpose, but the last function fulfilled my wish. An unexpected twist (which you might like) is that (org-agenda-list nil (- (org-today) 7) 7) gives a 7 day agenda starting Monday of last week, rather than 7 days ago. I hope it helps! Many thanks to all people involved in org-mode for their good work and patience with the "rowdy" users!