Explorar o código

Make `C-c / t' search for all TODO keywords, `C-c / T' for a specific one

Carsten Dominik %!s(int64=15) %!d(string=hai) anos
pai
achega
d087351f37
Modificáronse 2 ficheiros con 10 adicións e 2 borrados
  1. 5 0
      lisp/ChangeLog
  2. 5 2
      lisp/org.el

+ 5 - 0
lisp/ChangeLog

@@ -1,3 +1,8 @@
+2010-05-09  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* org.el (org-sparse-tree): Make `C-c / t' search for all TODO
+	keywords, and `C-c / T' for a specific one.
+
 2010-05-08  Carsten Dominik  <carsten.dominik@gmail.com>
 2010-05-08  Carsten Dominik  <carsten.dominik@gmail.com>
 
 
 	* org.el (org-mode): Fix comment syntax settings.
 	* org.el (org-mode): Fix comment syntax settings.

+ 5 - 2
lisp/org.el

@@ -11402,7 +11402,8 @@ POS may also be a marker."
 This command can create sparse trees.  You first need to select the type
 This command can create sparse trees.  You first need to select the type
 of match used to create the tree:
 of match used to create the tree:
 
 
-t      Show entries with a specific TODO keyword.
+t      Show all TODO entries.
+T      Show entries with a specific TODO keyword.
 m      Show entries selected by a tags/property match.
 m      Show entries selected by a tags/property match.
 p      Enter a property name and its value (both with completion on existing
 p      Enter a property name and its value (both with completion on existing
        names/values) and show entries with that property.
        names/values) and show entries with that property.
@@ -11412,7 +11413,7 @@ b      Show deadlines and scheduled items before a date.
 a      Show deadlines and scheduled items after a date."
 a      Show deadlines and scheduled items after a date."
   (interactive "P")
   (interactive "P")
   (let (ans kwd value)
   (let (ans kwd value)
-    (message "Sparse tree: [/]regexp [t]odo-kwd [m]atch [p]roperty [d]eadlines [b]efore-date [a]fter-date")
+    (message "Sparse tree: [/]regexp [t]odo [T]odo-kwd [m]atch [p]roperty [d]eadlines\n             [b]efore-date [a]fter-date")
     (setq ans (read-char-exclusive))
     (setq ans (read-char-exclusive))
     (cond
     (cond
      ((equal ans ?d)
      ((equal ans ?d)
@@ -11422,6 +11423,8 @@ a      Show deadlines and scheduled items after a date."
      ((equal ans ?a)
      ((equal ans ?a)
       (call-interactively 'org-check-after-date))
       (call-interactively 'org-check-after-date))
      ((equal ans ?t)
      ((equal ans ?t)
+      (org-show-todo-tree nil))
+     ((equal ans ?T)
       (org-show-todo-tree '(4)))
       (org-show-todo-tree '(4)))
      ((member ans '(?T ?m))
      ((member ans '(?T ?m))
       (call-interactively 'org-match-sparse-tree))
       (call-interactively 'org-match-sparse-tree))