From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: need: custom agenda for last 7 days Date: Thu, 21 Feb 2013 10:04:15 -0500 Message-ID: <25887.1361459055@alphaville> References: <87zjyxkfpj.fsf@konixwork.incubateur.ens-lyon.fr> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8XhB-00080p-GD for emacs-orgmode@gnu.org; Thu, 21 Feb 2013 10:04:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8Xh5-00038n-8B for emacs-orgmode@gnu.org; Thu, 21 Feb 2013 10:04:25 -0500 Received: from g6t0186.atlanta.hp.com ([15.193.32.63]:11007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8Xh5-00036f-3G for emacs-orgmode@gnu.org; Thu, 21 Feb 2013 10:04:19 -0500 In-Reply-To: Message from Samuel Loury of "Thu\, 21 Feb 2013 13\:35\:04 +0100." <87zjyxkfpj.fsf@konixwork.incubateur.ens-lyon.fr> 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 Loury Cc: Org-Mode , Subhan Tindall Samuel Loury wrote: > =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > =E2=94=82 (defun my/org-last-week () > =E2=94=82 (- (org-today) 7) > =E2=94=82 ) > =E2=94=82=20 > =E2=94=82=20 > =E2=94=82 (add-to-list 'org-agenda-custom-commands > =E2=94=82 '("w" "Weekly Logs" > =E2=94=82 ( > =E2=94=82 (agenda nil > =E2=94=82 ( > =E2=94=82 (org-agenda-overriding-header > =E2=94=82 "Review for last week") > =E2=94=82 (org-agenda-span 8) > =E2=94=82 ) > =E2=94=82 ) > =E2=94=82 ) > =E2=94=82 ( > =E2=94=82 (org-agenda-start-day 'my/org-last-week) I think that's wrong: there is no support afaik for this variable to have a function value. Should that be (org-agenda-start-day (my/org-last-week)) perhaps? Nick > =E2=94=82 (org-agenda-start-with-clockreport-mode t) > =E2=94=82 (org-agenda-start-with-log-mode t) > =E2=94=82 (org-agenda-archives-mode t) > =E2=94=82 (org-agenda-show-log 'clockcheck) > =E2=94=82 ) > =E2=94=82 ) > =E2=94=82 ) > =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > Hope it helps. > --=20 > Konubinix > GPG Key : 7439106A > Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A