emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Adding user-defined task state for agenda
@ 2015-10-29 15:37 Peter Davis
  2015-10-29 15:50 ` Kyle Meyer
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Davis @ 2015-10-29 15:37 UTC (permalink / raw)
  To: emacs-orgmode


I'm trying to add a NOTE state so that I can use agenda to quickly view a list of notes that I've embedded in various documents. I
have

(setq org-todo-keywords
      '((sequence "NOTE" "APPT" "TODO" "FEEDBACK" "VERIFY" "|" "DONE" "DELEGATED" "CANCELLED")))

in my .emacs, and I put

** NOTE This is an example of a note.

But when I view the agenda, I get this:

Global list of TODO items of type: NOTE
Available with `N r': (0)[ALL] (1)TODO (2)DONE (3)NOTE (4)APPT (5)CANCELLED (6)FEEDBACK (7)VERIFY (8)DELEGATED

and that's all. I can see that there's a NOTE state, but nothing shows up in the list.

Have I overlooked something?

Thank you!

-pd

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

* Re: Adding user-defined task state for agenda
  2015-10-29 15:37 Peter Davis
@ 2015-10-29 15:50 ` Kyle Meyer
  0 siblings, 0 replies; 9+ messages in thread
From: Kyle Meyer @ 2015-10-29 15:50 UTC (permalink / raw)
  To: Peter Davis; +Cc: emacs-orgmode

Peter Davis <pfd@pfdstudio.com> writes:

> I'm trying to add a NOTE state so that I can use agenda to quickly view a list of notes that I've embedded in various documents. I
> have
>
> (setq org-todo-keywords
>       '((sequence "NOTE" "APPT" "TODO" "FEEDBACK" "VERIFY" "|" "DONE" "DELEGATED" "CANCELLED")))
>
> in my .emacs, and I put
>
> ** NOTE This is an example of a note.

Is the Org heading above in one of your agenda files or in a file that
you've restricted the agenda to (e.g, with "<")?

--
Kyle

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

* Re: Adding user-defined task state for agenda
@ 2015-10-29 16:04 Peter Davis
  2015-10-29 16:28 ` Kyle Meyer
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Davis @ 2015-10-29 16:04 UTC (permalink / raw)
  To: Kyle Meyer; +Cc: emacs-orgmode

Kyle Meyer <kyle@kyleam.com> writes:

> Peter Davis <pfd@pfdstudio.com> writes:
>
>> I'm trying to add a NOTE state so that I can use agenda to quickly view a list of notes that I've embedded in various documents. I
>> have
>>
>> (setq org-todo-keywords
>>       '((sequence "NOTE" "APPT" "TODO" "FEEDBACK" "VERIFY" "|" "DONE" "DELEGATED" "CANCELLED")))
>>
>> in my .emacs, and I put
>>
>> ** NOTE This is an example of a note.
>
> Is the Org heading above in one of your agenda files or in a file that
> you've restricted the agenda to (e.g, with "<")?

Sorry, yes, the heading is in an agenda file. I can see TODOs and DONEs in that file.

Thanks,
-pd

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

* Re: Adding user-defined task state for agenda
  2015-10-29 16:04 Adding user-defined task state for agenda Peter Davis
@ 2015-10-29 16:28 ` Kyle Meyer
  0 siblings, 0 replies; 9+ messages in thread
From: Kyle Meyer @ 2015-10-29 16:28 UTC (permalink / raw)
  To: Peter Davis; +Cc: emacs-orgmode

Peter Davis <pfd@pfdstudio.com> writes:

> Kyle Meyer <kyle@kyleam.com> writes:
>
>> Peter Davis <pfd@pfdstudio.com> writes:
>>
>>> I'm trying to add a NOTE state so that I can use agenda to quickly view a list of notes that I've embedded in various documents. I
>>> have
>>>
>>> (setq org-todo-keywords
>>>       '((sequence "NOTE" "APPT" "TODO" "FEEDBACK" "VERIFY" "|" "DONE" "DELEGATED" "CANCELLED")))
>>>
>>> in my .emacs, and I put
>>>
>>> ** NOTE This is an example of a note.
>>
>> Is the Org heading above in one of your agenda files or in a file that
>> you've restricted the agenda to (e.g, with "<")?
>
> Sorry, yes, the heading is in an agenda file. I can see TODOs and DONEs in that file.

Hmm.. when I set org-todo-keywords to the value above, headings with the
NOTE keyword show up.  Can you reproduce it with emacs -Q and a minimal
Org configuration?  What version of Org are you using?

--
Kyle

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

* Re: Adding user-defined task state for agenda
@ 2015-10-29 17:18 Peter Davis
  2015-10-29 18:53 ` Kyle Meyer
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Davis @ 2015-10-29 17:18 UTC (permalink / raw)
  To: Kyle Meyer; +Cc: emacs-orgmode

Kyle Meyer <kyle@kyleam.com> writes:

> Peter Davis <pfd@pfdstudio.com> writes:
>
>> Kyle Meyer <kyle@kyleam.com> writes:
>>
>>> Peter Davis <pfd@pfdstudio.com> writes:
>>>
>>>> I'm trying to add a NOTE state so that I can use agenda to quickly view a list of notes that I've embedded in various documents. I
>>>> have
>>>>
>>>> (setq org-todo-keywords
>>>>       '((sequence "NOTE" "APPT" "TODO" "FEEDBACK" "VERIFY" "|" "DONE" "DELEGATED" "CANCELLED")))
>>>>
>>>> in my .emacs, and I put
>>>>
>>>> ** NOTE This is an example of a note.
>>>
>>> Is the Org heading above in one of your agenda files or in a file that
>>> you've restricted the agenda to (e.g, with "<")?
>>
>> Sorry, yes, the heading is in an agenda file. I can see TODOs and DONEs in that file.
>
> Hmm.. when I set org-todo-keywords to the value above, headings with the
> NOTE keyword show up.  Can you reproduce it with emacs -Q and a minimal
> Org configuration?

I'm not sure how to do that.

> What version of Org are you using?

8.3.2

Thanks,
-pd

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

* Re: Adding user-defined task state for agenda
  2015-10-29 17:18 Peter Davis
@ 2015-10-29 18:53 ` Kyle Meyer
  0 siblings, 0 replies; 9+ messages in thread
From: Kyle Meyer @ 2015-10-29 18:53 UTC (permalink / raw)
  To: Peter Davis; +Cc: emacs-orgmode

Peter Davis <pfd@pfdstudio.com> writes:

[...]

>>  Can you reproduce it with emacs -Q and a minimal Org configuration?
>
> I'm not sure how to do that.

You can put something like

    (add-to-list 'load-path "/path/to/your/org-mode/lisp/")
    (require 'org)

    (setq org-todo-keywords
          '((sequence "NOTE" "APPT" "TODO" "FEEDBACK" "VERIFY"
                      "|" "DONE" "DELEGATED" "CANCELLED")))

    (setq org-agenda-files '("/tmp/test.org"))

in a file, say org-minconfig.el.

And something like

    * NOTE h1

    * TODO h2

in /tmp/test.org.

Then, in the same directory as org-minconfig.el, start emacs with

    $ emacs -Q -l org-minconfig.el --visit /tmp/test.org

and see if running "M-x org-agenda T NOTE" lists the NOTE heading.

--
Kyle

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

* Re: Adding user-defined task state for agenda
@ 2015-10-29 19:19 Peter Davis
  2015-10-29 19:49 ` Kyle Meyer
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Davis @ 2015-10-29 19:19 UTC (permalink / raw)
  To: Kyle Meyer; +Cc: emacs-orgmode

Kyle Meyer <kyle@kyleam.com> writes:

> Peter Davis <pfd@pfdstudio.com> writes:
>
> [...]
>
>>>  Can you reproduce it with emacs -Q and a minimal Org configuration?
>>
>> I'm not sure how to do that.
>
> You can put something like
>
>     (add-to-list 'load-path "/path/to/your/org-mode/lisp/")
>     (require 'org)
>
>     (setq org-todo-keywords
>           '((sequence "NOTE" "APPT" "TODO" "FEEDBACK" "VERIFY"
>                       "|" "DONE" "DELEGATED" "CANCELLED")))
>
>     (setq org-agenda-files '("/tmp/test.org"))
>
> in a file, say org-minconfig.el.
>
> And something like
>
>     * NOTE h1
>
>     * TODO h2
>
> in /tmp/test.org.
>
> Then, in the same directory as org-minconfig.el, start emacs with
>
>     $ emacs -Q -l org-minconfig.el --visit /tmp/test.org
>
> and see if running "M-x org-agenda T NOTE" lists the NOTE heading.


Hmmm. It worked in the minimal case, but still doesn't work in my normal environment.

-pd

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

* Re: Adding user-defined task state for agenda
  2015-10-29 19:19 Peter Davis
@ 2015-10-29 19:49 ` Kyle Meyer
  0 siblings, 0 replies; 9+ messages in thread
From: Kyle Meyer @ 2015-10-29 19:49 UTC (permalink / raw)
  To: Peter Davis; +Cc: emacs-orgmode

Peter Davis <pfd@pfdstudio.com> writes:

[...]

> Hmmm. It worked in the minimal case, but still doesn't work in my
> normal environment.

Well that gives you something to go on.  I'd recommend looking for parts
of your normal Org configuration that seem like they could affect this
and dumping small bits into the minimal config from above to see if any
result in NOTE not being listed.

  $ emacs -Q -l <minconfig> --visit /tmp/test.org -f org-todo-list   

Or, if nothing stands out to you as suspicious, you could use a binary
search approach, similar to what git bisect does.  But the details of
doing that would depend on how your config files are organized.

--
Kyle

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

* Re: Adding user-defined task state for agenda
@ 2015-10-29 20:17 Peter Davis
  0 siblings, 0 replies; 9+ messages in thread
From: Peter Davis @ 2015-10-29 20:17 UTC (permalink / raw)
  To: Kyle Meyer; +Cc: emacs-orgmode

Kyle Meyer <kyle@kyleam.com> writes:

> Peter Davis <pfd@pfdstudio.com> writes:
>
> [...]
>
>> Hmmm. It worked in the minimal case, but still doesn't work in my
>> normal environment.
>
> Well that gives you something to go on.  I'd recommend looking for parts
> of your normal Org configuration that seem like they could affect this
> and dumping small bits into the minimal config from above to see if any
> result in NOTE not being listed.
>
>   $ emacs -Q -l <minconfig> --visit /tmp/test.org -f org-todo-list   
>
> Or, if nothing stands out to you as suspicious, you could use a binary
> search approach, similar to what git bisect does.  But the details of
> doing that would depend on how your config files are organized.

Thanks, Kyle. I just tried saving one of my "real" org files as test.org, and repeated the experiment with the minimal config, and
it FAILED ... the NOTE headings did not show up.

I also tried saving the simple test.org file in my regular org files folder, and it FAILED again.

So I can't isolate either the emacs setup file or the org file itself.

-pd

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

end of thread, other threads:[~2015-10-29 20:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-29 16:04 Adding user-defined task state for agenda Peter Davis
2015-10-29 16:28 ` Kyle Meyer
  -- strict thread matches above, loose matches on Subject: below --
2015-10-29 20:17 Peter Davis
2015-10-29 19:19 Peter Davis
2015-10-29 19:49 ` Kyle Meyer
2015-10-29 17:18 Peter Davis
2015-10-29 18:53 ` Kyle Meyer
2015-10-29 15:37 Peter Davis
2015-10-29 15:50 ` Kyle Meyer

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