TAB should respect org-cycle-open-archived-trees
And shouldn't cycle visibility of archived trees by default.
This commit is contained in:
parent
54c7936a77
commit
e7b252f442
1 changed files with 9 additions and 7 deletions
|
@ -395,13 +395,15 @@ with `org-cycle')."
|
|||
(unless (eq this-command 'org-shifttab)
|
||||
(save-excursion
|
||||
(org-beginning-of-line)
|
||||
(when (org-at-heading-p)
|
||||
(when (or (not arg)
|
||||
(outline-invisible-p (line-end-position)))
|
||||
(outline-toggle-children)
|
||||
(unless (outline-invisible-p (line-end-position))
|
||||
(org-cycle-hide-drawers 'subtree))
|
||||
t)))))
|
||||
(when (and (org-at-heading-p)
|
||||
(or org-cycle-open-archived-trees
|
||||
(not (member org-archive-tag (org-get-tags))))
|
||||
(or (not arg)
|
||||
(outline-invisible-p (line-end-position))))
|
||||
(outline-toggle-children)
|
||||
(unless (outline-invisible-p (line-end-position))
|
||||
(org-cycle-hide-drawers 'subtree))
|
||||
t))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +org|remove-occur-highlights ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue