help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Mako template mode


From: Deniz Dogan
Subject: Re: Mako template mode
Date: Wed, 30 Jun 2010 00:17:35 +0200

2010/6/29 Andrea Crotti <andrea.crotti.0@gmail.com>:
> 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
>  backtrace()
>  (let ((standard-output standard-output)) (backtrace))
>  (progn (let (...) (backtrace)) (with-current-buffer standard-output 
> (buffer-string)))
>  (unwind-protect (progn (let ... ...) (with-current-buffer standard-output 
> ...)) (kill-buffer standard-output))
>  (let ((standard-output ...)) (unwind-protect (progn ... ...) (kill-buffer 
> standard-output)))
>  (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)
>  jit-lock-function(1)
>  (let ((ret ...)) (mumamo-msgfntfy "mumamo-jit-lock-function EXIT %s, ff=%s, 
> just-changed=%s" start (when start ...) mumamo-just-changed-major) ret)
>  mumamo-jit-lock-function(1)
>
> 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
> impression?
>
>
>

I get a bunch of these kinds of errors when using
mako-html-mumamo-mode as well. I never bothered trying to figure out
why though.

-- 
Deniz Dogan



reply via email to

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