all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* org-agenda-ignore-scheduled not taken into account in custom agenda blocks?
@ 2012-11-15 16:25 Alan Schmitt
  2012-11-16  1:40 ` Eric Abrahamsen
  2012-11-24 16:07 ` Bernt Hansen
  0 siblings, 2 replies; 9+ messages in thread
From: Alan Schmitt @ 2012-11-15 16:25 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

I'm implementing some of the ideas of the great norang page
(http://doc.norang.ca/org-mode.html), but there is one thing that is
failing me. I can see that "org-agenda-ignore-scheduled" work for the
global todo list, but it does not seem to be working when using a custom
block. For instance, using the following definition:

#+BEGIN_SRC elisp
(tags-todo "-WAITING-CANCELLED/!NEXT"
           ((org-agenda-overriding-header "Next Tasks")
            (org-agenda-skip-function 'bh/skip-projects-and-habits-and-single-tasks)
            (org-agenda-todo-ignore-scheduled t)
            (org-agenda-todo-ignore-deadlines t)
            (org-agenda-todo-ignore-with-date t)
            (org-tags-match-list-sublevels t)
            (org-agenda-sorting-strategy
             '(todo-state-down effort-up category-keep))))
#+END_SRC

I still see scheduled tasks.

Is it supposed to be working or am I doing it wrong?

Thanks,

Alan

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

* Re: org-agenda-ignore-scheduled not taken into account in custom agenda blocks?
  2012-11-15 16:25 org-agenda-ignore-scheduled not taken into account in custom agenda blocks? Alan Schmitt
@ 2012-11-16  1:40 ` Eric Abrahamsen
  2012-11-20 15:36   ` Alan Schmitt
  2012-11-24 16:07 ` Bernt Hansen
  1 sibling, 1 reply; 9+ messages in thread
From: Eric Abrahamsen @ 2012-11-16  1:40 UTC (permalink / raw)
  To: emacs-orgmode

Alan Schmitt <alan.schmitt@polytechnique.org> writes:

> Hello,
>
> I'm implementing some of the ideas of the great norang page
> (http://doc.norang.ca/org-mode.html), but there is one thing that is
> failing me. I can see that "org-agenda-ignore-scheduled" work for the
> global todo list, but it does not seem to be working when using a custom
> block. For instance, using the following definition:
>
> #+BEGIN_SRC elisp
> (tags-todo "-WAITING-CANCELLED/!NEXT"
>            ((org-agenda-overriding-header "Next Tasks")
>             (org-agenda-skip-function 'bh/skip-projects-and-habits-and-single-tasks)
>             (org-agenda-todo-ignore-scheduled t)
>             (org-agenda-todo-ignore-deadlines t)
>             (org-agenda-todo-ignore-with-date t)
>             (org-tags-match-list-sublevels t)
>             (org-agenda-sorting-strategy
>              '(todo-state-down effort-up category-keep))))
> #+END_SRC
>
> I still see scheduled tasks.
>
> Is it supposed to be working or am I doing it wrong?

I can confirm that scheduled and deadlined TODOs still show up where
they shouldn't -- I tried putting the ignore statements both in the
individual block declarations, and in the declaration at the end of the
custom command. This is with org-version "7.9.2".

Seems like a bug!

Eric

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

* Re: org-agenda-ignore-scheduled not taken into account in custom agenda blocks?
  2012-11-16  1:40 ` Eric Abrahamsen
@ 2012-11-20 15:36   ` Alan Schmitt
  2012-11-20 16:12     ` Samuel Wales
  2012-11-24 16:11     ` Bernt Hansen
  0 siblings, 2 replies; 9+ messages in thread
From: Alan Schmitt @ 2012-11-20 15:36 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: emacs-orgmode

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> Alan Schmitt <alan.schmitt@polytechnique.org> writes:
>
>> Hello,
>>
>> I'm implementing some of the ideas of the great norang page
>> (http://doc.norang.ca/org-mode.html), but there is one thing that is
>> failing me. I can see that "org-agenda-ignore-scheduled" work for the
>> global todo list, but it does not seem to be working when using a custom
>> block. For instance, using the following definition:
>>
>> #+BEGIN_SRC elisp
>> (tags-todo "-WAITING-CANCELLED/!NEXT"
>>            ((org-agenda-overriding-header "Next Tasks")
>>             (org-agenda-skip-function 'bh/skip-projects-and-habits-and-single-tasks)
>>             (org-agenda-todo-ignore-scheduled t)
>>             (org-agenda-todo-ignore-deadlines t)
>>             (org-agenda-todo-ignore-with-date t)
>>             (org-tags-match-list-sublevels t)
>>             (org-agenda-sorting-strategy
>>              '(todo-state-down effort-up category-keep))))
>> #+END_SRC
>>
>> I still see scheduled tasks.
>>
>> Is it supposed to be working or am I doing it wrong?
>
> I can confirm that scheduled and deadlined TODOs still show up where
> they shouldn't -- I tried putting the ignore statements both in the
> individual block declarations, and in the declaration at the end of the
> custom command. This is with org-version "7.9.2".
>
> Seems like a bug!

I decided to dig into this, and it's not a bug. One should set:

(setq org-agenda-tags-todo-honor-ignore-options t)

The trick was that these blocks were tag searches.

According to the documentation:

Documentation:
Non-nil means honor todo-list ...ignore options also in tags-todo search.
The variables
   `org-agenda-todo-ignore-with-date',
   `org-agenda-todo-ignore-timestamp',
   `org-agenda-todo-ignore-scheduled',
   `org-agenda-todo-ignore-deadlines'
make the global TODO list skip entries that have time stamps of certain
kinds.  If this option is set, the same options will also apply for the
tags-todo search, which is the general tags/property matcher
restricted to unfinished TODO entries only.

Alan

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

* Re: org-agenda-ignore-scheduled not taken into account in custom agenda blocks?
  2012-11-20 15:36   ` Alan Schmitt
@ 2012-11-20 16:12     ` Samuel Wales
  2012-11-20 19:28       ` Alan Schmitt
  2012-11-24 16:11     ` Bernt Hansen
  1 sibling, 1 reply; 9+ messages in thread
From: Samuel Wales @ 2012-11-20 16:12 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: Eric Abrahamsen, emacs-orgmode

Partly to avoid trouble like this, I use the general search instead of
the specialized ones.

On 11/20/12, Alan Schmitt <alan.schmitt@polytechnique.org> wrote:
> I decided to dig into this, and it's not a bug. One should set:
>
> (setq org-agenda-tags-todo-honor-ignore-options t)
>
> The trick was that these blocks were tag searches.

Then the variable should not apply.  Bug?

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  ANYBODY
can get it.  There is no hope without action.

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

* Re: org-agenda-ignore-scheduled not taken into account in custom agenda blocks?
  2012-11-20 16:12     ` Samuel Wales
@ 2012-11-20 19:28       ` Alan Schmitt
  2012-11-20 20:21         ` Samuel Wales
  0 siblings, 1 reply; 9+ messages in thread
From: Alan Schmitt @ 2012-11-20 19:28 UTC (permalink / raw)
  To: Samuel Wales; +Cc: Eric Abrahamsen, emacs-orgmode

Samuel Wales <samologist@gmail.com> writes:

> Partly to avoid trouble like this, I use the general search instead of
> the specialized ones.

What are those general searches?

> On 11/20/12, Alan Schmitt <alan.schmitt@polytechnique.org> wrote:
>> I decided to dig into this, and it's not a bug. One should set:
>>
>> (setq org-agenda-tags-todo-honor-ignore-options t)
>>
>> The trick was that these blocks were tag searches.
>
> Then the variable should not apply.  Bug?

No: "todo" customization do not apply to "tag" searches, and a
"tag-todo" search is actually a "tag" search. The
org-agenda-tags-todo-honor-ignore-options variable says that "todo"
customizations should apply to "tag" searches.

Or I just misunderstood everything and got it to work by mistake ;-)

Alan

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

* Re: org-agenda-ignore-scheduled not taken into account in custom agenda blocks?
  2012-11-20 19:28       ` Alan Schmitt
@ 2012-11-20 20:21         ` Samuel Wales
  2012-11-21  7:30           ` Alan Schmitt
  0 siblings, 1 reply; 9+ messages in thread
From: Samuel Wales @ 2012-11-20 20:21 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: Eric Abrahamsen, emacs-orgmode

> Or I just misunderstood everything and got it to work by mistake ;-)

That is my guess.  :)

tags-todo is not a general tag search.

The manual shows the different search types.

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  ANYBODY
can get it.  There is no hope without action.

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

* Re: org-agenda-ignore-scheduled not taken into account in custom agenda blocks?
  2012-11-20 20:21         ` Samuel Wales
@ 2012-11-21  7:30           ` Alan Schmitt
  0 siblings, 0 replies; 9+ messages in thread
From: Alan Schmitt @ 2012-11-21  7:30 UTC (permalink / raw)
  To: Samuel Wales; +Cc: Eric Abrahamsen, emacs-orgmode

Samuel Wales <samologist@gmail.com> writes:

>> Or I just misunderstood everything and got it to work by mistake ;-)
>
> That is my guess.  :)
>
> tags-todo is not a general tag search.
>
> The manual shows the different search types.

If I'm reading org-agenda.el correctly, tags-todo is a tags search
restricted to todo items. In fact, if I had read the documentation for
org-agenda-todo-ignore-scheduled, it would have spared me much testing.
It says right there to use "org-agenda-tags-todo-honor-ignore-options".

#+BEGIN_QUOTE
org-agenda-todo-ignore-scheduled is a variable defined in `org-agenda.el'.
Its value is nil

Documentation:
Non-nil means, ignore some scheduled TODO items when making TODO list.
This applies when creating the global todo list.
Valid values are:

past     Don't show entries scheduled today or in the past.

future   Don't show entries scheduled in the future.
         The idea behind this is that by scheduling it, you don't want to
         think about it until the scheduled date.

all      Don't show any scheduled entries in the global todo list.
         The idea behind this is that by scheduling it, you have already
         "taken care" of this item.

t        Same as `all', for backward compatibility.

This variable can also have an integer as a value.  See
`org-agenda-todo-ignore-timestamp' for more details.

See also `org-agenda-todo-ignore-with-date'.
See also the variable `org-agenda-tags-todo-honor-ignore-options' if you want
to make his option also apply to the tags-todo list.
#+END_QUOTE

Alan

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

* Re: org-agenda-ignore-scheduled not taken into account in custom agenda blocks?
  2012-11-15 16:25 org-agenda-ignore-scheduled not taken into account in custom agenda blocks? Alan Schmitt
  2012-11-16  1:40 ` Eric Abrahamsen
@ 2012-11-24 16:07 ` Bernt Hansen
  1 sibling, 0 replies; 9+ messages in thread
From: Bernt Hansen @ 2012-11-24 16:07 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: emacs-orgmode

Alan Schmitt <alan.schmitt@polytechnique.org> writes:

> Hello,
>
> I'm implementing some of the ideas of the great norang page
> (http://doc.norang.ca/org-mode.html), but there is one thing that is
> failing me. I can see that "org-agenda-ignore-scheduled" work for the
> global todo list, but it does not seem to be working when using a custom
> block. For instance, using the following definition:
>
> #+BEGIN_SRC elisp
> (tags-todo "-WAITING-CANCELLED/!NEXT"
>            ((org-agenda-overriding-header "Next Tasks")
>             (org-agenda-skip-function 'bh/skip-projects-and-habits-and-single-tasks)
>             (org-agenda-todo-ignore-scheduled t)
>             (org-agenda-todo-ignore-deadlines t)
>             (org-agenda-todo-ignore-with-date t)
>             (org-tags-match-list-sublevels t)
>             (org-agenda-sorting-strategy
>              '(todo-state-down effort-up category-keep))))
> #+END_SRC
>
> I still see scheduled tasks.
>
> Is it supposed to be working or am I doing it wrong?

Hi Alan,

This works for me (as part of my custom agenda block)
I just created a new test project

--8<---------------cut here---------------start------------->8---
* TODO New test task
[2012-11-24 Sat 11:00]
** NEXT DO this next week
SCHEDULED: <2012-12-01 Sat>
[2012-11-24 Sat 11:00]
--8<---------------cut here---------------end--------------->8---

I tested it first without the NEXT task scheduled to next week and the
"DO this next week" is in the NEXT list.  After adding the SCHEDULED
date it is no longer on the NEXT list.  If I schedule it into the past
it only shows up on the daily agenda and not in the NEXT list.

Regards,
Bernt

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

* Re: org-agenda-ignore-scheduled not taken into account in custom agenda blocks?
  2012-11-20 15:36   ` Alan Schmitt
  2012-11-20 16:12     ` Samuel Wales
@ 2012-11-24 16:11     ` Bernt Hansen
  1 sibling, 0 replies; 9+ messages in thread
From: Bernt Hansen @ 2012-11-24 16:11 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: Eric Abrahamsen, emacs-orgmode

Alan Schmitt <alan.schmitt@polytechnique.org> writes:

> I decided to dig into this, and it's not a bug. One should set:
>
> (setq org-agenda-tags-todo-honor-ignore-options t)
>
> The trick was that these blocks were tag searches.

Ah yes I'd forgotten about this variable - it's been set for ages in my
configuration.  tags-todo agenda searches are TAGS searches restricted
to headings with non-done TODO states.  So you need this variable set to
ignore the scheduled tasks.

I'm glad you figured it out :)

Regards,
Bernt

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

end of thread, other threads:[~2012-11-24 16:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-15 16:25 org-agenda-ignore-scheduled not taken into account in custom agenda blocks? Alan Schmitt
2012-11-16  1:40 ` Eric Abrahamsen
2012-11-20 15:36   ` Alan Schmitt
2012-11-20 16:12     ` Samuel Wales
2012-11-20 19:28       ` Alan Schmitt
2012-11-20 20:21         ` Samuel Wales
2012-11-21  7:30           ` Alan Schmitt
2012-11-24 16:11     ` Bernt Hansen
2012-11-24 16:07 ` Bernt Hansen

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.