I got an answer from Klaus: http://lists.gnu.org/archive/html/emacs-devel/2009-05/msg00188.html
hobbes, could you please replace syntax-ppss-flush-cache in mumamo.el with this one:
(defadvice syntax-ppss-flush-cache (around mumamo-advice-syntax-ppss-flush-cache activate compile ) "Support for mumamo. See the defadvice for `syntax-ppss' for an explanation." (if (not mumamo-multi-major-mode) ad-do-it (let ((pos (ad-get-arg 0))) (let* ((chunk-at-pos (when (and (boundp 'mumamo-multi-major-mode) mumamo-multi-major-mode) (mumamo-find-chunks pos "syntax-ppss-flush-cache")))) (if chunk-at-pos (let* ((syntax-ppss-last (overlay-get chunk-at-pos 'syntax-ppss-last)) (syntax-ppss-cache (overlay-get chunk-at-pos 'syntax-ppss-cache))) ;;(setq ad-return-value ad-do-it) ad-do-it (overlay-put chunk-at-pos 'syntax-ppss-last syntax-ppss-last) (overlay-put chunk-at-pos 'syntax-ppss-cache syntax-ppss-cache)) ;;(setq ad-return-value ad-do-it) ad-do-it )))))
I got an answer from Klaus: http:// lists.gnu. org/archive/ html/emacs- devel/2009- 05/msg00188. html
hobbes, could you please replace syntax- ppss-flush- cache in mumamo.el with this one:
(defadvice syntax- ppss-flush- cache (around
mumamo- advice- syntax- ppss-flush- cache
activate
compile
) multi-major- mode) multi-major- mode)
mumamo- multi-major- mode)
(mumamo- find-chunks pos "syntax- ppss-flush- cache") )))
(syntax- ppss-cache (overlay-get chunk-at-pos 'syntax- ppss-cache) ))
;;(setq ad-return-value ad-do-it)
ad-do-it
(overlay- put chunk-at-pos 'syntax-ppss-last syntax-ppss-last)
(overlay- put chunk-at-pos 'syntax-ppss-cache syntax-ppss-cache))
"Support for mumamo.
See the defadvice for `syntax-ppss' for an explanation."
(if (not mumamo-
ad-do-it
(let ((pos (ad-get-arg 0)))
(let* ((chunk-at-pos (when (and (boundp 'mumamo-
(if chunk-at-pos
(let* ((syntax-ppss-last (overlay-get chunk-at-pos 'syntax-ppss-last))
;;(setq ad-return-value ad-do-it)
ad-do-it
)))))