mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-06 11:55:48 +00:00
Drop docstrings from cl-defsubst produced inline bodies (Bug#27748)
* lisp/emacs-lisp/cl-macs.el (cl-defsubst): Use macroexp-parse-progn to drop the docstring. Add a simple docstring to the compiler-macro.
This commit is contained in:
parent
7553e0f490
commit
bc5d96a0b2
@ -2503,8 +2503,9 @@ The function's arguments should be treated as immutable.
|
||||
,(if (memq '&key args)
|
||||
`(&whole cl-whole &cl-quote ,@args)
|
||||
(cons '&cl-quote args))
|
||||
,(format "compiler-macro for inlining `%s'." name)
|
||||
(cl--defsubst-expand
|
||||
',argns '(cl-block ,name ,@body)
|
||||
',argns '(cl-block ,name ,@(cdr (macroexp-parse-body body)))
|
||||
;; We used to pass `simple' as
|
||||
;; (not (or unsafe (cl-expr-access-order pbody argns)))
|
||||
;; But this is much too simplistic since it
|
||||
|
Loading…
Reference in New Issue
Block a user