emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Xiao-Yong Jin <jinxiaoyong@gmail.com>
To: Bastien <bzg@altern.org>
Cc: Org-Mode <emacs-orgmode@gnu.org>,
	Subhan Tindall <subhan.tindall@rentrakmail.com>
Subject: Re: need: custom agenda for last 7 days
Date: Fri, 22 Feb 2013 18:15:31 +0900	[thread overview]
Message-ID: <157C80C0-8035-446F-AF62-F68D02A9A0B8@gmail.com> (raw)
In-Reply-To: <871uc8zqub.fsf@bzg.ath.cx>

I was just trying to search for this the other day.

On Feb 22, 2013, at 5:19 PM, Bastien <bzg@altern.org> wrote:

> Hi Subhan,
> 
> Subhan Tindall <subhan.tindall@rentrakmail.com> writes:
> 
>> '(org-agenda-custom-commands (quote (("w" "Weekly Logs" agenda ""
>> ((org-agenda-span 8))))))
> 
> You can combine `org-agenda-span' and `org-agenda-start-day', 
> which interprets negative values correctly:
> 
> '(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 =org-agenda-start-day=.

    (org-agenda-start-day "-7")

> 
> And *yes*, we need more documentation and tutorials on this.

For this variable, =org-agenda-start-day=, give a link to the document of the function =org-read-date= would be great.  I had to read through the source code to understand it.

> Help is welcome!
> 
> Best,
> 
> -- 
> Bastien
> 

  reply	other threads:[~2013-02-22  9:15 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
2013-02-22  8:19 ` Bastien
2013-02-22  9:15   ` Xiao-Yong Jin [this message]
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=157C80C0-8035-446F-AF62-F68D02A9A0B8@gmail.com \
    --to=jinxiaoyong@gmail.com \
    --cc=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    --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).