[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: org-mode and mode hooks.
From: |
Luc Teirlinck |
Subject: |
Re: org-mode and mode hooks. |
Date: |
Fri, 27 May 2005 14:13:23 -0500 (CDT) |
Both Stefan and me might have partially misunderstood your problem.
`sql-interactive-mode' calls comint-mode without enclosing it in a
delay-mode-hooks form, as it should. To standardize your mode, you
should either define it using `define-derived-mode' (see `(elisp)Derived
Modes') or read `(elisp)Mode Hooks'.
The reason why you need `font-lock-defontify' is because I believe (I
did not check this in detail) that all comint uses font-lock for is
font-lock-face, which is exactly what `font-lock-defontify' undoes.
My patches do not try to mend this because most comint derived modes
probably _want_ to keep comint's font-lock-face defaults.
After standardizing your mode, you _maybe_ might still have to run
font-lock-defontify to remove comint's font-lock-face properties.
(I did not study your code in detail, nor am I completely sure about
what your exact problem is.)
Sincerely,
Luc.
- Re: org-mode and mode hooks., (continued)
- Re: org-mode and mode hooks., Luc Teirlinck, 2005/05/29
- Re: org-mode and mode hooks., Luc Teirlinck, 2005/05/28
- Re: org-mode and mode hooks., Richard Stallman, 2005/05/29
- Re: org-mode and mode hooks., Luc Teirlinck, 2005/05/29
- Re: org-mode and mode hooks., Luc Teirlinck, 2005/05/29
- Re: org-mode and mode hooks., Luc Teirlinck, 2005/05/27
- Re: org-mode and mode hooks., Michael Mauger, 2005/05/27
- Re: org-mode and mode hooks., Luc Teirlinck, 2005/05/27
- Re: org-mode and mode hooks., Luc Teirlinck, 2005/05/27
- Re: org-mode and mode hooks., Stefan Monnier, 2005/05/27
- Re: org-mode and mode hooks.,
Luc Teirlinck <=
- Re: org-mode and mode hooks., Michael Mauger, 2005/05/31
- Re: org-mode and mode hooks., Luc Teirlinck, 2005/05/27
- Re: org-mode and mode hooks., Richard Stallman, 2005/05/28
- Re: org-mode and mode hooks., Luc Teirlinck, 2005/05/28
- Re: org-mode and mode hooks., Richard Stallman, 2005/05/26
- Re: org-mode and mode hooks., Luc Teirlinck, 2005/05/26
- Re: org-mode and mode hooks., Luc Teirlinck, 2005/05/26
- Re: org-mode and mode hooks., Lute Kamstra, 2005/05/25
Message not available