From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: [christopher.ian.moore@gmail.com: Emacs very slow opening file] Date: Thu, 29 Sep 2005 21:24:43 +0900 Message-ID: References: <20050929095157.GA6233@kenny.sha-bang.local> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1127998332 3383 80.91.229.2 (29 Sep 2005 12:52:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Sep 2005 12:52:12 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 29 14:52:05 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EKxqj-0004Wy-18 for ged-emacs-devel@m.gmane.org; Thu, 29 Sep 2005 14:49:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EKxqi-0005xe-3I for ged-emacs-devel@m.gmane.org; Thu, 29 Sep 2005 08:49:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EKxcX-0006m7-Er for emacs-devel@gnu.org; Thu, 29 Sep 2005 08:34:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EKxcP-0006fK-4b for emacs-devel@gnu.org; Thu, 29 Sep 2005 08:34:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EKxcO-0006dq-Gv for emacs-devel@gnu.org; Thu, 29 Sep 2005 08:34:32 -0400 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EKxbJ-0002Vw-0n; Thu, 29 Sep 2005 08:33:25 -0400 Original-Received: from nfs.m17n.org (nfs.m17n.org [192.47.44.7]) by tsukuba.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id j8TCOjMj019654; Thu, 29 Sep 2005 21:24:45 +0900 Original-Received: from etlken (etlken.m17n.org [192.47.44.125]) by nfs.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id j8TCOji1014170; Thu, 29 Sep 2005 21:24:45 +0900 Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1EKxSt-0006ls-00; Thu, 29 Sep 2005 21:24:43 +0900 Original-To: Sascha Wilde In-reply-to: <20050929095157.GA6233@kenny.sha-bang.local> (message from Sascha Wilde on Thu, 29 Sep 2005 11:51:57 +0200) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) 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:43351 Archived-At: In article <20050929095157.GA6233@kenny.sha-bang.local>, Sascha Wilde writes: > So, I would conclude, that there is no bug at all. Emacs can't > possibly know, that the "Local Variables:" block isn't meant to be > interpreted in the diff file. > And I wouldn't consider the fact, that c-mode fontification takes so > long on a big file, which isn't valid c-code at all, a bug. > Workaround: turn of global-font-lock-mode or set > enable-local-variables to nil, before opening a file like that. Perhaps, Emacs has to detect that the file is a patch before checking "-*- ... -*-" and "Local Variables". --- Kenichi Handa handa@m17n.org