all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [Fwd: Bug#428898: emacs22-gtk: bogus "Local variables entry is missing the prefix" complaint]
@ 2007-06-15 16:39 Sven Joachim
  2007-06-15 17:34 ` martin rudalics
  0 siblings, 1 reply; 4+ messages in thread
From: Sven Joachim @ 2007-06-15 16:39 UTC (permalink / raw)
  To: emacs-devel; +Cc: Zack Weinberg

The following report was sent to the Debian Bug Tracking System.  I can
verify that the error still happens, at least in the Emacs 22 branch.
Can somebody debug this failure?  It seems to have to do with
c-postprocess-file-styles, but I was not able to dig any further.


-------- original message --------
From: - Fri Jun 15 04:22:45 2007
X-Account-Key: account2
X-UIDL: 8194
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Received: from [70.103.162.29] (helo=master.debian.org)	by mx22.web.de with esmtp (WEB.DE 4.107 #114)	id 1HyzUN-0001mR-00	for sven_joachim@web.de; Fri, 15 Jun 2007 02:16:31 +0200
Received: from qa by master.debian.org with local (Exim 4.50)	id 1HyzNI-0003NU-S2	for sven_joachim@web.de; Fri, 15 Jun 2007 00:09:12 +0000
Received: from rietz.debian.org ([140.211.166.43]) by master.debian.org with esmtp (Exim 4.50) id 1HyzIP-0002Bj-SL for emacs22@packages.qa.debian.org; Fri, 15 Jun 2007 00:04:10 +0000
Received: from debbugs by rietz.debian.org with local (Exim 4.50) id 1HyzHb-0007hj-9c; Fri, 15 Jun 2007 00:03:19 +0000
X-Loop: owner@bugs.debian.org
Subject: Bug#428898: emacs22-gtk: bogus "Local variables entry is missing the prefix" complaint
Reply-To: Zack Weinberg <zackw@panix.com>, 428898@bugs.debian.org
Resent-From: Zack Weinberg <zackw@panix.com>
Resent-To: debian-bugs-dist@lists.debian.org
Resent-CC: zackw@panix.com, Rob Browning <rlb@defaultvalue.org>
Resent-Date: Fri, 15 Jun 2007 00:03:02 +0000
Resent-Message-Id: <handler.428898.B.118186575227698@bugs.debian.org>
X-Debian-PR-Message: report 428898
X-Debian-PR-Package: emacs22-gtk
X-Debian-PR-Keywords: 
X-Debian-PR-Source: emacs22
Received: via spool by submit@bugs.debian.org id=B.118186575227698 (code B ref -1); Fri, 15 Jun 2007 00:03:02 +0000
Received: (at submit) by bugs.debian.org; 15 Jun 2007 00:02:32 +0000
Received: from cpe-72-130-182-201.san.res.rr.com ([72.130.182.201] helo=[127.0.0.1]) by rietz.debian.org with esmtp (Exim 4.50) id 1HyzGq-0006qM-An for submit@bugs.debian.org; Fri, 15 Jun 2007 00:02:32 +0000
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Zack Weinberg <zackw@panix.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Message-Id: <20070615000201.29447.92057.reportbug@localhost>
X-Mailer: reportbug 3.38
Date: Thu, 14 Jun 2007 17:02:01 -0700
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on rietz.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-12.0 required=4.0 tests=BAYES_00,HAS_PACKAGE, X_DEBBUGS_CC autolearn=ham version=2.60-bugs.debian.org_2005_01_02
Resent-Sender: Debian BTS <debbugs@bugs.debian.org>
Resent-Date: Fri, 15 Jun 2007 00:03:19 +0000
Delivered-To: emacs22@packages.qa.debian.org
Precedence: list
X-Loop: emacs22@packages.qa.debian.org
X-PTS-Package: emacs22
X-PTS-Keyword: bts
List-Unsubscribe: <mailto:pts@qa.debian.org?body=unsubscribe+emacs22>
Sender: bounces+20070615-sven_joachim=web.de@packages.qa.debian.org

Package: emacs22-gtk
Version: 22.0.99+1-1
Severity: normal

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:

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.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages emacs22-gtk depends on:
ii  emacs22-bin-common        22.0.99+1-1    The GNU Emacs editor's shared, arc
ii  libasound2                1.0.14a-1      ALSA library
ii  libatk1.0-0               1.18.0-2       The ATK accessibility toolkit
ii  libc6                     2.5-11         GNU C Library: Shared libraries
ii  libcairo2                 1.4.6-1.1      The Cairo 2D vector graphics libra
ii  libfontconfig1            2.4.2-1.2      generic font configuration library
ii  libglib2.0-0              2.12.12-1      The GLib library of C routines
ii  libgtk2.0-0               2.10.13-1      The GTK+ graphical user interface 
ii  libice6                   1:1.0.3-2      X11 Inter-Client Exchange library
ii  libjpeg62                 6b-13          The Independent JPEG Group's JPEG 
ii  libncurses5               5.6-3          Shared libraries for terminal hand
ii  libpango1.0-0             1.16.4-1       Layout and rendering of internatio
ii  libpng12-0                1.2.15~beta5-2 PNG library - runtime
ii  libsm6                    2:1.0.3-1      X11 Session Management library
ii  libtiff4                  3.8.2-7        Tag Image File Format (TIFF) libra
ii  libungif4g                4.1.4-5        shared library for GIF images
ii  libx11-6                  2:1.0.3-7      X11 client-side library
ii  libxcursor1               1:1.1.8-2      X cursor management library
ii  libxext6                  1:1.0.3-2      X11 miscellaneous extension librar
ii  libxfixes3                1:4.0.3-2      X11 miscellaneous 'fixes' extensio
ii  libxft2                   2.1.12-2       FreeType-based font drawing librar
ii  libxi6                    1:1.0.1-4      X11 Input extension library
ii  libxinerama1              1:1.0.2-1      X11 Xinerama extension library
ii  libxpm4                   1:3.5.6-3      X11 pixmap library
ii  libxrandr2                2:1.2.1-1      X11 RandR extension library
ii  libxrender1               1:0.9.2-1      X Rendering Extension client libra
ii  zlib1g                    1:1.2.3-15     compression library - runtime

emacs22-gtk recommends no packages.

-- no debconf information

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Fwd: Bug#428898: emacs22-gtk: bogus "Local variables entry is missing the prefix" complaint]
  2007-06-15 16:39 [Fwd: Bug#428898: emacs22-gtk: bogus "Local variables entry is missing the prefix" complaint] Sven Joachim
@ 2007-06-15 17:34 ` martin rudalics
  2007-06-15 23:54   ` Alan Mackenzie
  2007-06-20 10:23   ` Alan Mackenzie
  0 siblings, 2 replies; 4+ messages in thread
From: martin rudalics @ 2007-06-15 17:34 UTC (permalink / raw)
  To: Sven Joachim; +Cc: bug-cc-mode, Alan Mackenzie, Zack Weinberg, emacs-devel

 > 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:
 >
 > 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?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Fwd: Bug#428898: emacs22-gtk: bogus "Local variables entry is missing the prefix" complaint]
  2007-06-15 17:34 ` martin rudalics
@ 2007-06-15 23:54   ` Alan Mackenzie
  2007-06-20 10:23   ` Alan Mackenzie
  1 sibling, 0 replies; 4+ messages in thread
From: Alan Mackenzie @ 2007-06-15 23:54 UTC (permalink / raw)
  To: martin rudalics; +Cc: bug-cc-mode, Zack Weinberg, Sven Joachim, emacs-devel

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).

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Fwd: Bug#428898: emacs22-gtk: bogus "Local variables entry is missing the prefix" complaint]
  2007-06-15 17:34 ` martin rudalics
  2007-06-15 23:54   ` Alan Mackenzie
@ 2007-06-20 10:23   ` Alan Mackenzie
  1 sibling, 0 replies; 4+ messages in thread
From: Alan Mackenzie @ 2007-06-20 10:23 UTC (permalink / raw)
  To: Sven Joachim, martin rudalics; +Cc: bug-cc-mode, Zack Weinberg, emacs-devel

Hi, Sven and Martin!

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:

>  > 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?

It's been fixed in the Emacs EMACS_BASE_22 branch and the trunk.  Thanks
for reporting the bug!

-- 
Alan.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-06-20 10:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-15 16:39 [Fwd: Bug#428898: emacs22-gtk: bogus "Local variables entry is missing the prefix" complaint] Sven Joachim
2007-06-15 17:34 ` martin rudalics
2007-06-15 23:54   ` Alan Mackenzie
2007-06-20 10:23   ` Alan Mackenzie

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.