소스 검색

Don't try to hide drawers within subtrees, it slows cycling down.

* org.el (org-cycle-internal-local): Don't try to hide drawers
within subtrees in this function, it slows cycling down.

This comments the change made in commit
bb28480169558a183fab2330476a49b4fb1aec46

Thanks to Marcel Van der Boom for reporting this.
Bastien Guerry 13 년 전
부모
커밋
6ba1d35f64
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      lisp/org.el

+ 5 - 2
lisp/org.el

@@ -6312,8 +6312,11 @@ in special contexts.
 	  (org-list-set-item-visibility (point-at-bol) struct 'children)
 	(org-show-entry)
 	(org-with-limited-levels (show-children))
-	(when (memq 'org-cycle-hide-drawers org-cycle-hook)
-	  (org-cycle-hide-drawers 'subtree))
+	;; FIXME: This slows down the func way too much.
+	;; How keep drawers hidden in subtree anyway?
+	;; (when (memq 'org-cycle-hide-drawers org-cycle-hook)
+	;;   (org-cycle-hide-drawers 'subtree))
+
 	;; Fold every list in subtree to top-level items.
 	(when (eq org-cycle-include-plain-lists 'integrate)
 	  (save-excursion