From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: [Fwd: Bug#428898: emacs22-gtk: bogus "Local variables entry is missing the prefix" complaint] Date: Sat, 16 Jun 2007 00:54:28 +0100 Message-ID: <20070615235428.GA3932@muc.de> References: <4672C0C8.1030406@gmx.de> <4672CDAA.7060500@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1181946523 28480 80.91.229.12 (15 Jun 2007 22:28:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Jun 2007 22:28:43 +0000 (UTC) Cc: bug-cc-mode@gnu.org, Zack Weinberg , Sven Joachim , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 16 00:28:38 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HzKHV-0004PN-9v for ged-emacs-devel@m.gmane.org; Sat, 16 Jun 2007 00:28:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzKHU-00015R-FI for ged-emacs-devel@m.gmane.org; Fri, 15 Jun 2007 18:28:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzKHQ-00015M-Tb for emacs-devel@gnu.org; Fri, 15 Jun 2007 18:28:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzKHP-00015A-CR for emacs-devel@gnu.org; Fri, 15 Jun 2007 18:28:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzKHP-000156-6u for emacs-devel@gnu.org; Fri, 15 Jun 2007 18:28:31 -0400 Original-Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzKHO-0004Eo-NG for emacs-devel@gnu.org; Fri, 15 Jun 2007 18:28:31 -0400 Original-Received: (qmail 47429 invoked by uid 3782); 15 Jun 2007 22:28:29 -0000 Original-Received: from acm.muc.de (p54A3EAD8.dip.t-dialin.net [84.163.234.216]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Sat, 16 Jun 2007 00:28:25 +0200 Original-Received: (qmail 5275 invoked by uid 1000); 15 Jun 2007 23:54:28 -0000 Content-Disposition: inline In-Reply-To: <4672CDAA.7060500@gmx.at> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-kernel: FreeBSD 4.6-4.9 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:73017 Archived-At: Hi, Martin, Hi, Sven! On Fri, Jun 15, 2007 at 07:34:34PM +0200, martin rudalics wrote: > > I am working on a project that has this local variables block > > at the end of every file: > > // Local Variables: > > // mode: C++ > > // fill-column: 76 > > // c-file-style: "gnu" > > // indent-tabs-mode: nil > > // End: > > // vim: et:sw=2:sts=2:ts=2:cino=>2s,{s,\:s,+s,t0,g0,^-2,e-2,n-2,p2s,(0,=s: > > emacs21 and emacs-snapshot were perfectly fine with this, but emacs22 > > complains: Strange: Maybe hack-local-variables has changed recently. > > File local-variables error: (error "Local variables entry is missing the prefix") > > every time I visit such a file. I looked at files.el and could not > > figure out why. > It's because `c-remove-any-local-eval-or-mode-variables' doesn't remove > the newline. Alan? Thanks, Martin! It's a trivial fix (i.e. it's likely to cause a firkin[*] load of trouble ;-). I'll get a patch in soon, but now tonight. [*] i.e. a fair amount, but less than a barrel load. A firkin (eight gallons) is a quarter of a barrel, (_fir_kin, like "viertel"). And, of course a gallon is 8 pints, or 4 quarts. Half of a pint was known as a chopin, a most musical quantity of beer. It all came from sensible times when we had binary and hexadecimal units for fluid measures in England, which ended when those Europeans descended upon us and imposed things like litres. ;-). It's all explained in one of Donald Knuth's books. -- Alan Mackenzie (Ittersbach, Germany).