After using nXhtml for awhile, eventually fontification breaks. I'm not sure the cause, but the result is always the following for any .php file:
mumamo-fontify-region-with: fun-var-sym=mumamo-eval-in-html-mode, use-major-entry=(html-mode (mumamo-eval-in-html-mode mumamo-def-eval-in-html-mode mumamo-kw-eval-in-html-mode))
MU:mumamo-fontify-region: fun-var-sym=mumamo-eval-in-php-mode, use-major-entry=(php-mode (mumamo-eval-in-php-mode mumamo-def-eval-in-php-mode mumamo-kw-eval-in-php-mode))
** In buffer _group.php
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" "fun-var-sym=mumamo-eval-in-php-mode, use-major-entry=(php-mode (mumamo-eval-in-php-mode mumamo-def-eval-in-php-mode mumamo-kw-eval-in-php-mode))")
(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 297 nil)
font-lock-fontify-region(1 297)
run-hook-with-args(font-lock-fontify-region 1 297)
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)
I'm trying out the latest dev version of nxhtml from git (installed via el-get) in emacs 23.3.1 under Ubuntu 11.04, and I'm also seeing these errors.
Once it starts to happen, it seems a pretty much constant issue, and I can create a new empty buffer, switch to nxhtml-mumamo-mode, and immediately run into the error. Setting debug-on-error gives me the following in that situation:
Debugger entered--Lisp error: (error "fun-var- sym=mumamo- eval-in- html-mode, use-major- entry=( html-mode (mumamo- eval-in- html-mode mumamo- def-eval- in-html- mode mumamo- kw-eval- in-html- mode))" ) sym=mumamo- eval-in- html-mode, use-major- entry=( html-mode (mumamo- eval-in- html-mode mumamo- def-eval- in-html- mode mumamo- kw-eval- in-html- mode))" )) "fun-var- sym=%S, use-major-entry=%S" mumamo- eval-in- html-mode (html-mode (mumamo- eval-in- html-mode mumamo- def-eval- in-html- mode mumamo- kw-eval- in-html- mode))) get-major- mode-setup( html-mode) new-create- chunk(( (1 1 nxhtml-mode nil nil nil (mumamo- chunk-xml- pi mumamo- chunk-alt- php mumamo- chunk-inlined- style mumamo- chunk-inlined- script mumamo-chunk-style= mumamo-chunk-onjs=) nil nil t) (nil nil nil 0 nil))) find-chunks- 1(1 "mumamo- get-chunk- save-buffer- state") find-chunks( 1 "mumamo- get-chunk- save-buffer- state") get-chunk- save-buffer- state(1) turn-on- actions( fundamental- mode) mumamo- mode() interactively( nxhtml- mumamo- mode t nil) extended- command( nil) interactively( execute- extended- command nil nil)
signal(error ("fun-var-
error(
mumamo-
mumamo-
mumamo-
mumamo-
mumamo-
mumamo-
nxhtml-
call-
execute-
call-
If I quit the debugger and then type something (e.g. SPC), I get:
Debugger entered--Lisp error: (error "fun-var- sym=mumamo- eval-in- html-mode, use-major- entry=( html-mode (mumamo- eval-in- html-mode mumamo- def-eval- in-html- mode mumamo- kw-eval- in-html- mode))" ) sym=mumamo- eval-in- html-mode, use-major- entry=( html-mode (mumamo- eval-in- html-mode mumamo- def-eval- in-html- mode mumamo- kw-eval- in-html- mode))" )) "fun-var- sym=%S, use-major-entry=%S" mumamo- eval-in- html-mode (html-mode (mumamo- eval-in- html-mode mumamo- def-eval- in-html- mode mumamo- kw-eval- in-html- mode))) get-major- mode-setup( html-mode) jit-lock- after-change- 1(1 2 0 nxhtml-mode) jit-lock- after-change( 1 2 0) after-change( 1 2 0)
signal(error ("fun-var-
error(
mumamo-
mumamo-
mumamo-
mumamo-