From: Alan M. <ac...@mu...> - 2007-06-15 22:28:38
|
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). |