]> git.eshelyaron.com Git - emacs.git/commit
Make force-load-doc-strings work again
authorMattias Engdegård <mattiase@acm.org>
Sat, 6 Aug 2022 11:38:12 +0000 (13:38 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sun, 7 Aug 2022 08:25:03 +0000 (10:25 +0200)
commitc46863d9bb8493d0d15030df863d78b8f1738b2e
treef395533ce64405e1e028a25261b844ec4b88b232
parent6fd4ab250b690736e706245106f396cc93f3f5f0
Make force-load-doc-strings work again

When load-force-doc-strings is true, read (#$ . POS) as the (unibyte)
string referred to.  This feature was lost by mistake in the recent
nonrecursive reader rewrite.

Noticed by Stefan Monnier.

* src/lread.c (get_lazy_string): New function (code mostly recycled
from an old version).
(read0): Detect (#$ . FIXNUM) and retrieve the string if appropriate.
* test/src/lread-resources/lazydoc.el:
* test/src/lread-tests.el (lread-force-load-doc-strings):
New test.
src/lread.c
test/src/lread-resources/lazydoc.el [new file with mode: 0644]
test/src/lread-tests.el