]> git.eshelyaron.com Git - emacs.git/commit
Don't build print-number-table unless it will be used
authorGemini Lasswell <gazally@runbox.com>
Sun, 4 Aug 2019 04:39:29 +0000 (21:39 -0700)
committerGemini Lasswell <gazally@runbox.com>
Fri, 13 Sep 2019 20:43:07 +0000 (13:43 -0700)
commit0dba340da54f129750096a5a8704805a94f5535c
tree95751e2ab566b4c861241e3edacfcfbccd6e3ea8
parent3bd6ef40b55e429a321c87a09fd94e6ca0e50ae7
Don't build print-number-table unless it will be used

There are only a few users of print-number-table, and none of them use
it when print-circle is nil.  A couple of them used to.  print_object
was changed in 2012-04-20 "* src/print.c (print_preprocess): Only
check print_depth if print-circle is nil".
byte-compile-output-docform which uses print-number-table binds
print-circle to t before printing unless
byte-compile-disable-print-circle is set, but that variable has been
marked obsolete since 24.1.

* src/print.c (print_preprocess): Assert Vprint_circle is non-nil.
Remove code handling the case when Vprint_circle is nil.
(print, Fprint_preprocess): Don't call print_preprocess unless
Vprint_circle is non-nil.
(print_object): Remove comment referencing removed code in
print_preprocess.
src/print.c