From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xiao-Yong Jin Subject: Re: need: custom agenda for last 7 days Date: Fri, 22 Feb 2013 18:15:31 +0900 Message-ID: <157C80C0-8035-446F-AF62-F68D02A9A0B8@gmail.com> References: <871uc8zqub.fsf@bzg.ath.cx> Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8ojK-0008KL-10 for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 04:15:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8ojH-0004pP-A1 for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 04:15:45 -0500 Received: from mail-pb0-f53.google.com ([209.85.160.53]:43692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8ojG-0004pE-Sf for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 04:15:42 -0500 Received: by mail-pb0-f53.google.com with SMTP id un1so300314pbc.12 for ; Fri, 22 Feb 2013 01:15:41 -0800 (PST) In-Reply-To: <871uc8zqub.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: Org-Mode , Subhan Tindall I was just trying to search for this the other day. On Feb 22, 2013, at 5:19 PM, Bastien wrote: > Hi Subhan, >=20 > Subhan Tindall writes: >=20 >> '(org-agenda-custom-commands (quote (("w" "Weekly Logs" agenda "" >> ((org-agenda-span 8)))))) >=20 > You can combine `org-agenda-span' and `org-agenda-start-day',=20 > which interprets negative values correctly: >=20 > '(org-agenda-custom-commands (quote (("w" "Weekly Logs" agenda "" > ((org-agenda-span 8) > (org-agenda-start-day -7)))))) I believe you need to pass a string to =3Dorg-agenda-start-day=3D. (org-agenda-start-day "-7") >=20 > And *yes*, we need more documentation and tutorials on this. For this variable, =3Dorg-agenda-start-day=3D, give a link to the = document of the function =3Dorg-read-date=3D would be great. I had to = read through the source code to understand it. > Help is welcome! >=20 > Best, >=20 > --=20 > Bastien >=20