Browse Source

Merge branch 'maint'

Bastien Guerry 12 years ago
parent
commit
7e74b77487
1 changed files with 4 additions and 1 deletions
  1. 4 1
      lisp/org-agenda.el

+ 4 - 1
lisp/org-agenda.el

@@ -4386,7 +4386,10 @@ for a keyword.  A numeric prefix directly selects the Nth keyword in
       (org-compile-prefix-format 'todo)
       (org-set-sorting-strategy 'todo)
       (setq org-agenda-redo-command
-	    `(org-todo-list (or current-prefix-arg (quote ,arg))))
+	    `(org-todo-list (or (and (numberp current-prefix-arg) current-prefix-arg)
+				;; (and (stringp (quote ,arg)) (quote ,arg))
+				,org-select-this-todo-keyword
+				current-prefix-arg ,arg)))
       (setq files (org-agenda-files nil 'ifmode)
 	    rtnall nil)
       (while (setq file (pop files))