summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorPip Cet <pipcet@protonmail.com>2025-01-08 12:15:30 +0000
committerPip Cet <pipcet@protonmail.com>2025-01-08 12:41:56 +0000
commitac52993b996927031a6913927e1028de47be4312 (patch)
treecffbbb07db89ac18dacdb1e7da26f3e88119f438 /lisp/emacs-lisp
parent631f43d2bbe403e48d63d963281f1d948dee5263 (diff)
downloademacs-ac52993b996927031a6913927e1028de47be4312.tar.gz
emacs-ac52993b996927031a6913927e1028de47be4312.tar.bz2
emacs-ac52993b996927031a6913927e1028de47be4312.zip
Fix store_function_docstring for native subrs (Bug#74966)
Since native subrs can have either etc/DOC indexes or vector indexes, we use the sign bit of the 'doc' field to distinguish the two cases. * src/comp.c (native_function_doc, make_subr): Use one's complement of doc index for native subrs. * src/doc.c (store_function_docstring): Add assertion. * src/lisp.h (struct Lisp_Subr): Document 'doc' sign bit.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions