mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 21:37:50 +00:00
compat: Silence byte-compiler
* lisp/org-compat.el (org-cycle-hide-drawers): Ignore optional argument.
This commit is contained in:
parent
92bc33287e
commit
e73732f14a
|
@ -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))))
|
||||
|
|
Loading…
Reference in a new issue