From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy =?utf-8?b?XA==?= Subject: Re: need: custom agenda for last 7 days Date: Thu, 21 Feb 2013 14:05:47 +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]:40064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8XAT-0002i5-IF for emacs-orgmode@gnu.org; Thu, 21 Feb 2013 09:30:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8Wmi-0004mM-0H for emacs-orgmode@gnu.org; Thu, 21 Feb 2013 09:06:15 -0500 Received: from plane.gmane.org ([80.91.229.3]:57567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8Wmh-0004m1-Mm for emacs-orgmode@gnu.org; Thu, 21 Feb 2013 09:06:03 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U8Wmy-0003ny-ST for emacs-orgmode@gnu.org; Thu, 21 Feb 2013 15:06:20 +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 15:06:20 +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 15:06:20 +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: here is a fonction you can use to generate your weekly report: #+BEGIN_SRC lisp (defun my/weekly-report nil "Generate the agenda list for last 8 days with report mode on" (org-agenda-list nil (- (org-today) 8) 8) ; 8 day agenda starting 8 days ago (setq org-agenda-clockreport-mode nil) (org-agenda-clockreport-mode) ) #+END_SRC Samuel: I love your solution (much more elegant than mine!), but even with emacs -q I get the error #+BEGIN_SRC org-agenda-list: Wrong type argument: number-or-marker-p, my/org-last-week #+END_SRC I am using GNU Emacs 24.3.50.1 and Org-mode version 7.9.3d.