To clarify, this is how comint enables Font Lock:

(defcustom comint-mode-hook '(turn-on-font-lock)
...

Without delay-mode-hooks, this is executed at the end of the call to
comint-mode.  With delay-mode-hooks, it is run during the call to
run-mode-hooks, just before your own hook.  Note that a user can
customize comint-mode-hook and remove the enabling of font-lock-mode.

I did check that comint-mode does not load font-lock, so it only uses
font-lock for font-lock-face.

Sincerely,

Luc.


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to