* bug#7814: Fwd: debugger entered on c-electric-paren [not found] <20101019003622.8048.57233.malonedeb@palladium.canonical.com> @ 2011-01-10 11:45 ` Adam Fineman 2011-01-12 19:35 ` Alan Mackenzie 0 siblings, 1 reply; 6+ messages in thread From: Adam Fineman @ 2011-01-10 11:45 UTC (permalink / raw) To: 7814 [-- Attachment #1: Type: text/plain, Size: 3237 bytes --] 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@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@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@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 Public bug reported: afineman@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@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@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@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 [-- Attachment #2: Type: text/html, Size: 4479 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#7814: Fwd: debugger entered on c-electric-paren 2011-01-10 11:45 ` bug#7814: Fwd: debugger entered on c-electric-paren Adam Fineman @ 2011-01-12 19:35 ` Alan Mackenzie 2011-01-12 19:37 ` Adam Fineman [not found] ` <AANLkTi=BgCu=2wOdQxJ0BRkYPiALdfiwO+6=ahZ=s-Nz@mail.gmail.com> 0 siblings, 2 replies; 6+ messages in thread From: Alan Mackenzie @ 2011-01-12 19:35 UTC (permalink / raw) To: Adam Fineman; +Cc: 7814 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. ^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#7814: Fwd: debugger entered on c-electric-paren 2011-01-12 19:35 ` Alan Mackenzie @ 2011-01-12 19:37 ` Adam Fineman [not found] ` <AANLkTi=BgCu=2wOdQxJ0BRkYPiALdfiwO+6=ahZ=s-Nz@mail.gmail.com> 1 sibling, 0 replies; 6+ messages in thread From: Adam Fineman @ 2011-01-12 19:37 UTC (permalink / raw) To: Alan Mackenzie; +Cc: 7814 [-- Attachment #1: Type: text/plain, Size: 2843 bytes --] 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@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@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. > [-- Attachment #2: Type: text/html, Size: 4260 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <AANLkTi=BgCu=2wOdQxJ0BRkYPiALdfiwO+6=ahZ=s-Nz@mail.gmail.com>]
[parent not found: <AANLkTi=g=ymBtXYTW6SZEuN55unVMeaEDw_gRVoOkgXE@mail.gmail.com>]
[parent not found: <AANLkTinC2ObDqy270ZJ8rDUMoFz38BTwqAK0S8eT=_N_@mail.gmail.com>]
* Re: bug#7814: Fwd: debugger entered on c-electric-paren [not found] ` <AANLkTinC2ObDqy270ZJ8rDUMoFz38BTwqAK0S8eT=_N_@mail.gmail.com> @ 2011-02-23 2:13 ` Lennart Borgman 2011-02-23 2:31 ` Glenn Morris 0 siblings, 1 reply; 6+ messages in thread From: Lennart Borgman @ 2011-02-23 2:13 UTC (permalink / raw) To: Alan Mackenzie, Emacs-Devel devel; +Cc: Adam Fineman, Aaron S. Hawley This seems to have get stucked. That means we do not have a really working php-mode at the moment. Anything we can do? On Thu, Jan 13, 2011 at 10:31 PM, Lennart Borgman <lennart.borgman@gmail.com> wrote: > On Thu, Jan 13, 2011 at 10:10 PM, Lennart Borgman > <lennart.borgman@gmail.com> wrote: >> Since Aaron has not had time to respond yet I looked a little bit at >> php-mode.el. Some comments below. >> >>> On Wed, Jan 12, 2011 at 8:35 PM, Alan Mackenzie <acm@muc.de> wrote: >>>> >>>> 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. >> >> But the two modes are defined a bit differently: >> >> (defun csharp-mode () >> >> vs >> >> (define-derived-mode php-mode c-mode "PHP" >> >> This means that php-mode has already called (c-initialize-cc-mode t) >> since c-mode does it. >> >> c-mode also calls >> >> (c-init-language-vars-for 'c-mode) >> (c-common-init 'c-mode) >> >> Should these be called again with 'php-mode as parameter, or? > > Hm. Tested like this: > > (define-derived-mode php-mode c-mode "PHP" > "Major mode for editing PHP code.\n\n\\{php-mode-map}" > (c-add-language 'php-mode 'c-mode) > > ;; fix-me: testing, adding these for nXhtml bug#336041 > (c-initialize-cc-mode t) > (c-init-language-vars php-mode) > (c-common-init 'php-mode) > > ... > > Same problem. > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bug#7814: Fwd: debugger entered on c-electric-paren 2011-02-23 2:13 ` Lennart Borgman @ 2011-02-23 2:31 ` Glenn Morris 2011-02-23 3:35 ` Glenn Morris 0 siblings, 1 reply; 6+ messages in thread From: Glenn Morris @ 2011-02-23 2:31 UTC (permalink / raw) To: Lennart Borgman Cc: Alan Mackenzie, Adam Fineman, Aaron S. Hawley, Emacs developers [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain; charset=unknown, Size: 755 bytes --] Lennart Borgman wrote (on Wed, 23 Feb 2011 at 03:13 +0100): > This seems to have get stucked. That means we do not have a really > working php-mode at the moment. Anything we can do? Did you try following the supplied advice on how to fix your code? > >>>> 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. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bug#7814: Fwd: debugger entered on c-electric-paren 2011-02-23 2:31 ` Glenn Morris @ 2011-02-23 3:35 ` Glenn Morris 0 siblings, 0 replies; 6+ messages in thread From: Glenn Morris @ 2011-02-23 3:35 UTC (permalink / raw) To: Lennart Borgman, Alan Mackenzie, Emacs developers, Adam Fineman, Aaron S. Hawley <aaron.s.hawley Ignore me, I did not read properly. (Not sure why emacs-devel has been brought into this though.) ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-02-23 3:35 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [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 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
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.