Support loading dynamic docstrings from Emacs <29
* src/doc.c (get_doc_string): Take absolute value to be compatible with bytecode from Emacs <29.
This commit is contained in:
parent
c7f6da7a41
commit
f14c24dbe7
1 changed files with 4 additions and 1 deletions
|
@ -127,7 +127,10 @@ get_doc_string (Lisp_Object filepos, bool unibyte)
|
|||
else
|
||||
return Qnil;
|
||||
|
||||
EMACS_INT position = XFIXNUM (pos);
|
||||
/* We used to emit negative positions for 'user variables' (whose doc
|
||||
strings started with an asterisk); take the absolute value for
|
||||
compatibility with bytecode from Emacs <29. */
|
||||
EMACS_INT position = eabs (XFIXNUM (pos));
|
||||
|
||||
if (!STRINGP (dir))
|
||||
return Qnil;
|
||||
|
|
Loading…
Add table
Reference in a new issue