GNU bug report logs - #2866
23.0.91; "(princ (category-table) (current-buffer))" causes emacs to hang

Previous Next

Package: emacs;

Reported by: MON KEY <monkey <at> sandpframing.com>

Date: Thu, 2 Apr 2009 19:40:04 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Kenichi Handa <handa <at> m17n.org>
To: MON KEY <monkey <at> sandpframing.com>, 2866 <at> debbugs.gnu.org
Subject: bug#2866: 23.0.91; "(princ (category-table) (current-buffer))" causes emacs to  hang
Date: Fri, 03 Apr 2009 10:53:34 +0900
In article <d2afcfda0904021236i40758ef4vd17c4fb97e31d67f <at> mail.gmail.com>, MON KEY <monkey <at> sandpframing.com> writes:

> evaluating:
> (princ (category-table) (current-buffer))
> Causes emacs to hang.

> Whether this is a useful way to examine the category-table is another
> question entirely :P

It doesn't hang Emacs for me but takes long time in
redisplay.  It's because of the extremely long line.

If it is ok to terminate lines within the printing of a
object, something like this change will speed up the
redisplay.

--- print.c.~1.255.~	2009-01-16 15:52:25.000000000 +0900
+++ print.c	2009-04-03 10:44:14.000000000 +0900
@@ -2116,6 +2116,9 @@
 	      /* 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.  */
+	      if (SUB_CHAR_TABLE_P (obj)
+		  && XINT (XSUB_CHAR_TABLE (obj)->depth) == 3)
+		PRINTCHAR ('\n');
 	      PRINTCHAR ('#');
 	      PRINTCHAR ('^');
 	      if (SUB_CHAR_TABLE_P (obj))

---
Kenichi Handa
handa <at> m17n.org




This bug report was last modified 16 years and 52 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.