emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to get a list of unscheduled TODOs
@ 2009-02-04  5:58 Saurabh Agrawal
  2009-02-04  6:29 ` Manish
  0 siblings, 1 reply; 7+ messages in thread
From: Saurabh Agrawal @ 2009-02-04  5:58 UTC (permalink / raw)
  To: emacs-orgmode Mailinglist

Hi group,

I have got around 4 projects running at a time. As per philosophy of
GTD, sometime I get some TODOs, and without thinking much about them
at the time, I use remember package to just list them as a TODO in
correct Category. At the end of the day, I would like to have a list
of my unscheduled TODOs, of School Category separately. I am using a
custom agenda for this. But using org-agenda-todo-ignore-with-date is
not working in the following form:

 '(org-agenda-custom-commands
(quote (("t" "Today!!!"
((agenda "" ((org-agenda-ndays 1)))
(tags-todo "CATEGORY=\"School\"" (org-agenda-todo-ignore-with-date 1 ))
(tags-todo "CATEGORY=\"CRS\"" nil)
(tags-todo "CATEGORY=\"Study\"" nil)
(tags-todo "CATEGORY=\"Practice\"" nil)
(tags-todo "CATEGORY=\"Reading\"" nil)
(tags-todo "CATEGORY=\"Other\"" nil))))))

As you might have guessed, I am pretty new to the world of emacs. If
you could look into this and let me know some better suggestion, I
would be grateful.

Thanks.

Saurabh.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to get a list of unscheduled TODOs
  2009-02-04  5:58 How to get a list of unscheduled TODOs Saurabh Agrawal
@ 2009-02-04  6:29 ` Manish
  2009-02-04  8:38   ` Saurabh Agrawal
  0 siblings, 1 reply; 7+ messages in thread
From: Manish @ 2009-02-04  6:29 UTC (permalink / raw)
  To: Saurabh Agrawal; +Cc: emacs-orgmode Mailinglist

On Wed, Feb 4, 2009 at 11:28 AM, Saurabh Agrawal wrote:
> Hi group,
>
> I have got around 4 projects running at a time. As per philosophy of
> GTD, sometime I get some TODOs, and without thinking much about them
> at the time, I use remember package to just list them as a TODO in
> correct Category. At the end of the day, I would like to have a list
> of my unscheduled TODOs, of School Category separately. I am using a
> custom agenda for this. But using org-agenda-todo-ignore-with-date is
> not working in the following form:
>
> '(org-agenda-custom-commands
> (quote (("t" "Today!!!"
> ((agenda "" ((org-agenda-ndays 1)))
> (tags-todo "CATEGORY=\"School\"" (org-agenda-todo-ignore-with-date 1 ))
> (tags-todo "CATEGORY=\"CRS\"" nil)
> (tags-todo "CATEGORY=\"Study\"" nil)
> (tags-todo "CATEGORY=\"Practice\"" nil)
> (tags-todo "CATEGORY=\"Reading\"" nil)
> (tags-todo "CATEGORY=\"Other\"" nil))))))

Something like this perhaps.  Untested.. but key takeaway is using the
org-agenda-skip-function.

--8<---------------cut here---------------start------------->8---
(setq org-agenda-custom-commands
      (quote (("t" "Today!!!"
               ((agenda "" ((org-agenda-ndays 1)))
                (tags-todo "CATEGORY=\"School\""
                           (org-agenda-skip-function
'(org-agenda-skip-entry-if 'deadline 'scheduled)))
                (tags-todo "CATEGORY=\"CRS\"" nil)
                (tags-todo "CATEGORY=\"Study\"" nil)
                (tags-todo "CATEGORY=\"Practice\"" nil)
                (tags-todo "CATEGORY=\"Reading\"" nil)
                (tags-todo "CATEGORY=\"Other\"" nil))))))
--8<---------------cut here---------------end--------------->8---

HTH
-- 
Manish

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to get a list of unscheduled TODOs
  2009-02-04  6:29 ` Manish
@ 2009-02-04  8:38   ` Saurabh Agrawal
  2009-02-04  9:18     ` Manish
  0 siblings, 1 reply; 7+ messages in thread
From: Saurabh Agrawal @ 2009-02-04  8:38 UTC (permalink / raw)
  To: Manish; +Cc: emacs-orgmode Mailinglist

Thanks for the reply Manish.

But after I modify my .emacs, I get the following error on starting
the custom agenda:

byte-code: Before first headline at position 1462 in buffer *Org Agenda*

Could you please suggest something? I am unable to debug this.

Saurabh. *Novice*

On Wed, Feb 4, 2009 at 11:59 AM, Manish <mailtomanish.sharma@gmail.com> wrote:
> On Wed, Feb 4, 2009 at 11:28 AM, Saurabh Agrawal wrote:
>> Hi group,
>>
>> I have got around 4 projects running at a time. As per philosophy of
>> GTD, sometime I get some TODOs, and without thinking much about them
>> at the time, I use remember package to just list them as a TODO in
>> correct Category. At the end of the day, I would like to have a list
>> of my unscheduled TODOs, of School Category separately. I am using a
>> custom agenda for this. But using org-agenda-todo-ignore-with-date is
>> not working in the following form:
>>
>> '(org-agenda-custom-commands
>> (quote (("t" "Today!!!"
>> ((agenda "" ((org-agenda-ndays 1)))
>> (tags-todo "CATEGORY=\"School\"" (org-agenda-todo-ignore-with-date 1 ))
>> (tags-todo "CATEGORY=\"CRS\"" nil)
>> (tags-todo "CATEGORY=\"Study\"" nil)
>> (tags-todo "CATEGORY=\"Practice\"" nil)
>> (tags-todo "CATEGORY=\"Reading\"" nil)
>> (tags-todo "CATEGORY=\"Other\"" nil))))))
>
> Something like this perhaps.  Untested.. but key takeaway is using the
> org-agenda-skip-function.
>
> --8<---------------cut here---------------start------------->8---
> (setq org-agenda-custom-commands
>      (quote (("t" "Today!!!"
>               ((agenda "" ((org-agenda-ndays 1)))
>                (tags-todo "CATEGORY=\"School\""
>                           (org-agenda-skip-function
> '(org-agenda-skip-entry-if 'deadline 'scheduled)))
>                (tags-todo "CATEGORY=\"CRS\"" nil)
>                (tags-todo "CATEGORY=\"Study\"" nil)
>                (tags-todo "CATEGORY=\"Practice\"" nil)
>                (tags-todo "CATEGORY=\"Reading\"" nil)
>                (tags-todo "CATEGORY=\"Other\"" nil))))))
> --8<---------------cut here---------------end--------------->8---
>
> HTH
> --
> Manish
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to get a list of unscheduled TODOs
  2009-02-04  8:38   ` Saurabh Agrawal
@ 2009-02-04  9:18     ` Manish
  2009-02-04 11:23       ` Saurabh Agrawal
  0 siblings, 1 reply; 7+ messages in thread
From: Manish @ 2009-02-04  9:18 UTC (permalink / raw)
  To: Saurabh Agrawal; +Cc: emacs-orgmode Mailinglist

On Wed, Feb 4, 2009 at 2:08 PM, Saurabh Agrawal wrote:
[snip]
>
> Could you please suggest something? I am unable to debug this.

Is this better?

--8<---------------cut here---------------start------------->8---
(setq org-agenda-custom-commands
     (quote (("t" "Today!!!"
              ((agenda "" ((org-agenda-ndays 1)))
               (tags "CATEGORY=\"School\""
                          ((org-agenda-skip-function
'(org-agenda-skip-entry-if 'deadline 'scheduled))))
               (tags "CATEGORY=\"CRS\"" nil)
               (tags "CATEGORY=\"Study\"" nil)
               (tags "CATEGORY=\"Practice\"" nil)
               (tags "CATEGORY=\"Reading\"" nil)
               (tags "CATEGORY=\"Other\"" nil))))))
--8<---------------cut here---------------end--------------->8---

>
> Saurabh. *Novice*

Ditto.

Perhaps you might want to read this excellent tutorial:
http://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.php

HTH
-- 
Manish

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to get a list of unscheduled TODOs
  2009-02-04  9:18     ` Manish
@ 2009-02-04 11:23       ` Saurabh Agrawal
  2009-02-04 14:20         ` Carsten Dominik
  0 siblings, 1 reply; 7+ messages in thread
From: Saurabh Agrawal @ 2009-02-04 11:23 UTC (permalink / raw)
  To: Manish; +Cc: emacs-orgmode Mailinglist

Thanks Manish, now it works... like a charm.. :)

Another problem though..

Sometimes, the TODOs haven't been "scheduled" but have a timestamp on
them. I would like to ignore them too..
However, using option "with-date" along with "deadline" and "schedule"
does not seem to work in org-agenda-skip-entry. Is this option not
valid?

So, I have used a bad hack as: org-agenda-skip-entry-if 'regexp "<2"

As any entry with timestamp anywhere will have <2009- and so on. This
is working well as per my needs, though.

Regards,

Saurabh.

On Wed, Feb 4, 2009 at 2:48 PM, Manish <mailtomanish.sharma@gmail.com> wrote:
> On Wed, Feb 4, 2009 at 2:08 PM, Saurabh Agrawal wrote:
> [snip]
>>
>> Could you please suggest something? I am unable to debug this.
>
> Is this better?
>
> --8<---------------cut here---------------start------------->8---
> (setq org-agenda-custom-commands
>     (quote (("t" "Today!!!"
>              ((agenda "" ((org-agenda-ndays 1)))
>               (tags "CATEGORY=\"School\""
>                          ((org-agenda-skip-function
> '(org-agenda-skip-entry-if 'deadline 'scheduled))))
>               (tags "CATEGORY=\"CRS\"" nil)
>               (tags "CATEGORY=\"Study\"" nil)
>               (tags "CATEGORY=\"Practice\"" nil)
>               (tags "CATEGORY=\"Reading\"" nil)
>               (tags "CATEGORY=\"Other\"" nil))))))
> --8<---------------cut here---------------end--------------->8---
>
>>
>> Saurabh. *Novice*
>
> Ditto.
>
> Perhaps you might want to read this excellent tutorial:
> http://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.php
>
> HTH
> --
> Manish
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to get a list of unscheduled TODOs
  2009-02-04 11:23       ` Saurabh Agrawal
@ 2009-02-04 14:20         ` Carsten Dominik
  2009-02-04 17:41           ` Saurabh Agrawal
  0 siblings, 1 reply; 7+ messages in thread
From: Carsten Dominik @ 2009-02-04 14:20 UTC (permalink / raw)
  To: Saurabh Agrawal; +Cc: emacs-orgmode Mailinglist


On Feb 4, 2009, at 12:23 PM, Saurabh Agrawal wrote:

> Thanks Manish, now it works... like a charm.. :)
>
> Another problem though..
>
> Sometimes, the TODOs haven't been "scheduled" but have a timestamp on
> them. I would like to ignore them too..
> However, using option "with-date" along with "deadline" and "schedule"
> does not seem to work in org-agenda-skip-entry. Is this option not
> valid?
>
> So, I have used a bad hack as: org-agenda-skip-entry-if 'regexp "<2"

Pretty clever for someone who claims to be new to Emacs :-)

`with-date' does not exist, but I have just added `timestamp'
and `nottimestamp' conditions.

- Carsten

>
>
> As any entry with timestamp anywhere will have <2009- and so on. This
> is working well as per my needs, though.
>
> Regards,
>
> Saurabh.
>
> On Wed, Feb 4, 2009 at 2:48 PM, Manish  
> <mailtomanish.sharma@gmail.com> wrote:
>> On Wed, Feb 4, 2009 at 2:08 PM, Saurabh Agrawal wrote:
>> [snip]
>>>
>>> Could you please suggest something? I am unable to debug this.
>>
>> Is this better?
>>
>> --8<---------------cut here---------------start------------->8---
>> (setq org-agenda-custom-commands
>>    (quote (("t" "Today!!!"
>>             ((agenda "" ((org-agenda-ndays 1)))
>>              (tags "CATEGORY=\"School\""
>>                         ((org-agenda-skip-function
>> '(org-agenda-skip-entry-if 'deadline 'scheduled))))
>>              (tags "CATEGORY=\"CRS\"" nil)
>>              (tags "CATEGORY=\"Study\"" nil)
>>              (tags "CATEGORY=\"Practice\"" nil)
>>              (tags "CATEGORY=\"Reading\"" nil)
>>              (tags "CATEGORY=\"Other\"" nil))))))
>> --8<---------------cut here---------------end--------------->8---
>>
>>>
>>> Saurabh. *Novice*
>>
>> Ditto.
>>
>> Perhaps you might want to read this excellent tutorial:
>> http://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.php
>>
>> HTH
>> --
>> Manish
>>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to get a list of unscheduled TODOs
  2009-02-04 14:20         ` Carsten Dominik
@ 2009-02-04 17:41           ` Saurabh Agrawal
  0 siblings, 0 replies; 7+ messages in thread
From: Saurabh Agrawal @ 2009-02-04 17:41 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode Mailinglist

>
> Pretty clever for someone who claims to be new to Emacs :-)
>
> `with-date' does not exist, but I have just added `timestamp'
> and `nottimestamp' conditions.
>
> - Carsten

Thanks Carsten. Actually I am very new to emacs and have started
gaining an idea of elisp. I am just following all the tutorials
available around.

And I want to thank you personally for this awesome piece of software.

Regards,

Saurabh.







>
>>
>>
>> As any entry with timestamp anywhere will have <2009- and so on. This
>> is working well as per my needs, though.
>>
>> Regards,
>>
>> Saurabh.
>>
>> On Wed, Feb 4, 2009 at 2:48 PM, Manish <mailtomanish.sharma@gmail.com>
>> wrote:
>>>
>>> On Wed, Feb 4, 2009 at 2:08 PM, Saurabh Agrawal wrote:
>>> [snip]
>>>>
>>>> Could you please suggest something? I am unable to debug this.
>>>
>>> Is this better?
>>>
>>> --8<---------------cut here---------------start------------->8---
>>> (setq org-agenda-custom-commands
>>>   (quote (("t" "Today!!!"
>>>            ((agenda "" ((org-agenda-ndays 1)))
>>>             (tags "CATEGORY=\"School\""
>>>                        ((org-agenda-skip-function
>>> '(org-agenda-skip-entry-if 'deadline 'scheduled))))
>>>             (tags "CATEGORY=\"CRS\"" nil)
>>>             (tags "CATEGORY=\"Study\"" nil)
>>>             (tags "CATEGORY=\"Practice\"" nil)
>>>             (tags "CATEGORY=\"Reading\"" nil)
>>>             (tags "CATEGORY=\"Other\"" nil))))))
>>> --8<---------------cut here---------------end--------------->8---
>>>
>>>>
>>>> Saurabh. *Novice*
>>>
>>> Ditto.
>>>
>>> Perhaps you might want to read this excellent tutorial:
>>> http://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.php
>>>
>>> HTH
>>> --
>>> Manish
>>>
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-02-04 17:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-04  5:58 How to get a list of unscheduled TODOs Saurabh Agrawal
2009-02-04  6:29 ` Manish
2009-02-04  8:38   ` Saurabh Agrawal
2009-02-04  9:18     ` Manish
2009-02-04 11:23       ` Saurabh Agrawal
2009-02-04 14:20         ` Carsten Dominik
2009-02-04 17:41           ` Saurabh Agrawal

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).