emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-todo-keywords prompt for note
@ 2009-09-01 15:47 Nathan Neff
  2009-09-01 16:33 ` Sebastian Rose
  2009-09-02 10:47 ` Carsten Dominik
  0 siblings, 2 replies; 5+ messages in thread
From: Nathan Neff @ 2009-09-01 15:47 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

When marking an item as DONE, I would like to be able to press "n"
if I want to leave a note, and press "d" to just mark the item as DONE.

I've tried using this trick:

(setq org-todo-keywords '(
(sequence "TODO(t)" "STARTED(s)" "|" "DONE(n@/@)" "DONE(d!)")


I also tried this:

(sequence "TODO(t)" "STARTED(s)" "|" "DONE(n@/@)")
(sequence "TODO(t)" "STARTED(s)" "|" "DONE(d!)")

But neither kludge would prompt me for a note when I press Ctrl-C Ctrl-T n

I realize this is picky, because I can manually insert a note before marking
an item as DONE.  I'm just wondering if anyone knows a way that two
shortcuts can be defined for the same TODO state, with one of the
shortcuts prompting for a note.

Thanks,
--Nate

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

* Re: org-todo-keywords prompt for note
  2009-09-01 15:47 org-todo-keywords prompt for note Nathan Neff
@ 2009-09-01 16:33 ` Sebastian Rose
  2009-09-01 16:38   ` Sebastian Rose
  2009-09-01 16:56   ` Sebastian Rose
  2009-09-02 10:47 ` Carsten Dominik
  1 sibling, 2 replies; 5+ messages in thread
From: Sebastian Rose @ 2009-09-01 16:33 UTC (permalink / raw)
  To: Nathan Neff; +Cc: emacs-orgmode

Nathan Neff <nathan.neff@gmail.com> writes:
> Hello,
>
> When marking an item as DONE, I would like to be able to press "n"
> if I want to leave a note, and press "d" to just mark the item as DONE.
>
> I've tried using this trick:
>
> (setq org-todo-keywords '(
> (sequence "TODO(t)" "STARTED(s)" "|" "DONE(n@/@)" "DONE(d!)")
>
>
> I also tried this:
>
> (sequence "TODO(t)" "STARTED(s)" "|" "DONE(n@/@)")
> (sequence "TODO(t)" "STARTED(s)" "|" "DONE(d!)")
>
> But neither kludge would prompt me for a note when I press Ctrl-C Ctrl-T n
>
> I realize this is picky, because I can manually insert a note before marking
> an item as DONE.  I'm just wondering if anyone knows a way that two
> shortcuts can be defined for the same TODO state, with one of the
> shortcuts prompting for a note.




(setq org-todo-keywords (quote ("TODO" "STARTED" "|" "DONE@")))

works here. Note, that org chooses the first letter of the todo keyword
in lowercase automatically if you press C-c C-t, so there's no need for
"TODO(t)" et al.



  Sebastian

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

* Re: org-todo-keywords prompt for note
  2009-09-01 16:33 ` Sebastian Rose
@ 2009-09-01 16:38   ` Sebastian Rose
  2009-09-01 16:56   ` Sebastian Rose
  1 sibling, 0 replies; 5+ messages in thread
From: Sebastian Rose @ 2009-09-01 16:38 UTC (permalink / raw)
  To: Nathan Neff; +Cc: emacs-orgmode

> Nathan Neff <nathan.neff@gmail.com> writes:
>> Hello,
>>
>> When marking an item as DONE, I would like to be able to press "n"
>> if I want to leave a note, and press "d" to just mark the item as DONE.
>>
>> I've tried using this trick:
>>
>> (setq org-todo-keywords '(
>> (sequence "TODO(t)" "STARTED(s)" "|" "DONE(n@/@)" "DONE(d!)")
>>
>>
>> I also tried this:
>>
>> (sequence "TODO(t)" "STARTED(s)" "|" "DONE(n@/@)")
>> (sequence "TODO(t)" "STARTED(s)" "|" "DONE(d!)")
>>
>> But neither kludge would prompt me for a note when I press Ctrl-C Ctrl-T n
>>
>> I realize this is picky, because I can manually insert a note before marking
>> an item as DONE.  I'm just wondering if anyone knows a way that two
>> shortcuts can be defined for the same TODO state, with one of the
>> shortcuts prompting for a note.
>
>
>
>
> (setq org-todo-keywords (quote ("TODO" "STARTED" "|" "DONE@")))
>
> works here. Note, that org chooses the first letter of the todo keyword
> in lowercase automatically if you press C-c C-t, so there's no need for
> "TODO(t)" et al.



I just found I use the trick including the keydefinition in my own setup
:) which is superfluous:


(setq org-todo-keywords (quote ("TODO" "STARTED" "|" "DONE" "CANCELED(c@)")))

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

* Re: org-todo-keywords prompt for note
  2009-09-01 16:33 ` Sebastian Rose
  2009-09-01 16:38   ` Sebastian Rose
@ 2009-09-01 16:56   ` Sebastian Rose
  1 sibling, 0 replies; 5+ messages in thread
From: Sebastian Rose @ 2009-09-01 16:56 UTC (permalink / raw)
  To: Nathan Neff; +Cc: emacs-orgmode

Hi Nathan,


Sorry for my typo (see below).

Sebastian Rose <sebastian_rose@gmx.de> writes:
> Nathan Neff <nathan.neff@gmail.com> writes:
>> Hello,
>>
>> When marking an item as DONE, I would like to be able to press "n"
>> if I want to leave a note, and press "d" to just mark the item as DONE.
>>
>> I've tried using this trick:
>>
>> (setq org-todo-keywords '(
>> (sequence "TODO(t)" "STARTED(s)" "|" "DONE(n@/@)" "DONE(d!)")
>>
>>
>> I also tried this:
>>
>> (sequence "TODO(t)" "STARTED(s)" "|" "DONE(n@/@)")
>> (sequence "TODO(t)" "STARTED(s)" "|" "DONE(d!)")
>>
>> But neither kludge would prompt me for a note when I press Ctrl-C Ctrl-T n
>>
>> I realize this is picky, because I can manually insert a note before marking
>> an item as DONE.  I'm just wondering if anyone knows a way that two
>> shortcuts can be defined for the same TODO state, with one of the
>> shortcuts prompting for a note.
>
>
>
>
> (setq org-todo-keywords (quote ("TODO" "STARTED" "|" "DONE@")))


Pardon me, this should be:

  (setq org-todo-keywords (quote ("TODO" "STARTED" "|" "DONE(@)")))



I found you'll have to close and open the Org file in question again to
make it work.



BTW: What's your value of the variable `org-todo-interpretation' ?
     Maybe add these lines to your setup:

     (setq org-todo-interpretation (quote sequence))
     (setq org-todo-keywords (quote ("TODO" "STARTED" "|" "DONE(@)")))


HTH

  Sebastian

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

* Re: org-todo-keywords prompt for note
  2009-09-01 15:47 org-todo-keywords prompt for note Nathan Neff
  2009-09-01 16:33 ` Sebastian Rose
@ 2009-09-02 10:47 ` Carsten Dominik
  1 sibling, 0 replies; 5+ messages in thread
From: Carsten Dominik @ 2009-09-02 10:47 UTC (permalink / raw)
  To: Nathan Neff; +Cc: emacs-orgmode


On Sep 1, 2009, at 5:47 PM, Nathan Neff wrote:

> Hello,
>
> When marking an item as DONE, I would like to be able to press "n"
> if I want to leave a note, and press "d" to just mark the item as  
> DONE.
>
> I've tried using this trick:
>
> (setq org-todo-keywords '(
> (sequence "TODO(t)" "STARTED(s)" "|" "DONE(n@/@)" "DONE(d!)")
>
>
> I also tried this:
>
> (sequence "TODO(t)" "STARTED(s)" "|" "DONE(n@/@)")
> (sequence "TODO(t)" "STARTED(s)" "|" "DONE(d!)")
>
> But neither kludge would prompt me for a note when I press Ctrl-C  
> Ctrl-T n
>
> I realize this is picky, because I can manually insert a note before  
> marking
> an item as DONE.  I'm just wondering if anyone knows a way that two
> shortcuts can be defined for the same TODO state, with one of the
> shortcuts prompting for a note.


Hi Nathan,

I can think of two solutions:

1. Just follow Org into the notes buffer, but kill it with `C-c C-k'.

2. (setq org-treat-S-cursor-todo-selection-as-state-change nil)
    and then use S-right to switch states when you don't want notes to  
be taken.
    Unfortunately that does not work from the agenda......

HTH

- Carsten


>
> Thanks,
> --Nate
>
>
> _______________________________________________
> 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] 5+ messages in thread

end of thread, other threads:[~2009-09-02 10:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-01 15:47 org-todo-keywords prompt for note Nathan Neff
2009-09-01 16:33 ` Sebastian Rose
2009-09-01 16:38   ` Sebastian Rose
2009-09-01 16:56   ` Sebastian Rose
2009-09-02 10:47 ` Carsten Dominik

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