From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subhan Tindall Subject: Re: need: custom agenda for last 7 days Date: Thu, 21 Feb 2013 08:58:13 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60786) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8ZTT-0000p3-6Z for emacs-orgmode@gnu.org; Thu, 21 Feb 2013 11:58:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8ZTL-0004rn-FL for emacs-orgmode@gnu.org; Thu, 21 Feb 2013 11:58:23 -0500 Received: from mail-lb0-f169.google.com ([209.85.217.169]:41751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8ZTL-0004qT-89 for emacs-orgmode@gnu.org; Thu, 21 Feb 2013 11:58:15 -0500 Received: by mail-lb0-f169.google.com with SMTP id m4so7025887lbo.28 for ; Thu, 21 Feb 2013 08:58:13 -0800 (PST) In-Reply-To: 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: Jeremy LeJyBy Cc: emacs-orgmode@gnu.org Actually I think the behavior of agendas is somewhat broken in this regard - a 6 day span shows 6 days, an 8 day span shows 8 days, a 7 day span shows a weekly agenda starting on Monday. Silently redefining the meaning of a variable like this depending on it's value is pretty horrible. But thanks to everybody for the tips, I think I can work out what I want from here! Subhan On Thu, Feb 21, 2013 at 3:39 AM, Jeremy "LeJyBy" wrote: [SNIP] > I tried (and failed) to find how to define a custom command in the agenda to > this purpose, but the last function fulfilled my wish. An unexpected twist > (which you might like) is that (org-agenda-list nil (- (org-today) 7) 7) gives a > 7 day agenda starting Monday of last week, rather than 7 days ago. > > I hope it helps! > > Many thanks to all people involved in org-mode for their good work and patience > with the "rowdy" users! > > -- Subhan Michael Tindall | Software Developer | smt@rentrakmail.com RENTRAK | www.rentrak.com | NASDAQ: RENT