summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2020-05-09 19:10:47 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2020-05-09 19:10:47 +0200
commite73732f14a817f7ccfa525403a470d91c2d26167 (patch)
tree2da770c2ff51f104425ecc81e246270ae813548f
parent92bc33287e30ad3db47e807bfb81cf59124cac14 (diff)
downloadorg-mode-e73732f14a817f7ccfa525403a470d91c2d26167.tar.gz
compat: Silence byte-compiler
* lisp/org-compat.el (org-cycle-hide-drawers): Ignore optional argument.
-rw-r--r--lisp/org-compat.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/org-compat.el b/lisp/org-compat.el
index 6159d5a..5344337 100644
--- a/lisp/org-compat.el
+++ b/lisp/org-compat.el
@@ -663,11 +663,10 @@ region as a drawer without further ado."
(when (invisible-p (max (1- (point)) (point-min)))
(goto-char post)))))))
-(defun org-cycle-hide-drawers (state &optional exceptions)
+(defun org-cycle-hide-drawers (state &optional _)
"Re-hide all drawers after a visibility state change.
STATE should be one of the symbols listed in the docstring of
-`org-cycle-hook'. When non-nil, optional argument EXCEPTIONS is
-a list of strings specifying which drawers should not be hidden."
+`org-cycle-hook'."
(declare (obsolete "use `org-hide-drawer' instead." "Org 9.4"))
(when (and (derived-mode-p 'org-mode)
(not (memq state '(overview folded contents))))