summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2017-07-18 13:24:32 -0400
committerKyle Meyer <kyle@kyleam.com>2017-07-18 13:24:32 -0400
commit8ed27480aa0f1bb00034e13a1067115212520b9d (patch)
treebda4106860a8f3c9f08de07dd9b8d123d406ce18
parent404ac42ee51f0ac0d9cfb8fbefaefbbe96c61017 (diff)
downloadorg-mode-8ed27480aa0f1bb00034e13a1067115212520b9d.tar.gz
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.
-rw-r--r--lisp/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index eaa85dd..1d1df70 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -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)