]> code.delx.au - gnu-emacs/commit
Avoid crashes at startup on systems that CANNOT_DUMP
authorEli Zaretskii <eliz@gnu.org>
Sat, 12 Mar 2016 09:51:03 +0000 (11:51 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 12 Mar 2016 09:51:03 +0000 (11:51 +0200)
commit48196164aa206d057874119cac2025d376566365
tree56a9f7915878b4b688bc313c4acef58d7e6aabe4
parent6d8e1f0276fb6cce8d3f1e707bf52c18f8fb70d0
Avoid crashes at startup on systems that CANNOT_DUMP

* src/xdisp.c (syms_of_xdisp) <redisplay--inhibit-bidi>: New
boolean variable.
(init_iterator, reseat_to_string)
(Fcurrent_bidi_paragraph_direction)
(Fbidi_find_overridden_directionality): Use
redisplay--inhibit-bidi instead of purify-flag, to determine when
it's safe to reorder bidirectional text.

* lisp/loadup.el (redisplay--inhibit-bidi): Set to t at the
beginning of the file.  Reset to nil when charprop.el is
successfully loaded, or when we are going to dump, whichever
happens last.  (Bug#22975)
lisp/loadup.el
src/xdisp.c