From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.devel Subject: Re: emacs hangs in jit-lock Date: Tue, 28 Nov 2006 15:13:43 -0500 Message-ID: <456C9877.7020905@gnu.org> References: <456C70A0.6060105@gnu.org> <87k61fibk5.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1164744867 25941 80.91.229.2 (28 Nov 2006 20:14:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Nov 2006 20:14:27 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 28 21:14:27 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gp9LF-0001bh-GK for ged-emacs-devel@m.gmane.org; Tue, 28 Nov 2006 21:14:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gp9LE-0005Hk-Uz for ged-emacs-devel@m.gmane.org; Tue, 28 Nov 2006 15:14:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gp9L1-0005GM-8j for emacs-devel@gnu.org; Tue, 28 Nov 2006 15:13:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gp9Kw-0005E6-6z for emacs-devel@gnu.org; Tue, 28 Nov 2006 15:13:54 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gp9Kw-0005E0-1O for emacs-devel@gnu.org; Tue, 28 Nov 2006 15:13:50 -0500 Original-Received: from [66.155.124.107] (helo=janestcapital.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gp9Kv-0006lk-Rt for emacs-devel@gnu.org; Tue, 28 Nov 2006 15:13:50 -0500 Original-Received: from [192.168.250.217] [209.213.205.130] by janestcapital.com with ESMTP (SMTPD-9.10) id A8790B34; Tue, 28 Nov 2006 15:13:45 -0500 User-Agent: Thunderbird 1.5.0.7 (X11/20060913) Original-To: Chong Yidong In-Reply-To: <87k61fibk5.fsf@stupidchicken.com> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:62988 Archived-At: Chong Yidong wrote: > Sam Steingold writes: > >> "line-end-position" (0x29e02) >> "back-to-indentation" (0x2e0) >> "c-beginning-of-macro" (0x27bda8) >> "byte-code" (0xa5c7eab) >> "c-parse-state" (0x27bda8) >> "c-font-lock-complex-decl-prepare" (0x27d0b8) >> "font-lock-fontify-keywords-region" (0x27bda8) >> "font-lock-default-fontify-region" (0x27bda8) >> "font-lock-fontify-region" (0x27bda8) >> "run-hook-with-args" (0x840af31) >> "byte-code" (0x822f25b) >> "jit-lock-fontify-now" (0x27bed8) >> "jit-lock-stealth-fontify" (0x83178f9) >> >> the problem is that this unresponsiveness can last for MINUTES (I am not >> making this up!) and the periods of responsiveness can last for mere >> SECONDS. >> >> Even if it should, any input from me should immediately interrupt it - >> and I see my C-g "delayed" for minutes. > > Since jit-lock-stealth fontify is run as an idle timer, any input > *does* interrupt it. The only way this could fail is if the > c-font-lock functions interfere with this---either by somehow > resetting the idleness state, or (more likely) taking a very long > time. whatever the reason, C-g does not interrupt this multi-minute process. > If you provided a simple test case, I or someone else could take a > look at this problem. I don't think this problem has a "simple test case". wget http://clisp.cvs.sourceforge.net/*checkout*/clisp/clisp/src/lispbibl.d http://clisp.cvs.sourceforge.net/*checkout*/clisp/clisp/src/stream.d http://clisp.cvs.sourceforge.net/*checkout*/clisp/clisp/src/io.d http://clisp.cvs.sourceforge.net/*checkout*/clisp/clisp/src/eval.d http://clisp.cvs.sourceforge.net/*checkout*/clisp/clisp/src/pathname.d http://clisp.cvs.sourceforge.net/*checkout*/clisp/clisp/src/sequence.d http://clisp.cvs.sourceforge.net/*checkout*/clisp/clisp/src/array.d http://clisp.cvs.sourceforge.net/*checkout*/clisp/clisp/src/foreign.d http://clisp.cvs.sourceforge.net/*checkout*/clisp/clisp/src/spvw.d http://clisp.cvs.sourceforge.net/*checkout*/clisp/clisp/src/charstrg.d http://clisp.cvs.sourceforge.net/*checkout*/clisp/clisp/src/hashtabl.d http://clisp.cvs.sourceforge.net/*checkout*/clisp/clisp/emacs/d-mode.el then load d-mode.el, associate d-mode with *.d, open all the *.d files and try to edit, say, lispbibl.d close to the end of file. Thanks. Sam.