From: Deniz Dogan <deniz.a.m.dogan@gmail.com>
To: Andrea Crotti <andrea.crotti.0@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Mako template mode
Date: Wed, 30 Jun 2010 00:17:35 +0200 [thread overview]
Message-ID: <AANLkTikFkXVlgyAl16NWGVKG8732Cf7OZsNEtZuZrnu4@mail.gmail.com> (raw)
In-Reply-To: <m1r5jpczax.fsf@gmail.com>
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
next prev parent reply other threads:[~2010-06-29 22:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-29 21:19 Mako template mode Andrea Crotti
2010-06-29 22:17 ` Deniz Dogan [this message]
2010-06-29 23:15 ` Lennart Borgman
2010-06-29 23:17 ` Lennart Borgman
2010-06-30 6:58 ` Andrea Crotti
2010-06-30 8:37 ` Lennart Borgman
2010-06-30 9:48 ` Andrea Crotti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTikFkXVlgyAl16NWGVKG8732Cf7OZsNEtZuZrnu4@mail.gmail.com \
--to=deniz.a.m.dogan@gmail.com \
--cc=andrea.crotti.0@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).