Comment 5 for bug 898670

Revision history for this message
Jorge Dias (dias-jorge) wrote :

Finally I found the cause of the bug. It's not an nxhtml-bug itself but here's my description:

The problem occurred within the mumamo-fetch-local-map:

I had a hook that was giving an error when switching to ruby mode with the "temporary buffer", so when it did:

(with-current-buffer temp-buf
      (let ((mumamo-fetching-major t))
        (funcall major))
        ....

When it called ruby-mode, then one of the hooks would blow up.

It was very hard to track and debug, although I think I understand mumamo so much more right now, so not a complete lost ;)

Would it be possible to provide a more detailed backtrace when an error happens here?

Also may I suggest that we rewrite this function to use (with-temp-buffer) I think it would greatly simplify it. I could provide you with a patch although I don't know if it's done like this because some older emacs versions don't support this function. In this case maybe we could backport it? what versions of emacs do you support?

Greetings