From: Alan Mackenzie <acm@muc.de>
To: Adam Fineman <afineman@afineman.com>
Cc: 7814@debbugs.gnu.org
Subject: bug#7814: Fwd: debugger entered on c-electric-paren
Date: Wed, 12 Jan 2011 19:35:22 +0000 [thread overview]
Message-ID: <20110112193522.GA3782@muc.de> (raw)
In-Reply-To: <AANLkTi=sr3hjE=V4bMWSuAOB8f=JEu3CfdAdV0TS+x53@mail.gmail.com>
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:
> =============
> <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.
next prev parent reply other threads:[~2011-01-12 19:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20101019003622.8048.57233.malonedeb@palladium.canonical.com>
2011-01-10 11:45 ` bug#7814: Fwd: debugger entered on c-electric-paren Adam Fineman
2011-01-12 19:35 ` Alan Mackenzie [this message]
2011-01-12 19:37 ` Adam Fineman
[not found] ` <AANLkTi=BgCu=2wOdQxJ0BRkYPiALdfiwO+6=ahZ=s-Nz@mail.gmail.com>
[not found] ` <AANLkTi=g=ymBtXYTW6SZEuN55unVMeaEDw_gRVoOkgXE@mail.gmail.com>
[not found] ` <AANLkTinC2ObDqy270ZJ8rDUMoFz38BTwqAK0S8eT=_N_@mail.gmail.com>
2011-02-23 2:13 ` Lennart Borgman
2011-02-23 2:31 ` Glenn Morris
2011-02-23 3:35 ` Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110112193522.GA3782@muc.de \
--to=acm@muc.de \
--cc=7814@debbugs.gnu.org \
--cc=afineman@afineman.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.