From f784ed3cbdc16b80876b85da0fe97e548929863e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 24 Jun 2018 20:00:31 +0200 Subject: [PATCH] Update set-docset! documentation And remove redundant documentation for obsolete :docset. --- modules/feature/lookup/autoload/docsets.el | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/modules/feature/lookup/autoload/docsets.el b/modules/feature/lookup/autoload/docsets.el index 20996146c..6293b6f29 100644 --- a/modules/feature/lookup/autoload/docsets.el +++ b/modules/feature/lookup/autoload/docsets.el @@ -9,9 +9,13 @@ ;;;###autodef (defun set-docset! (modes &rest docsets) - "Registers a list of DOCSETS (strings) for MODES (either one major mode + "Registers a list of DOCSETS (strings) for MODES (either one major/minor mode symbol or a list of them). +If MODES is a minor mode, you can use :add or :remove as the first element of +DOCSETS, to instruct it to append (or remove) those from the docsets already set +by a major-mode, if any. + Used by `+lookup/in-docsets' and `+lookup/documentation'." (declare (indent defun)) (dolist (mode (doom-enlist modes)) @@ -33,14 +37,6 @@ Used by `+lookup/in-docsets' and `+lookup/documentation'." ;; FIXME obsolete :docset ;;;###autoload (def-setting! :docset (modes &rest docsets) - "Registers a list of DOCSETS (strings) for MODES (either one major mode -symbol or a list of them). - -If MODES is a minor mode, you can use :add or :remove as the first element of -DOCSETS, to instruct it to append (or remove) those from the docsets already set -by a major-mode, if any. - -Used by `+lookup/in-docsets' and `+lookup/documentation'." :obsolete set-docset! `(set-docset! ,modes ,@docsets))