瀏覽代碼

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