소스 검색

Fix a bug in org-choose.el

Carsten Dominik 16 년 전
부모
커밋
6296225ac6
2개의 변경된 파일10개의 추가작업 그리고 3개의 파일을 삭제
  1. 6 0
      contrib/ChangeLog
  2. 4 3
      contrib/lisp/org-choose.el

+ 6 - 0
contrib/ChangeLog

@@ -1,3 +1,9 @@
+2009-02-10  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* lisp/org-choose.el (org-choose-get-fn-map-group): Call
+	`org-up-heading-all' instead of `outline-up-heading-all', which
+	does not exist.
+
 2009-02-04  Carsten Dominik  <carsten.dominik@gmail.com>
 
 	* lisp/org-depend.el (org-depend-act-on-sibling): New macro.

+ 4 - 3
contrib/lisp/org-choose.el

@@ -386,9 +386,10 @@ setting was changed."
    
    #'(lambda (fn)
 	(save-excursion
-	   (outline-up-heading-all 1)
-	   (save-restriction
-	      (org-map-entries fn nil 'tree)))))
+	  (unless (org-up-heading-safe)
+	    (error "Chosing is only supported between siblings in a tree, not on top level"))
+	  (save-restriction
+	    (org-map-entries fn nil 'tree)))))
 
 ;;;_  . org-choose-get-highest-mark-index