nxhtml team mailing list archive
-
nxhtml team
-
Mailing list archive
-
Message #00335
Re: [Question #164135]: mumamo-noweb2-mode + javascript
Question #164135 on nXhtml changed:
https://answers.launchpad.net/nxhtml/+question/164135
Blastoff gave more information on the question:
So to answer my own question, by modifying mumamo-noweb2-mode-from-ext
in mumamo-fun.el to read
(defcustom mumamo-noweb2-mode-from-ext
'(
("php" . php-mode)
("c" . c-mode)
("js" . javascript-mode)
)
it's now possible to use Javascript regions inside of noweb2 documents.
I guess the proper way to do this would be to customize the variable ala
C-h v mumamo-noweb2-mode-from-ext customize
but emacs spits out a huge error:
Debugger entered--Lisp error: (void-function nil)
nil((major-mode-function) php-mode)
widget-apply((major-mode-function) :match php-mode)
widget-match-inline((major-mode-function) (php-mode))
widget-group-match-inline((cons :args ((regexp :value "") (major-mode-function))) ("php" php-mode))
widget-group-match((cons :args ((regexp :value "") (major-mode-function))) ("php" php-mode))
widget-cons-match((cons :args ((regexp :value "") (major-mode-function))) ("php" . php-mode))
widget-apply((cons :args ((regexp :value "") (major-mode-function))) :match ("php" . php-mode))
widget-match-inline((cons :args ((regexp :value "") (major-mode-function))) (("php" . php-mode) ("c" . c-mode) ("js" . javascript-mode)))
widget-editable-list-match-inline((repeat :args ((cons :args ...))) (("php" . php-mode) ("c" . c-mode) ("js" . javascript-mode)))
widget-editable-list-match((repeat :args ((cons :args ...))) (("php" . php-mode) ("c" . c-mode) ("js" . javascript-mode)))
widget-apply((repeat :args ((cons :args ...))) :match (("php" . php-mode) ("c" . c-mode) ("js" . javascript-mode)))
custom-variable-value-create((custom-variable :documentation-shown t :custom-state unknown :tag "Mumamo Noweb2 Mode From Ext" :value mumamo-noweb2-mode-from-ext :custom-form edit))
widget-apply((custom-variable :documentation-shown t :custom-state unknown :tag "Mumamo Noweb2 Mode From Ext" :value mumamo-noweb2-mode-from-ext :custom-form edit) :value-create)
widget-default-create((custom-variable :documentation-shown t :custom-state unknown :tag "Mumamo Noweb2 Mode From Ext" :value mumamo-noweb2-mode-from-ext :custom-form edit))
widget-apply((custom-variable :documentation-shown t :custom-state unknown :tag "Mumamo Noweb2 Mode From Ext" :value mumamo-noweb2-mode-from-ext :custom-form edit) :create)
widget-create(custom-variable :documentation-shown t :custom-state unknown :tag "Mumamo Noweb2 Mode From Ext" :value mumamo-noweb2-mode-from-ext)
#[(entry) "ÁA@ÂÃÄÅÆÇ@!È@& " [entry widget-create :documentation-shown t :custom-state unknown :tag custom-unlispify-tag-name :value] 10]((mumamo-noweb2-mode-from-ext custom-variable))
mapcar(#[(entry) "ÁA@ÂÃÄÅÆÇ@!È@& " [entry widget-create :documentation-shown t :custom-state unknown :tag custom-unlispify-tag-name :value] 10] ((mumamo-noweb2-mode-from-ext custom-variable)))
custom-buffer-create-internal(((mumamo-noweb2-mode-from-ext custom-variable)) nil)
custom-buffer-create(((mumamo-noweb2-mode-from-ext custom-variable)) "*Customize Option: Mumamo Noweb2 Mode From Ext*")
customize-variable(mumamo-noweb2-mode-from-ext)
#[(v) "Á!" [v customize-variable] 2](mumamo-noweb2-mode-from-ext)
apply(#[(v) "Á!" [v customize-variable] 2] mumamo-noweb2-mode-from-ext)
help-do-xref(249 #[(v) "Á!" [v customize-variable] 2] (mumamo-noweb2-mode-from-ext))
help-button-action(#<marker (moves after insertion) at 257 in *Help*>)
push-button(257 t)
push-button((mouse-2 (#<window 14 on *Customize Option: Mumamo Noweb2 Mode From Ext*> 257 (179 . 253) 27643213 nil 257 (16 . 11) nil (3 . 11) (11 . 22))))
call-interactively(push-button nil nil)
--
You received this question notification because you are a member of
nXhtml, which is an answer contact for nXhtml.