[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mako template mode

From: Andrea Crotti
Subject: Mako template mode
Date: Tue, 29 Jun 2010 23:19:02 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (darwin)

After some research I've found that the powerful nxhtml mode can support
it via MUMAMO.

All looks very nice, but configuring it like that

--8<---------------cut here---------------start------------->8---
  (load (concat conf "nxhtml/autostart.el"))
  (add-to-list 'auto-mode-alist '("\\.mak$" . mako-html-mumamo))
  (add-to-list 'auto-mode-alist '("\\.mako$" . mako-html-mumamo))
--8<---------------cut here---------------end--------------->8---

It doens't unfortunately work with this very not clear error..
Any idea?

I don't care so much about syntax highlighting, but I would like for
example to be able to define snippets (yasnippet) for mako for example
that work only in the files ".mak", which I have not clear yet how to do
without defining a derived mode for example.

--8<---------------cut here---------------start------------->8---
MU:mumamo-fontify-region: Assertion failed: (not (mumamo-fun-eq 
(mumamo-main-major-mode) this-maj)), t
** In buffer new_person.mak
  (let ((standard-output standard-output)) (backtrace))
  (progn (let (...) (backtrace)) (with-current-buffer standard-output 
  (unwind-protect (progn (let ... ...) (with-current-buffer standard-output 
...)) (kill-buffer standard-output))
  (let ((standard-output ...)) (unwind-protect (progn ... ...) (kill-buffer 
  (with-output-to-string (backtrace))
  (let ((format-string2 ...) (bt ...)) (mumamo-message-with-face (concat ... "
" ... bt) (quote highlight)) (apply (quote message) format-string2 lwarn-type 
args) (run-with-idle-timer 1 nil (quote mumamo-show-report-message)) (when 
mumamo-display-error-stop (setq font-lock-mode nil) (when ... ...) (when ... 
...) (apply ... format-string2 lwarn-type args)))
  mumamo-display-error(mumamo-fontify-region "%s" "Assertion failed: (not 
(mumamo-fun-eq (mumamo-main-major-mode) this-maj)), t")
  (condition-case err (mumamo-fontify-region-1 start end verbose) (error 
(mumamo-display-error ... "%s" ...)))
  (if (not mumamo-use-condition-case) (let* (... ...) (mumamo-fontify-region-1 
start end verbose)) (condition-case err (mumamo-fontify-region-1 start end 
verbose) (error ...)))
  (mumamo-condition-case err (mumamo-fontify-region-1 start end verbose) (error 
(mumamo-display-error ... "%s" ...)))
  (if (and mumamo-just-changed-major nil (= 0 ...)) (mumamo-display-error 
(quote mumamo-fontify-region) "Just changed major, should not happen") 
(mumamo-condition-case err (mumamo-fontify-region-1 start end verbose) (error 
  mumamo-fontify-region(1 148 nil)
  font-lock-fontify-region(1 148)
  run-hook-with-args(font-lock-fontify-region 1 148)
  byte-code("\302\303  #\207" [start next run-hook-with-args 
jit-lock-functions] 4)
  jit-lock-fontify-now(1 501)
  (let ((ret ...)) (mumamo-msgfntfy "mumamo-jit-lock-function EXIT %s, ff=%s, 
just-changed=%s" start (when start ...) mumamo-just-changed-major) ret)

mumamo-fontify-region: Assertion failed: (not (mumamo-fun-eq 
(mumamo-main-major-mode) this-maj)), t
--8<---------------cut here---------------end--------------->8---

nxhtml looks a bit "aggressive" also with a lot of stuff implemented
inside it which is maybe also somewhere else, is that just my

reply via email to

[Prev in Thread] Current Thread [Next in Thread]