forked from mirrors/org-mode
org-cycle-hide-drawers: Remove an unnecessary state check
* lisp/org.el (org-cycle-hide-drawers): Don't check whether STATE is `contents' within the `when' body because the `when' condition will not pass in this case.
This commit is contained in:
parent
404ac42ee5
commit
8ed27480aa
|
@ -7322,7 +7322,7 @@ specifying which drawers should not be hidden."
|
|||
(when (and (derived-mode-p 'org-mode)
|
||||
(not (memq state '(overview folded contents))))
|
||||
(save-excursion
|
||||
(let* ((globalp (memq state '(contents all)))
|
||||
(let* ((globalp (eq state 'all))
|
||||
(beg (if globalp (point-min) (point)))
|
||||
(end (if globalp (point-max)
|
||||
(if (eq state 'children)
|
||||
|
|
Loading…
Reference in New Issue