emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: Question about tracking TODO state changes and M-S-ENTER


From: Bernt Hansen
Subject: [Orgmode] Re: Question about tracking TODO state changes and M-S-ENTER
Date: Wed, 27 May 2009 17:13:21 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Carsten Dominik <address@hidden> writes:

> Therefore, just so that you hate it more (:-) I have also introduced
> yet another variable
> `org-treat-S-cursor-todo-seletion-as-state-change', and I will set it
> (personally) to nil.  Then I can use S-right to flip through states
> without taking notes, and C-c C-t to switch to a state with taking a
> note.
>
> I call this not inconsistency or a bug, I'd call it choice :-)

\o/

I'll use this right away!  Thanks Carsten!  Sometimes when creating a
subtask under another subtask that is in a PROJECT/WAITING/SOMEDAY state
the new task gets the same todo state keyword as the task above.
Changing the keyword to TODO prompts for a note which I want to avoid.
This will work great!

I've attached a patch that fixes a typo in the new variable name.

-Bernt

------------------------------------------------------------------------

>From dd2382a293a8980dbb23685568b31eab36ae5772 Mon Sep 17 00:00:00 2001
From: Bernt Hansen <address@hidden>
Date: Wed, 27 May 2009 17:11:15 -0400
Subject: [PATCH] Fix typo: seletion -> selection in variable name

---
This patch is available at git://git.norang.ca/org-mode.git for-carsten

 doc/org.texi   |    4 ++--
 lisp/ChangeLog |    4 ++--
 lisp/org.el    |    6 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index 5211fa1..61c0210 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -3195,14 +3195,14 @@ more information.
 
 @kindex address@hidden
 @kindex address@hidden
address@hidden org-treat-S-cursor-todo-seletion-as-state-change
address@hidden org-treat-S-cursor-todo-selection-as-state-change
 @item address@hidden
 @itemx address@hidden
 Select the following/preceding TODO state, similar to cycling.  Useful
 mostly if more than two TODO states are possible (@pxref{TODO
 extensions}).  See also @ref{Conflicts} for a discussion of the interaction
 with @code{shift-selection-mode}.  See also the variable
address@hidden
address@hidden
 @kindex C-c C-v
 @kindex C-c / t
 @cindex sparse tree, for TODO
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 39fd869..7ac6578 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,12 +1,12 @@
 2009-05-27  Carsten Dominik  <address@hidden>
 
        * org.el (org-treat-insert-todo-heading-as-state-change)
-       (org-treat-S-cursor-todo-seletion-as-state-change): New
+       (org-treat-S-cursor-todo-selection-as-state-change): New
        variables.
        (org-insert-todo-heading): Honor
        `org-treat-insert-todo-heading-as-state-change'.
        (org-shiftright, org-shiftleft): Honor
-       `org-treat-S-cursor-todo-seletion-as-state-change'.
+       `org-treat-S-cursor-todo-selection-as-state-change'.
        (org-inhibit-logging): New variable.
 
 2009-05-23  Carsten Dominik  <address@hidden>
diff --git a/lisp/org.el b/lisp/org.el
index 256b5b2..bc81a95 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -1825,7 +1825,7 @@ be inserted directly, and no logging will take place."
   :group 'org-todo
   :type 'boolean)
 
-(defcustom org-treat-S-cursor-todo-seletion-as-state-change t
+(defcustom org-treat-S-cursor-todo-selection-as-state-change t
   "Non-nil means, switching TODO states with S-cursor counts as state change.
 This is the default behavior.  However, setting this to nil allows a
 convenient way to select a TODO state and bypass any logging associated
@@ -14533,7 +14533,7 @@ Depending on context, this does one of the following:
    ((and (not (eq org-support-shift-select 'always))
         (org-on-heading-p))
     (let ((org-inhibit-logging
-          (not org-treat-S-cursor-todo-seletion-as-state-change)))
+          (not org-treat-S-cursor-todo-selection-as-state-change)))
       (org-call-with-arg 'org-todo 'right)))                  
    ((or (and org-support-shift-select
             (not (eq org-support-shift-select 'always))
@@ -14565,7 +14565,7 @@ Depending on context, this does one of the following:
    ((and (not (eq org-support-shift-select 'always))
         (org-on-heading-p))
     (let ((org-inhibit-logging
-          (not org-treat-S-cursor-todo-seletion-as-state-change)))
+          (not org-treat-S-cursor-todo-selection-as-state-change)))
       (org-call-with-arg 'org-todo 'left)))
    ((or (and org-support-shift-select
             (not (eq org-support-shift-select 'always))
-- 
1.6.3.9.g6345





reply via email to

[Prev in Thread] Current Thread [Next in Thread]