summaryrefslogtreecommitdiff
path: root/src/print.c
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2009-04-03 06:26:50 +0000
committerKenichi Handa <handa@m17n.org>2009-04-03 06:26:50 +0000
commit223509a3a0170623fd9d6019dbdfbc26bde71553 (patch)
treed54a65c998a2c2638f1877f96c850d4fc39f66e9 /src/print.c
parent11e244d81598a750257d83e5c2e07771abb36698 (diff)
downloademacs-223509a3a0170623fd9d6019dbdfbc26bde71553.tar.gz
emacs-223509a3a0170623fd9d6019dbdfbc26bde71553.tar.bz2
emacs-223509a3a0170623fd9d6019dbdfbc26bde71553.zip
(print_object): Make each lowest sub_char_table start a new line.
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/print.c b/src/print.c
index 738f4f678ed..e78f593c7b5 100644
--- a/src/print.c
+++ b/src/print.c
@@ -2116,6 +2116,13 @@ print_object (obj, printcharfun, escapeflag)
/* We print a char-table as if it were a vector,
lumping the parent and default slots in with the
character slots. But we add #^ as a prefix. */
+
+ /* Make each lowest sub_char_table start a new line.
+ Otherwise we'll make a line extremely long, which
+ results in slow redisplay. */
+ if (SUB_CHAR_TABLE_P (obj)
+ && XINT (XSUB_CHAR_TABLE (obj)->depth) == 3)
+ PRINTCHAR ('\n');
PRINTCHAR ('#');
PRINTCHAR ('^');
if (SUB_CHAR_TABLE_P (obj))