From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: emacs suspension Date: Thu, 11 Dec 2003 14:56:33 GMT Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1071154970 28157 80.91.224.253 (11 Dec 2003 15:02:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Dec 2003 15:02:50 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 11 16:02:47 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AUSL1-0005Oh-00 for ; Thu, 11 Dec 2003 16:02:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AUTFu-0005WU-Hx for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Dec 2003 11:01:34 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!xmission!newsfeed.telusplanet.net!newsfeed.telus.net!snoopy.risq.qc.ca!charlie.risq.qc.ca!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-NNTP-Posting-Host: 132.204.24.42 Original-X-Complaints-To: abuse@umontreal.ca Original-X-Trace: charlie.risq.qc.ca 1071154593 132.204.24.42 (Thu, 11 Dec 2003 09:56:33 EST) Original-NNTP-Posting-Date: Thu, 11 Dec 2003 09:56:33 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:119218 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15157 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15157 > I didn't know why emacs was taking so long to load this file and also it was > suspending (the problem I'm currently inquiring about). I'm not sure I understand what you mean by "suspending" (it normally means to stop working by relinquising the CPU, like when you hit C-z or when you close a laptop). > So I did a search on emacs and fontifying. That still does not explain why "fontifying". Was it just a strange gut feeling or was there some indication that it was related ? > It looks like emacs is fontifying this file which > is a perl script. The search mentioned increasing this font-lock parameter > to handle larger files sizes. I didn't know if this would or was suppose to > help with the suspension problem. Thus is why I brough it up here. It only changes the maximum file size past which fontification is turned off. And by default in Emacs-21, jit-lock is turned on in which case font-lock-maximum-size is ignored anyway. >> > and it still locks up. Has anybody had this problem??? >> >> It could simply be hitting a bad regexp that has an exponential behavior. >> Setting debug-on-quit to t and hitting C-g during the hang might help >> figure out what's going on. > I will try to play with the debug. What is the major-mode used for this file ? Can you try the M-: (setq debug-on-error t) RET and then use C-g ? > Also the next time it suspends I'll just post the results of the "top" Nah, the output of "top" is just useless. Stefan