Просмотр исходного кода

Column view: Fix bug when editing TODO field.

Since we now have org-use-fast-todo-selection set by default,
there is no reason for special treatment of the prefix argument
anymore.

Reported by Wanrong Lin.
Carsten Dominik 17 лет назад
Родитель
Сommit
be7d0c4a6c
3 измененных файлов с 12 добавлено и 11 удалено
  1. 6 0
      lisp/ChangeLog
  2. 2 5
      lisp/org-colview-xemacs.el
  3. 4 6
      lisp/org-colview.el

+ 6 - 0
lisp/ChangeLog

@@ -1,5 +1,11 @@
 2009-02-20  Carsten Dominik  <carsten.dominik@gmail.com>
 2009-02-20  Carsten Dominik  <carsten.dominik@gmail.com>
 
 
+	* org-colview-xemacs.el (org-columns-edit-value): No special
+	treatment for `org-todo' prefix.
+
+	* org-colview.el (org-columns-edit-value): No special treatment
+	for `org-todo' prefix.
+
 	* org-remember.el (org-remember-apply-template): Use
 	* org-remember.el (org-remember-apply-template): Use
 	`org-completing-read-no-ido'.
 	`org-completing-read-no-ido'.
 
 

+ 2 - 5
lisp/org-colview-xemacs.el

@@ -576,8 +576,7 @@ If yes, throw an error indicating that changing it does not make sense."
 Where possible, use the standard interface for changing this line."
 Where possible, use the standard interface for changing this line."
   (interactive)
   (interactive)
   (org-columns-check-computed)
   (org-columns-check-computed)
-  (let* ((external-key key)
-	 (col (current-column))
+  (let* ((col (current-column))
 	 (key (or key (get-char-property (point) 'org-columns-key)))
 	 (key (or key (get-char-property (point) 'org-columns-key)))
 	 (value (get-char-property (point) 'org-columns-value))
 	 (value (get-char-property (point) 'org-columns-value))
 	 (bol (point-at-bol)) (eol (point-at-eol))
 	 (bol (point-at-bol)) (eol (point-at-eol))
@@ -599,9 +598,7 @@ Where possible, use the standard interface for changing this line."
      ((equal key "TODO")
      ((equal key "TODO")
       (setq eval '(org-with-point-at
       (setq eval '(org-with-point-at
 		   pom
 		   pom
-		   (let ((current-prefix-arg
-			  (if external-key current-prefix-arg '(4))))
-		     (call-interactively 'org-todo)))))
+		   (call-interactively 'org-todo))))
      ((equal key "PRIORITY")
      ((equal key "PRIORITY")
       (setq eval '(org-with-point-at pom
       (setq eval '(org-with-point-at pom
 				     (call-interactively 'org-priority))))
 				     (call-interactively 'org-priority))))

+ 4 - 6
lisp/org-colview.el

@@ -383,8 +383,7 @@ If yes, throw an error indicating that changing it does not make sense."
 Where possible, use the standard interface for changing this line."
 Where possible, use the standard interface for changing this line."
   (interactive)
   (interactive)
   (org-columns-check-computed)
   (org-columns-check-computed)
-  (let* ((external-key key)
-	 (col (current-column))
+  (let* ((col (current-column))
 	 (key (or key (get-char-property (point) 'org-columns-key)))
 	 (key (or key (get-char-property (point) 'org-columns-key)))
 	 (value (get-char-property (point) 'org-columns-value))
 	 (value (get-char-property (point) 'org-columns-value))
 	 (bol (point-at-bol)) (eol (point-at-eol))
 	 (bol (point-at-bol)) (eol (point-at-eol))
@@ -405,10 +404,9 @@ Where possible, use the standard interface for changing this line."
       (setq eval '(org-with-point-at pom
       (setq eval '(org-with-point-at pom
 		    (org-edit-headline))))
 		    (org-edit-headline))))
      ((equal key "TODO")
      ((equal key "TODO")
-      (setq eval '(org-with-point-at pom
-		    (let ((current-prefix-arg
-			   (if external-key current-prefix-arg '(4))))
-		      (call-interactively 'org-todo)))))
+      (setq eval '(org-with-point-at
+		   pom
+		   (call-interactively 'org-todo))))
      ((equal key "PRIORITY")
      ((equal key "PRIORITY")
       (setq eval '(org-with-point-at pom
       (setq eval '(org-with-point-at pom
 		    (call-interactively 'org-priority))))
 		    (call-interactively 'org-priority))))