> signal(error ("Font-lock trying to use keywords before setting them up")) > error("Font-lock trying to use keywords before setting them up") > font-lock-compile-keywords(nil t) > font-lock-fontify-keywords-region(1 81 nil) > font-lock-default-fontify-region(1 80 nil) > font-lock-fontify-region(1 80) > mh-add-sequence-notation(1 t)
So it looks like the problem is that you call font-lock-fontify-region without first setting up font-lock variables (e.g. by calling font-lock-mode or font-lock-set-defaults). > OK, that's better, thanks! I still need to check the other calls on the > stack, but mh-visit-folder contains this: > (make-local-variable 'font-lock-defaults) > (setq font-lock-defaults '(mh-folder-font-lock-keywords t)) > Is this the usual way of injecting one's keywords? Yes. Stefan _______________________________________________ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug