|
From: | Lute Kamstra |
Subject: | Re: org-mode and mode hooks. |
Date: | Mon, 27 Jun 2005 10:25:08 +0200 |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Richard Stallman <address@hidden> writes: > Of course my method failed to find any major modes that don't run mode > hooks at all. Maybe someone else could try to fix those? > > Perhaps one could find these easily with a Lisp program > that searches for a defun whose start matches "(defun [-a-z]+-mode " > and that does not contain "(run-". I did this. I think I found all and fixed most modes that did not run mode hooks. There are a few exceptions involving special major modes like terminal-mode in lisp/terminal.el where the mode hook is run outside of the major mode function by the caller of the major mode function. I figured that fixing those complex cases is too error-prone so I left them alone. Lute.
[Prev in Thread] | Current Thread | [Next in Thread] |