From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#2866: 23.0.91; "(princ (category-table) (current-buffer))" causes emacs to hang Date: Fri, 03 Apr 2009 10:53:34 +0900 Message-ID: References: Reply-To: Kenichi Handa , 2866@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1238724285 5412 80.91.229.12 (3 Apr 2009 02:04:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Apr 2009 02:04:45 +0000 (UTC) To: MON KEY , 2866@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 03 04:06:03 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LpYmd-0006yK-8E for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Apr 2009 04:05:50 +0200 Original-Received: from localhost ([127.0.0.1]:58732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LpYlF-0004y3-6V for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Apr 2009 22:04:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LpYl9-0004xy-P6 for bug-gnu-emacs@gnu.org; Thu, 02 Apr 2009 22:03:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LpYl4-0004xJ-4u for bug-gnu-emacs@gnu.org; Thu, 02 Apr 2009 22:03:54 -0400 Original-Received: from [199.232.76.173] (port=43200 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LpYl4-0004xG-0e for bug-gnu-emacs@gnu.org; Thu, 02 Apr 2009 22:03:50 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35795) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LpYl3-0004y8-Cw for bug-gnu-emacs@gnu.org; Thu, 02 Apr 2009 22:03:49 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3323lNV000843; Thu, 2 Apr 2009 19:03:47 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n331t5GS030974; Thu, 2 Apr 2009 18:55:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kenichi Handa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 03 Apr 2009 01:55:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2866 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2866-submit@emacsbugs.donarmstrong.com id=B2866.123872356730671 (code B ref 2866); Fri, 03 Apr 2009 01:55:05 +0000 Original-Received: (at 2866) by emacsbugs.donarmstrong.com; 3 Apr 2009 01:52:47 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n331qhR3030665 for <2866@emacsbugs.donarmstrong.com>; Thu, 2 Apr 2009 18:52:45 -0700 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n331qgPx027125; Fri, 3 Apr 2009 10:52:42 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n331qgJo003852; Fri, 3 Apr 2009 10:52:42 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id n331qfOk017084; Fri, 3 Apr 2009 10:52:41 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1LpYb8-0004cl-Bo; Fri, 03 Apr 2009 10:53:34 +0900 In-reply-to: (message from MON KEY on Thu, 2 Apr 2009 15:36:44 -0400) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 02 Apr 2009 22:03:54 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:26864 Archived-At: In article , MON KEY 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@m17n.org