From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathaniel Flath Subject: Re: [PATCH] only display a scheduled item if it is due today or in the past Date: Sat, 22 May 2010 10:09:36 -0400 Message-ID: References: <87wruwfskr.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1935121883==" Return-path: Received: from [140.186.70.92] (port=37351 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFpOU-00043r-Uw for emacs-orgmode@gnu.org; Sat, 22 May 2010 10:09:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OFpOT-0001ZQ-FM for emacs-orgmode@gnu.org; Sat, 22 May 2010 10:09:38 -0400 Received: from mail-pw0-f41.google.com ([209.85.160.41]:61460) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFpOT-0001ZM-4i for emacs-orgmode@gnu.org; Sat, 22 May 2010 10:09:37 -0400 Received: by pwi7 with SMTP id 7so2045691pwi.0 for ; Sat, 22 May 2010 07:09:36 -0700 (PDT) In-Reply-To: <87wruwfskr.fsf@fastmail.fm> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matt Lundin Cc: emacs-orgmode@gnu.org, Carsten Dominik --===============1935121883== Content-Type: multipart/alternative; boundary=000e0cd112d890d45b04872f5b16 --000e0cd112d890d45b04872f5b16 Content-Type: text/plain; charset=ISO-8859-1 Yes, this patch is primarily for weekly agendas - it changes when items are displayed to be the same as having a style of 'habit, while also allowing to do it for non-recurring items. org-agenda-repeating-timestamp-show-all doesn't do quite what I want - I want the item to not show on my weekly agenda if it isn't scheduled for today, where that will make it show a maximum of once. I'd be wiling to write a personal skip function - I mainly did it this way because I was emulating org-habit, and then I thought it may be useful to other people. This is what I'll fall back to if you decide not to install this patch. Thanks, Nahtaniel Flath On Sat, May 22, 2010 at 12:50 AM, Matt Lundin wrote: > Nathaniel Flath writes: > > > On May 2, 2010, at 7:37 PM, Nathaniel Flath wrote: > > > > One thing I've wanted from org-mode is the ability to have > > certain items 'hidden' from the agenda until the day they are > > scheduled - this patch implements this for all properties who > > have a STYLE property of 'hidden'. I ended up implementing > > this(the patch is attached), and thought I'd contribute it to > > org-mode. If you have any comments, please let me know. > > > The primary use I have for it is essentially what Nathan said - it > > controls display or recurring items to be the same as habits, with the > > exception of not displaying the habit graph. > > To avoid seeing future instances of recurring tasks, you can set the > variable org-agenda-repeating-timestamp-show-all to nil. > > > I also use it when scheduling items that can't be started before a > > certain date. For example, I recently got a note that my tax return > > was being inverstigated and that I should contact the IRS in 30 days. > > Now, I schedule this item for 30 days from now, but in 23 days it > > starts showing up in my weekly agenda, even though there's nothing that > > can be done about it at that point. I'd much rather have it only > > display when it can actually be worked on. > > I'm still a bit confused about this patch. By definition, scheduled > items do not appear on the agenda until the day on which they are > scheduled. As I understand it, this patch is primarily for weekly > agendas---i.e., to prevent items scheduled on Friday from appearing > under the Friday slot until it is indeed Friday. In that case, why not > use the daily agenda instead of the weekly agenda? > > Would it perhaps be better to write a personal skip function that > handles this instead of hard-coding another test in org-agenda.el? > > Best, > Matt > --000e0cd112d890d45b04872f5b16 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Yes, this patch is primarily for weekly agendas - it changes when items are= displayed to be the same as having a style of 'habit, while also allow= ing to do it for non-recurring items.
=A0
org-agenda-repeating-times= tamp-show-all doesn't do quite what I want - I want the item to not sho= w on my weekly agenda if it isn't scheduled for today, where that will = make it show a maximum of once.

I'd be wiling to write a personal skip function - I mainly did it t= his way because I was emulating org-habit, and then I thought it may be use= ful to other people.=A0 This is what I'll fall back to if you decide no= t to install this patch.

Thanks,
Nahtaniel Flath

On Sat, May 22, 2010 at 12:50 AM, Mat= t Lundin <mdl@imapmail.org> wrote:
Nathaniel Flath <flat0103@gmail.com> writes:

> =A0 =A0 On May 2, 2010, at 7:37 PM, Nathaniel Flath wrote:
>
> =A0 =A0 =A0 =A0 One thing I've wanted from org-mode is = the ability to have
> =A0 =A0 =A0 =A0 certain items 'hidden' from the agenda until t= he day they are
> =A0 =A0 =A0 =A0 scheduled - this patch implements this for all propert= ies who
> =A0 =A0 =A0 =A0 have a STYLE property of 'hidden'. =A0 I ended= up implementing
> =A0 =A0 =A0 =A0 this(the patch is attached), and thought I'd contr= ibute it to
> =A0 =A0 =A0 =A0 org-mode. If you have any comments, please let me know= .

> The primary use I have for it is essentially what Nathan sa= id - it
> controls display or recurring items to be the same as habits, with the=
> exception of not displaying the habit graph.

To avoid seeing future instances of recurring tasks, you can set the<= br> variable org-agenda-repeating-timestamp-show-all to nil.

> I also use it when scheduling items that can't be started before a=
> certain date.=A0 For example, I recently got a note that my tax return=
> was being inverstigated and that I should contact the IRS in 30 days.= =A0
> Now, I schedule this item for 30 days from now, but in 23 days it
> starts showing up in my weekly agenda, even though there's nothing= that
> can be done about it at that point.=A0 I'd much rather have it onl= y
> display when it can actually be worked on.

I'm still a bit confused about this patch. By definition, schedul= ed
items do not appear on the agenda until the day on which they are
scheduled. As I understand it, this patch is primarily for weekly
agendas---i.e., to prevent items scheduled on Friday from appearing
under the Friday slot until it is indeed Friday. In that case, why not
use the daily agenda instead of the weekly agenda?

Would it perhaps be better to write a personal skip function that
handles this instead of hard-coding another test in org-agenda.el?

Best,
Matt

--000e0cd112d890d45b04872f5b16-- --===============1935121883== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1935121883==--