emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Samuel Loury <konubinix@gmail.com>
To: nicholas.dokos@hp.com
Cc: Org-Mode <emacs-orgmode@gnu.org>,
	Subhan Tindall <subhan.tindall@rentrakmail.com>
Subject: Re: need: custom agenda for last 7 days
Date: Thu, 21 Feb 2013 18:19:43 +0100	[thread overview]
Message-ID: <87wqu1k2j4.fsf@konixwork.incubateur.ens-lyon.fr> (raw)
In-Reply-To: <25887.1361459055@alphaville>

[-- Attachment #1: Type: text/plain, Size: 1033 bytes --]

Nick Dokos <nicholas.dokos@hp.com> writes:

> Samuel Loury <konubinix@gmail.com> wrote:
>
>> ╭────
>> │ (defun my/org-last-week ()
>> │   (- (org-today) 7)
>> │   )
>> │ 
>> │ 
>> │ (add-to-list 'org-agenda-custom-commands
>> │ 			 '("w" "Weekly Logs"
>> │ 			   (
>> │ 				(agenda nil
>> │ 						(
>> │ 						 (org-agenda-overriding-header
>> │ 						  "Review for last week")
>> │ 						 (org-agenda-span 8)
>> │ 						 )
>> │ 						)
>> │ 				)
>> │ 			   (
>> │ 				(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.

-- 
Konubinix
GPG Key    : 7439106A
Fingerprint: 5993 BE7A DA65 E2D9 06CE  5C36 75D2 3CED 7439 106A

[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]

  reply	other threads:[~2013-02-21 17:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-20 19:00 need: custom agenda for last 7 days Subhan Tindall
2013-02-21 11:39 ` Jeremy "LeJyBy" Barbay
2013-02-21 14:05   ` Jeremy \
2013-02-21 16:58   ` Subhan Tindall
2013-02-21 12:35 ` Samuel Loury
2013-02-21 15:04   ` Nick Dokos
2013-02-21 17:19     ` Samuel Loury [this message]
2013-02-22  8:19 ` Bastien
2013-02-22  9:15   ` Xiao-Yong Jin
2013-02-22 12:43     ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wqu1k2j4.fsf@konixwork.incubateur.ens-lyon.fr \
    --to=konubinix@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=nicholas.dokos@hp.com \
    --cc=subhan.tindall@rentrakmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).