Make TAB respect org-cycle-separator-lines #800
outline-toggle-children and org-cycle-hide-drawers didn't respect org-cycle-separator-lines.
This commit is contained in:
parent
90fa4a8c37
commit
5663778e36
1 changed files with 10 additions and 9 deletions
|
@ -398,15 +398,16 @@ with `org-cycle')."
|
||||||
(unless (eq this-command 'org-shifttab)
|
(unless (eq this-command 'org-shifttab)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(org-beginning-of-line)
|
(org-beginning-of-line)
|
||||||
(when (and (org-at-heading-p)
|
(let (invisible-p)
|
||||||
(or org-cycle-open-archived-trees
|
(when (and (org-at-heading-p)
|
||||||
(not (member org-archive-tag (org-get-tags))))
|
(or org-cycle-open-archived-trees
|
||||||
(or (not arg)
|
(not (member org-archive-tag (org-get-tags))))
|
||||||
(outline-invisible-p (line-end-position))))
|
(or (not arg)
|
||||||
(outline-toggle-children)
|
(setq invisible-p (outline-invisible-p (line-end-position)))))
|
||||||
(unless (outline-invisible-p (line-end-position))
|
(unless invisible-p
|
||||||
(org-cycle-hide-drawers 'subtree))
|
(setq org-cycle-subtree-status 'subtree))
|
||||||
t))))
|
(org-cycle-internal-local)
|
||||||
|
t)))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +org|remove-occur-highlights ()
|
(defun +org|remove-occur-highlights ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue