Stefan Monnier wrote:

   If at all possible, please use define-derived-mode which results in
   cleaner code and neatly hides those details.

The problem is that rewriting a mode to use define-derived-mode has to
be done carefully and takes time.  Otherwise, there is the risk of
introducing bugs.  On the other hand, enclosing the parent mode inside a
delay-mode-hooks is so completely routine and quick that it can be
done right after one notices the problem.  This is important, since
there may be a lot of these problems out there.  Rewriting the mode to
use define-derived-mode can always be done later when one has more
time and has no other, more urgent, things to do.

Sincerely,

Luc.



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

Reply via email to