Hello, I am having some problems with nxhtml mode and emacs 24. Once you open a file it seems to open but in the background is throwing some errors, as a result there is no syntax hilighting of any PHP :( and editing is slowed substantially to the point where it is basically not usable.
File Open Error
============
Checking if all php...
... multi major mode
Using vacuous schema
MU:mumamo-do-fontify-2: mumamo-do-fontify m=php-mode, s/e=1/517 syn-min/max=6/1482: Wrong type argument: syntax-table-p, nil
** In buffer comment-wrapper.tpl.php
backtrace()
mumamo-display-error(mumamo-do-fontify-2 "mumamo-do-fontify m=%s, s/e=%s/%s syn-min/max=%s/%s: %s" php-mode 1 517 6 1482 "Wrong type argument: syntax-table-p, nil")
byte-code("\306\307\310
\311
!&\207" [chunk-major start end chunk-syntax-min chunk-syntax-max err mumamo-display-error mumamo-do-fontify-2 "mumamo-do-fontify m=%s, s/e=%s/%s syn-min/max=%s/%s: %s" error-message-string] 10)
byte-code("\306 \211
]
^
\307
\310\311\312
J\211
U\2035
<snip pages of bytecode>
buffer table php-mode-syntax-table ret body] 259]((progn (mumamo-do-fontify 1 517 nil 6 1482 major)))
byte-code("\306\307\"\211\310 !
J\311\312
\313BBBBBBD!\210+\306\207" [major need-major-mode evaled-set-mode major-mode start end mumamo-get-major-mode-substitute fontification mumamo-get-major-mode-setup progn mumamo-do-fontify (major) verbose chunk-syntax-min chunk-syntax-max] 10)
mumamo-fontify-region-with(1 517 nil php-mode 6 1482)
mumamo-fontify-region-1(1 517 nil)
mumamo-fontify-region(1 517 nil)
font-lock-fontify-region(1 517)
run-hook-with-args(font-lock-fontify-region 1 517)
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)
mumamo-jit-lock-function(1)
Editing Error
==========
mumamo-do-fontify-2: mumamo-do-fontify m=php-mode, s/e=449/494 syn-min/max=454/492: Args out of range: 5, 492
MU:mumamo-do-fontify-2: mumamo-do-fontify m=php-mode, s/e=510/525 syn-min/max=515/523: Args out of range: 5, 523
** In buffer page.tpl.php
backtrace()
mumamo-display-error(mumamo-do-fontify-2 "mumamo-do-fontify m=%s, s/e=%s/%s syn-min/max=%s/%s: %s" php-mode 510 525 515 523 "Args out of range: 5, 523")
byte-code("\306\307\310
\311
!&\207" [chunk-major start end chunk-syntax-min chunk-syntax-max err mumamo-display-error mumamo-do-fontify-2 "mumamo-do-fontify m=%s, s/e=%s/%s syn-min/max=%s/%s: %s" error-message-string] 10)
byte-code("\306 \211
]
^
\307
\310\311\312
J\211
U\2035
<snip pages of bytecode>
buffer table php-mode-syntax-table ret body] 259]((progn (mumamo-do-fontify 510 525 nil 515 523 major)))
byte-code("\306\307\"\211\310 !
J\311\312
\313BBBBBBD!\210+\306\207" [major need-major-mode evaled-set-mode major-mode start end mumamo-get-major-mode-substitute fontification mumamo-get-major-mode-setup progn mumamo-do-fontify (major) verbose chunk-syntax-min chunk-syntax-max] 10)
mumamo-fontify-region-with(510 525 nil php-mode 515 523)
mumamo-fontify-region-1(506 527 nil)
mumamo-fontify-region(506 527 nil)
font-lock-fontify-region(506 527)
run-hook-with-args(font-lock-fontify-region 506 527)
byte-code("\302\303 #\207" [start next run-hook-with-args jit-lock-functions] 4)
jit-lock-fontify-now(506 1006)
jit-lock-function(506)
mumamo-jit-lock-function(506)
Thank you,
Russell
Thanks for the bug report, Russell. I have not had time to test Emacs 24 myself so I have not seen this problem.
Could you please try the html-mumamo-mode instead of nxhtml-mumamo-mode?