]> git.eshelyaron.com Git - emacs.git/commit
Replace TRACE with redisplay_trace, etc.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 2 Jul 2019 23:09:46 +0000 (16:09 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 3 Jul 2019 06:02:28 +0000 (23:02 -0700)
commit52d0d4feac856773c5601b40c2996468fd3374bb
tree4b01802bbd019bcced6f161e41016f3825722389
parent20c1406cd04038c4b2d50c9eb0742e21c8e14984
Replace TRACE with redisplay_trace, etc.

This simplifies callers and catches trace printf format errors
even with typical (non-debugging) compiles.
* src/dispextern.h (TRACE) [GLYPH_DEBUG]:
Move definitions to xdisp.c if it’s used only there.
* src/xdisp.c (redisplay_trace): New function, replacing TRACE macro.
(move_trace): New function, replacing TRACE_MOVE macro.
All uses changed.
(dump_glyph): When tracing, don’t use %d to format ptrdiff_t,
or %x to format a pointer.
(expose_frame): Redo trace printfs to avoid interleaved output
on GNU/Linux.
src/dispextern.h
src/xdisp.c