From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Adam Fineman Newsgroups: gmane.emacs.bugs Subject: bug#7814: Fwd: debugger entered on c-electric-paren Date: Wed, 12 Jan 2011 14:37:09 -0500 Message-ID: References: <20101019003622.8048.57233.malonedeb@palladium.canonical.com> <20110112193522.GA3782@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00248c11dcc9b371d40499ab53c8 X-Trace: dough.gmane.org 1294862074 26893 80.91.229.12 (12 Jan 2011 19:54:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 12 Jan 2011 19:54:34 +0000 (UTC) Cc: 7814@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 12 20:54:29 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pd6m3-00065d-3G for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Jan 2011 20:54:27 +0100 Original-Received: from localhost ([127.0.0.1]:51803 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pd6m2-0005UX-IB for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Jan 2011 14:54:26 -0500 Original-Received: from [140.186.70.92] (port=43324 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pd6lv-0005Tn-H3 for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2011 14:54:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pd6ls-00006l-SV for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2011 14:54:19 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pd6ls-00006c-Qk for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2011 14:54:16 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Pd6OS-0004bZ-CO; Wed, 12 Jan 2011 14:30:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Adam Fineman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Jan 2011 19:30:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7814 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7814-submit@debbugs.gnu.org id=B7814.129486058217639 (code B ref 7814); Wed, 12 Jan 2011 19:30:04 +0000 Original-Received: (at 7814) by debbugs.gnu.org; 12 Jan 2011 19:29:42 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pd6O5-0004aS-IQ for submit@debbugs.gnu.org; Wed, 12 Jan 2011 14:29:41 -0500 Original-Received: from mail-fx0-f44.google.com ([209.85.161.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pd6O3-0004aC-E2 for 7814@debbugs.gnu.org; Wed, 12 Jan 2011 14:29:40 -0500 Original-Received: by fxm9 with SMTP id 9so934484fxm.3 for <7814@debbugs.gnu.org>; Wed, 12 Jan 2011 11:37:09 -0800 (PST) Original-Received: by 10.223.95.203 with SMTP id e11mr1418722fan.60.1294861029566; Wed, 12 Jan 2011 11:37:09 -0800 (PST) Original-Received: by 10.223.83.196 with HTTP; Wed, 12 Jan 2011 11:37:09 -0800 (PST) In-Reply-To: <20110112193522.GA3782@muc.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 12 Jan 2011 14:30:04 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:43313 Archived-At: --00248c11dcc9b371d40499ab53c8 Content-Type: text/plain; charset=ISO-8859-1 Thanks, Alan. I noted in the launchpad bug that you updated this one. - Adam On Wed, Jan 12, 2011 at 2:35 PM, Alan Mackenzie wrote: > Hi, Adam, > > thanks for the bug report! > > On Mon, Jan 10, 2011 at 06:45:08AM -0500, Adam Fineman wrote: > > As you'll see in the forwarded message below, I originally filed this bug > > with the nxhtml team, and they asked me to file it against Emacs. > > > Entering the same file as below, I still see a backtrace at the same > place, > > although the trace is slightly different: > > > ------------------------ > > Debugger entered--Lisp error: (wrong-type-argument listp set-from-style) > > c-electric-paren(nil) > > call-interactively(c-electric-paren nil nil) > > ------------------------ > > The value `set-from-style' is the uninitialised "global" value that > CC Mode gives certain variables ("style variables"). That a buffer's > copy of a variable still contains that value implies that nxhtml-mode has > failed to initialise CC Mode properly. > > > This is the version of nxhtml that I installed: > > > http://ourcomments.org/Emacs/DL/elisp/nxhtml/zip/nxhtml-2.08-100425.zip > > I've downloaded that and grepped it. There are no CC Mode initialisation > calls in php-mode.el. For comparison, there are three such calls in > csharp-mode.el, namely: > > (c-initialize-cc-mode t) > (c-init-language-vars csharp-mode) > (c-common-init 'csharp-mode) > > C#'s initialisation is probably correct, and could serve as a model for > PHP Mode. In particular the call to `c-common-init' is the essential > one. > > I don't have an account on Launchpad, and I really don't want to "read > the guide" or "take a tour" (I've got bugs to fix ;-), so I won't be > contributing to the bug's progress on Launchpad. If nxhtml-mode's > maintainer wants to contact me, I'd be happy for him/her to email me > personally or on the CC Mode mailing list at bug-cc-mode@gnu.org. > > Thanks once again for taking the trouble to submit such a clear bug > report. > > > - Adam > > > ---------- Forwarded message ---------- > > From: Adam Fineman <663041@bugs.launchpad.net> > > Date: Mon, Oct 18, 2010 at 8:36 PM > > Subject: [Bug 663041] [NEW] debugger entered on c-electric-paren > > To: afineman@afineman.com > > > > I open a new file '/tmp/foo.php' and start typing the following: > > ============= > > > > > > foo > > > > > > > ============= > > > As soon as I type the '(' character, I get a backtrace: > > =========== > > Debugger entered--Lisp error: (wrong-type-argument listp set-from-style) > > c-electric-paren(nil) > > call-interactively(c-electric-paren) > > =========== > > This is a clean build of emacs-23.2, on Ubuntu Server 8.04.4. > > -- > Alan Mackenzie (Nuremberg, Germany). > Maintainer of CC Mode. > --00248c11dcc9b371d40499ab53c8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks, Alan. =A0I noted in the launchpad bu= g that you updated this one.

- Adam

On Wed, Jan 12, 2011 at 2:35 PM, Alan Ma= ckenzie <acm@muc.de&= gt; wrote:
Hi, Adam,

thanks for the bug report!

On Mon, Jan 10, 2011 at 06:45:08AM -0500, Adam Fineman wrote:
> As you'll see in the forwarded message below, I originally filed t= his bug
> with the nxhtml team, and they asked me to file it against Emacs.

> Entering the same file as below, I still see a backtrace at the same p= lace,
> although the trace is slightly different:

> ------------------------
> Debugger entered--Lisp error: (wrong-type-argument listp set-from-styl= e)
> =A0 c-electric-paren(nil)
> =A0 call-interactively(c-electric-paren nil nil)
> ------------------------

The value `set-from-style' is the uninitialised "global" valu= e that
CC Mode gives certain variables ("style variables"). =A0That a bu= ffer's
copy of a variable still contains that value implies that nxhtml-mode has failed to initialise CC Mode properly.

> This is the version of nxhtml that I installed:

> http://ourcomments.org/Emacs/DL/elisp/nxhtm= l/zip/nxhtml-2.08-100425.zip

I've downloaded that and grepped it. =A0There are no CC Mode initialisa= tion
calls in php-mode.el. =A0For comparison, there are three such calls in
csharp-mode.el, namely:

=A0 =A0(c-initialize-cc-mode t)
=A0 =A0(c-init-language-vars csharp-mode)
=A0 =A0(c-common-init 'csharp-mode)

C#'s initialisation is probably correct, and could serve as a model for=
PHP Mode. =A0In particular the call to `c-common-init' is the essential=
one.

I don't have an account on Launchpad, and I really don't want to &q= uot;read
the guide" or "take a tour" (I've got bugs to fix ;-), s= o I won't be
contributing to the bug's progress on Launchpad. =A0If nxhtml-mode'= s
maintainer wants to contact me, I'd be happy for him/her to email me personally or on the CC Mode mailing list at bug-cc-mode@gnu.org.

Thanks once again for taking the trouble to submit such a clear bug
report.

> - Adam

> ---------- Forwarded message ----------
> From: Adam Fineman <66= 3041@bugs.launchpad.net>
> Date: Mon, Oct 18, 2010 at 8:36 PM
> Subject: [Bug 663041] [NEW] debugger entered on c-electric-paren
> To: afineman@afineman.com=


> I open a new file '/tmp/foo.php' and start typing the followin= g:
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> <html>
> <head>
> <title>foo</title>
> </head>
> <body>
> =A0<?php var_dump(
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

> As soon as I type the '(' character, I get a backtrace:
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> Debugger entered--Lisp error: (wrong-type-argument listp set-from-styl= e)
> =A0c-electric-paren(nil)
> =A0call-interactively(c-electric-paren)
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> This is a clean build of emacs-23.2, on Ubuntu Server 8.04.4.

--
Alan Mackenzie (Nuremberg, Germany).
Maintainer of CC Mode.

--00248c11dcc9b371d40499ab53c8--