mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-24 06:20:43 -08: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue