all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Mako template mode
@ 2010-06-29 21:19 Andrea Crotti
  2010-06-29 22:17 ` Deniz Dogan
  2010-06-29 23:15 ` Lennart Borgman
  0 siblings, 2 replies; 7+ messages in thread
From: Andrea Crotti @ 2010-06-29 21:19 UTC (permalink / raw)
  To: help-gnu-emacs

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\b	#\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?




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-06-30  9:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-29 21:19 Mako template mode Andrea Crotti
2010-06-29 22:17 ` Deniz Dogan
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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.