From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Loury Subject: Re: need: custom agenda for last 7 days Date: Thu, 21 Feb 2013 18:19:43 +0100 Message-ID: <87wqu1k2j4.fsf@konixwork.incubateur.ens-lyon.fr> References: <87zjyxkfpj.fsf@konixwork.incubateur.ens-lyon.fr> <25887.1361459055@alphaville> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8Zq3-0006MH-I2 for emacs-orgmode@gnu.org; Thu, 21 Feb 2013 12:21:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8Zq0-0002KZ-TD for emacs-orgmode@gnu.org; Thu, 21 Feb 2013 12:21:43 -0500 Received: from mail-wg0-f50.google.com ([74.125.82.50]:59470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8Zq0-0002KO-ML for emacs-orgmode@gnu.org; Thu, 21 Feb 2013 12:21:40 -0500 Received: by mail-wg0-f50.google.com with SMTP id es5so7689708wgb.29 for ; Thu, 21 Feb 2013 09:21:40 -0800 (PST) In-Reply-To: <25887.1361459055@alphaville> 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: nicholas.dokos@hp.com Cc: Org-Mode , Subhan Tindall --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Nick Dokos writes: > 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. Hum. You're right. I forgot I also patched the org-agenda.el code for this to work. > Should that be > > (org-agenda-start-day (my/org-last-week)) That works well indeed. And does not need any patch. Thanks for the correction. =2D-=20 Konubinix GPG Key : 7439106A Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJRJlcvAAoJEHXSPO10ORBq8i4H/iR7BQiUpqH+QfC4aqG9W2Pq JN0NLlzlMt6eoD8U2/FSWtGCMX8/ZQFzV05fC+rD4hhLxL6Ch1DtkHICwZRJqw0T RDA/VwvbrWgfP/FzFqfjiRBbzmXMHSHFI/mSw2EpE9aGz/QxHN6rigmKMGdZu4Zc uj7Bu75p0CfehEtL3jwUaCIAHpAYRU5sdMnf8pDEirMXaucxs9gibV4jiCZi6zZL Q5rgmJ06C2OPQbHUoB/Q5k+Mrvfz+MVU9EBMK4lfoZl1fZhPB/jkw7vOiIrtjE6f e+15whbf8LttutYmFL2o3Hm5KFfnIdisE514j3GrpB2axGNNWmmX91fkVriYMlM= =ETn9 -----END PGP SIGNATURE----- --=-=-=--