GNU bug report logs -
#7814
Fwd: debugger entered on c-electric-paren
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7814 in the body.
You can then email your comments to 7814 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7814
; Package
emacs
.
(Mon, 10 Jan 2011 12:39:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Adam Fineman <afineman <at> afineman.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 10 Jan 2011 12:39:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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.
I am also able to reproduce this on Kubuntu 10.04 with the emacs-nox
package:
afineman <at> hotdog:~$ emacs --version
GNU Emacs 23.1.1
Copyright (C) 2009 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
afineman <at> caviar:~$ emacs -q -l ~/elisp/nxhtml/autostart.el
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)
------------------------
This is the version of nxhtml that I installed:
http://ourcomments.org/Emacs/DL/elisp/nxhtml/zip/nxhtml-2.08-100425.zip
- Adam
---------- Forwarded message ----------
From: Adam Fineman <663041 <at> bugs.launchpad.net>
Date: Mon, Oct 18, 2010 at 8:36 PM
Subject: [Bug 663041] [NEW] debugger entered on c-electric-paren
To: afineman <at> afineman.com
Public bug reported:
afineman <at> caviar:~$ emacs --version
GNU Emacs 22.3.1
Copyright (C) 2008 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
afineman <at> caviar:~$ emacs -q -l nxhtml/autostart.el
------
I open a new file '/tmp/foo.php' and start typing the following:
=============
<html>
<head>
<title>foo</title>
</head>
<body>
<?php var_dump(
=============
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.
** Affects: nxhtml
Importance: Undecided
Status: New
--
debugger entered on c-electric-paren
https://bugs.launchpad.net/bugs/663041
You received this bug notification because you are a direct subscriber
of the bug.
Status in nXhtml for Emacs: New
Bug description:
afineman <at> caviar:~$ emacs --version
GNU Emacs 22.3.1
Copyright (C) 2008 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
afineman <at> caviar:~$ emacs -q -l nxhtml/autostart.el
------
I open a new file '/tmp/foo.php' and start typing the following:
=============
<html>
<head>
<title>foo</title>
</head>
<body>
<?php var_dump(
=============
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.
To unsubscribe from this bug, go to:
https://bugs.launchpad.net/nxhtml/+bug/663041/+subscribe
[Message part 2 (text/html, inline)]
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7814
; Package
emacs
.
(Wed, 12 Jan 2011 19:13:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 7814 <at> debbugs.gnu.org (full text, mbox):
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 <at> gnu.org.
Thanks once again for taking the trouble to submit such a clear bug
report.
> - Adam
> ---------- Forwarded message ----------
> From: Adam Fineman <663041 <at> bugs.launchpad.net>
> Date: Mon, Oct 18, 2010 at 8:36 PM
> Subject: [Bug 663041] [NEW] debugger entered on c-electric-paren
> To: afineman <at> afineman.com
> I open a new file '/tmp/foo.php' and start typing the following:
> =============
> <html>
> <head>
> <title>foo</title>
> </head>
> <body>
> <?php var_dump(
> =============
> 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.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7814
; Package
emacs
.
(Wed, 12 Jan 2011 19:30:04 GMT)
Full text and
rfc822 format available.
Message #11 received at 7814 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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 <acm <at> muc.de> 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 <at> gnu.org.
>
> Thanks once again for taking the trouble to submit such a clear bug
> report.
>
> > - Adam
>
> > ---------- Forwarded message ----------
> > From: Adam Fineman <663041 <at> bugs.launchpad.net>
> > Date: Mon, Oct 18, 2010 at 8:36 PM
> > Subject: [Bug 663041] [NEW] debugger entered on c-electric-paren
> > To: afineman <at> afineman.com
>
>
> > I open a new file '/tmp/foo.php' and start typing the following:
> > =============
> > <html>
> > <head>
> > <title>foo</title>
> > </head>
> > <body>
> > <?php var_dump(
> > =============
>
> > 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.
>
[Message part 2 (text/html, inline)]
bug closed, send any further explanations to Adam Fineman <afineman <at> afineman.com>
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 18 Jan 2011 08:05:01 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 15 Feb 2011 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 125 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.