mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Remove redundant def-setting! docstrings
def-setting! will now grab the autodef's docstring if it has an :obsolete property defined.
This commit is contained in:
@ -392,11 +392,17 @@ Do not use this for configuring Doom core."
|
||||
(declare (indent defun) (doc-string 3))
|
||||
(or (keywordp keyword)
|
||||
(signal 'wrong-type-argument (list 'keywordp keyword)))
|
||||
(unless (stringp docstring)
|
||||
(push docstring forms)
|
||||
(setq docstring nil))
|
||||
(let ((alias (plist-get forms :obsolete)))
|
||||
(when alias
|
||||
(setq forms (plist-put forms :obsolete 'nil)))
|
||||
`(fset ',(intern (format "doom--set%s" keyword))
|
||||
(lambda ,arglist ,docstring
|
||||
(lambda ,arglist
|
||||
,(if (and (not docstring) (fboundp alias))
|
||||
(documentation alias t)
|
||||
docstring)
|
||||
(prog1 (progn ,@forms)
|
||||
,(when alias
|
||||
`(unless noninteractive
|
||||
|
Reference in New Issue
Block a user