From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sascha Wilde Newsgroups: gmane.emacs.devel Subject: Re: [christopher.ian.moore@gmail.com: Emacs very slow opening file] Date: Fri, 30 Sep 2005 09:43:17 +0200 Message-ID: <20050930074317.GA6249@kenny.sha-bang.local> References: <20050929095157.GA6233@kenny.sha-bang.local> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0702145039==" X-Trace: sea.gmane.org 1128072104 18225 80.91.229.2 (30 Sep 2005 09:21:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 30 Sep 2005 09:21:44 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 30 11:21:42 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ELH4T-0007zq-Dj for ged-emacs-devel@m.gmane.org; Fri, 30 Sep 2005 11:20:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ELH41-00013F-Lx for ged-emacs-devel@m.gmane.org; Fri, 30 Sep 2005 05:20:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ELFjS-0005qK-Je for emacs-devel@gnu.org; Fri, 30 Sep 2005 03:55:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ELFf7-0005Zs-5u for emacs-devel@gnu.org; Fri, 30 Sep 2005 03:50:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ELFYD-00051E-PD for emacs-devel@gnu.org; Fri, 30 Sep 2005 03:43:28 -0400 Original-Received: from [62.141.58.119] (helo=km1136.keymachine.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1ELFYA-0001M4-6V; Fri, 30 Sep 2005 03:43:22 -0400 Original-Received: from kenny.sha-bang.de (xdslp028.osnanet.de [82.149.190.28]) (authenticated bits=0) by km1136.keymachine.de (8.12.11/8.12.10) with ESMTP id j8U7hF6Q026078; Fri, 30 Sep 2005 09:43:15 +0200 Original-Received: from wilde by kenny.sha-bang.de with local (Kenny MUA v.0409034.42) ID 1ELFY5-0001lT-9y; Fri, 30 Sep 2005 09:43:17 +0200 Original-To: "Richard M. Stallman" Mail-Followup-To: "Richard M. Stallman" , emacs-devel@gnu.org In-Reply-To: User-Agent: Mutt/1.5.9i X-wieners-gbr-MailScanner-Information: MailScanner presented by www.wieners-gbr.de X-wieners-gbr-MailScanner: Nachricht wurde nicht auf Viren und Spam untersucht, sprechen Sie uns an: www.wieners-gbr.de. X-MailScanner-From: wilde@sha-bang.de 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:43383 Archived-At: --===============0702145039== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UlVJffcvxoiEqYs2" Content-Disposition: inline --UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 29, 2005 at 07:31:04PM -0400, Richard M. Stallman wrote: > 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. =3D20 >=20 > Hmm. It still feels like a bug to me, and I want to find a way to > fix it. I agree, that it would be nice, if it could be fixed -- still wouldn't call it a bug. Emacs acts exactly as one would expect from the documentation. =20 > One idea is to restrict what strings can be used as the "prefix" > in a local variables list, so that local variables lists in diff output > are not obeyed. I'm afraid it won't be that easy. Typical prefix chars in diffs are "-", "+" and "!" most (all?) of them are used for comments in some languages (eg. Ada, Postscript). Even worse: context lines aren't prefixed at all. I think that emacs would need to know, what type of file it processes, to use a sensible set of allowed prefix chars -- but how? =20 The given example "bigfile" had no suffix in the file name, the first line wasn't starting with "diff" or something else saying "hey look, I'm a diff file" and the local variables list, which normally is a way to tell emacs "don't guess, just use FOO mode" is not meant to be interpreted... cheers sascha --=20 "Anyone who slaps a 'this page is best viewed with Browser X' label on a We= b=20 page appears to be yearning for the bad old days, before the Web, when you = had=20 very little chance of reading a document written on another computer, anoth= er=20 word processor, or another network." -- Tim Berners-Lee, July 1996 --UlVJffcvxoiEqYs2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFDPOyVchutvmkRUCQRAmjsAJ91n6S39mlKENkl3vuxzBVVVD7xjQCfYyV8 PMAV8Jba2ATQdngap+WG2I0= =5fhK -----END PGP SIGNATURE----- --UlVJffcvxoiEqYs2-- --===============0702145039== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============0702145039==--