]> git.eshelyaron.com Git - emacs.git/commit
.elc format: Record lambdas' doc strings lazily, not inline
authorAlan Mackenzie <acm@muc.de>
Sun, 26 Nov 2023 12:25:30 +0000 (12:25 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 26 Nov 2023 12:25:30 +0000 (12:25 +0000)
commit6a01a1a856f859e1cdb593e2cc0833b844b077be
treedc3cea0c00a9cd759b9e7c2a5025dd49be8961dd
parente5a9f3371d15a0d0e35178c26caf32f76ff83ade
.elc format: Record lambdas' doc strings lazily, not inline

Also refactor the pertinent part of bytecomp.el.

* lisp/emacs-lisp/bytecomp.el (byte-compile-output-file-form):
Use byte-compile-output-docform for all forms, not just those
with doc strings.
(byte-compile--output-docform-recurse): New function extracted
from byte-compile-output-docform.  This function recurses on
functions contained in the constants vector.
(byte-compile-output-docform): Extract parameter DOCINDEX from
the INFO list.  Add parameter CVECINDEX, the index of the
constants vector in FORM.
(byte-compile-file-form-defmumble): Several detailed
refactorings.  Call byte-compile-output-docform with the new
interface.
(byte-compile-output-as-comment): On exit, leave point after
the inserted text.  No longer assume that the output is being
inserted at the end of the buffer.
lisp/emacs-lisp/bytecomp.el