mumamo-do-fontify when editing

Bug #767421 reported by Christian Kruse
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nXhtml
New
Undecided
Unassigned

Bug Description

Hi,

When editing files with nXhtml mode active, I often get the following error messages:

MU:mumamo-do-fontify-2: mumamo-do-fontify m=nxhtml-mode, s/e=1/17 syn-min/max=1/17: Wrong type argument: markerp, nil
** In buffer test.html
  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-do-fontify-2 "mumamo-do-fontify m=%s, s/e=%s/%s syn-min/max=%s/%s: %s" nxhtml-mode 1 17 1 17 "Wrong type argument: markerp, nil")
  (condition-case err (save-restriction (when ... ... ... ... ... ...)) (error (mumamo-display-error ... "mumamo-do-fontify m=%s, s/e=%s/%s syn-min/max=%s/%s: %s" chunk-major start end chunk-syntax-min chunk-syntax-max ...)))
  (if (not mumamo-use-condition-case) (let* (... ...) (save-restriction ...)) (condition-case err (save-restriction ...) (error ...)))
  (mumamo-condition-case err (save-restriction (when ... ... ... ... ... ...)) (error (mumamo-display-error ... "mumamo-do-fontify m=%s, s/e=%s/%s syn-min/max=%s/%s: %s" chunk-major start end chunk-syntax-min chunk-syntax-max ...)))
  (progn (mumamo-condition-case err (save-restriction ...) (error ...)))
  (if (< new-start new-end) (progn (mumamo-condition-case err ... ...)))
  (when (< new-start new-end) (mumamo-condition-case err (save-restriction ...) (error ...)))
  (let ((new-start ...) (new-end ...)) (when (< new-start new-end) (mumamo-condition-case err ... ...)))
  (let* ((font-lock-dont-widen t) (font-lock-extend-region-functions font-lock-extend-region-functions) (funs font-lock-extend-region-functions) (font-lock-beg ...) (font-lock-end ...) (n1-while 0)) (while (and ... funs) (setq funs ...)) (let (... ...) (when ... ...)))
  (condition-case err (let* (... ... ... ... ... ...) (while ... ...) (let ... ...)) (error (mumamo-display-error ... "mumamo-do-fontify m=%s, s=%s, e=%s: %s" chunk-major start end ...)))
  (if (not mumamo-use-condition-case) (let* (... ...) (let* ... ... ...)) (condition-case err (let* ... ... ...) (error ...)))
  (mumamo-condition-case err (let* (... ... ... ... ... ...) (while ... ...) (let ... ...)) (error (mumamo-display-error ... "mumamo-do-fontify m=%s, s=%s, e=%s: %s" chunk-major start end ...)))
  mumamo-do-fontify(1 17 nil 1 17 nxhtml-mode)
  (progn (mumamo-do-fontify 1 17 nil 1 17 major))
  eval((progn (mumamo-do-fontify 1 17 nil 1 17 major)))
  #[(body) "\306\307!\210\310\311\312\313\314\315\316\317\312\320\321\322\312\310\323\312\211\324\312\211\325\312\326\312\310\211\327\312\211\330\312\211\331\332\333\334\335\312\211\336\312\211\211\211\211\337\312\211\211\340\341\342\343\344\312\345\337\211\346\347\350\310\337\351\352\353\310\354\355\356\357\312\360\361\362\363\364\365\366\367\310\211\312\211\211\310\211\211\337

<
=
>
?
@
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
[
\\
]
^
_
`
a
b

c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
{
|
}
~

\200
\201
\202
\203
\204
\205
\206
\207
\210
\211
\212
\213
\214
\215\370 p
\216
\217\371\216\372\220!\210\312
\221\373\222!\211\221.]\207" [yas/minor-mode-major-mode yas/minor-mode word-wrap visual-line-mode visual-line--saved-state truncate-partial-width-windows make-local-variable parse-sexp-lookup-properties t sgml-indent-line nil do-auto-fill "<!-- " " -->" "<!--[ ]*" "[ ]*--[
]*>" sgml-comment-indent-new-line "[ ]*$\\|[ ]*</?\\([_:[:alpha:]][-_.:[:alnum:]]*\\(?:[^\"'/><]\\|\"[^\"]*\"\\|'[^']*'\\)*\\)?>" "[ ]*$\\|[ ]*</?\\([_:[:alpha:]][-_.:[:alnum:]]*\\(?:[^\"'/><]\\|\"[^\"]*\"\\|'[^']*'\\)*\\)?>$" "[ ]*" (font-lock-extend-region-wholelines font-lock-extend-region-multiline) sgml-font-lock-syntactic-keywords (t ... ... ... ... ... ... ... ... ...) (... nil t nil nil ...) #[... "\3038\203

I'm using Aquamacs emacs 2.2 (GNU Emacs 23.3.1) on Mac OS X 10.6. I checked out and tried revision 814 from launchpad and got the same problem.

Any hints?

Greetings,
 CK

Revision history for this message
lborgman (lennart-borgman) wrote : Re: [Bug 767421] [NEW] mumamo-do-fontify when editing

Hi Christian, are you using the latest beta 2.09 from the nXhtml
repositorhy? Otherwise could you please try that and let us know how
it works for you?

Revision history for this message
Christian Kruse (cjk-wwwtech) wrote :

As I pointed out: I think I am. I'm using revision 814, which seems to be the latest revision. Same error as described above.

Revision history for this message
lborgman (lennart-borgman) wrote : Re: [Bug 767421] Re: mumamo-do-fontify when editing

Ah, sorry. Yes, that is the latest version. Do you know an easy way to
hit this bug? Code example?

Revision history for this message
Christian Kruse (cjk-wwwtech) wrote :

This bug occurs every time I edit PHP code. Even when just writing a small <?php phpinfo();

I'm somewhat desperate, it makes it nearly impossible to write on our web application with Emacs due to a heavy delay when typing. I now have to use TextMate, which doesn't satisfy me in any way. Is there a way to fix this bug? Can I help you fixing it? I really want to use Emacs again.

Revision history for this message
Christian Kruse (cjk-wwwtech) wrote :

ok, I found the source of this bug: when turning on whitespace-mode via (global-whitespace-mode t), the above error occurs. When whitespace-mode only is loaded via (require 'whitespace), everything works just fine.

Revision history for this message
Christian Kruse (cjk-wwwtech) wrote :

This problem also occurs when I active whitespace-mode locally via M-x whitespace-mode

Revision history for this message
Christian Kruse (cjk-wwwtech) wrote :

Ok, I cannot reproduce it with emacs -Q. I will have a closer look on the weekend, trying to reproduce the problem with emacs -Q.

Thanks for your support!

Revision history for this message
Christian Kruse (cjk-wwwtech) wrote :

Ok, I think I have it now: the problems seems to occur when whitespace-mode is enabled before the file is loaded. I did the following: I startet emacs with -Q, loaded nxhtml via

(load "~/.emacs.d/nxhtml/autostart.el")

After that I activated whitespace-mode with M-x global-whitespace-mode and find-file'd a PHP file. The error occured. When I changed the order (emacs -Q, load nxhtml, M-x find-file, M-x whitespace-mode) everything works just ok until I M-x revert-buffer the buffer.

HTH, Greetings,
 CK

Revision history for this message
lborgman (lennart-borgman) wrote :

Thanks, I will have a look at it when I get a chance. I guess things
are workable for you at the moment then?

Revision history for this message
Christian Kruse (cjk-wwwtech) wrote :

Yes, thank you very much!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.