Преглед на файлове

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