mumano crashes on using django template variables as part of tag attribute's value
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| nXhtml |
Medium
|
Unassigned |
Bug Description
If I use django template variable as part of html tag's attribute's value, mumano crashes with following message:
mumamo-
or another
mumamo-
I use 744 revision of nxhtml trunk, and emacs nightly build for 2010-12-19.
Few examples:
{% block content %}
<script type="text/
{% endblock %}
another example
<img src="{{ STATIC_FILE }}1.jpg" ></img>
On this error, emacs buffer became completely uneditable and only I can do is to save the document and open in another editor.
Also I've attach screenshot to picture the issue.
tags: | added: django mumamo |
lborgman (lennart-borgman) wrote : | #2 |
Oleg Lomaka (oleg-lomaka) wrote : | #3 |
Thank you for your help. The patch resolved the first example, but didn't resolve the second.
Now in case of this code "<img src="{{ STATIC_FILE }}1.jpg" ></img>" it generates following error "Making parse-sexp-
I've attached a screenshot.
lborgman (lennart-borgman) wrote : | #4 |
I have tried to take care of the error message (this is actually just cosmetic in this case). However I am not sure what problem you have now. Can you please explain? (And perhaps update nXhtml beta again so we are not miscommunicating.)
Oleg Lomaka (oleg-lomaka) wrote : | #5 |
Ok, updated to r746.
Opened file with following content:
<img src="{{ STATIC_FILE }}1.jpg" />
<p>some text</p>
in *Messages* got this error:
(mumamo-
lborgman (lennart-borgman) wrote : | #6 |
That should not happen. There is something wrong here. Can you please in the file buffer where you have this django code do
M-: (emacs-Q-nxthml buffer-file-name)
That should start a new Emacs with just nXhtml loaded. Do you still see this error message in this new Emacs instance?
Oleg Lomaka (oleg-lomaka) wrote : | #7 |
After clean start, I don't see those error message, but the mode still doesn't work.
What did I do:
1. Start new emacs with such .emacs
(add-to-list 'load-path "~/.emacs.d/")
(load "~/.emacs.
(add-to-list 'auto-mode-alist '("\\.html$" . django-
In emacs.d only nxhtml-trunk
2. Run emacs-Q-nxhtml
3. Opened ~/3.html in new emacs instance with following content
{% block content %}
<img src="{{ STATIC_URL }}1.jpg" />
<p>some text</p>
{% endblock %}
4. Switched mode to django-
Got the mode "nXhtml/
The screenshot attached.
If it whould be helpful, here is *Messages*
For information about GNU Emacs and the GNU system, type C-h C-a.
Nxml/Nxhtml Autostart.el loading ...
Loading /Users/
... loading web-autoload
Loading /Users/
Making mumamo-bug-3467-w14 local to *temp* while let-bound!
Tested for Bug 3467 => PASSED
Loading /Users/
... loading web-autoload
Loading /Users/
... nXhtml loading 1.4 seconds elapsed ...
Loading /Users/
... nXhtml loading 1.6 seconds elapsed ...
Turn on `nxhtml-menu-mode' unconditionally
... nXhtml loading 2.1 seconds elapsed ...
Loading vc-bzr...done
xhtml-loader.rnc was ok
(No changes need to be saved)
... nXhtml loading 2.1 seconds elapsed ...
Loading /Users/
majmodpri-
majmodpri-
Loading /Users/
... nXhtml loading 2.3 seconds elapsed ...
=== Loaded at nxhtml/autostart.el end:
(feature 'html-imenu)=t
(feature 'html-pagetoc)=t
(feature 'html-quote)=t
(feature 'html-site)=t
(feature 'html-toc)=t
(feature 'html-upl)=t
(feature 'inlimg)=t
(feature 'mumamo)=t
(feature 'nxhtml-menu)=t
(feature 'nxhtml-mode)=t
(feature 'rngalt)=t
(feature 'tidy-xhtml)=t
(feature 'xhtml-help)=t
Nxml/Nxhtml Autostart.el loaded in 2.6 seconds
Using schema ~/Applications/
Making completion list... [2 times]
Using vacuous schema
Using schema ~/Applications/
Using vacuous schema [2 times]
Error in menu-bar-
Using schema ~/Applications/
Unknown element [2 times]
byte-code: Beginning of buffer [7 times]
byte-code: End of buffer
byte-code: Beginning of buffer [9 times]
Mark set
Changed in nxhtml: | |
importance: | Undecided → Medium |
status: | New → In Progress |
lborgman (lennart-borgman) wrote : | #8 |
Thanks, this was a missing autoload. Should be fixed now in the latest beta 2.09.
Changed in nxhtml: | |
status: | In Progress → Fix Committed |
Thanks Oleg, very useful examples. I think this catched a simple oversight in the code. Can you please try the new beta 2.09?