Mercurial > emacs
diff lisp/derived.el @ 28235:963f1d516e92
* derived.el (define-derived-mode): Don't autoload anymore.
Prefer the macro-only version provided by easy-mmode.el.
* emacs-lisp/easy-mmode.el (define-derived-mode): New name for
`easy-mmode-define-derived-mode'.
Use `combine-run-hooks'.
(easy-mmode-define-navigation): New macro.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Tue, 21 Mar 2000 15:34:31 +0000 |
parents | 9b5edf2cbaff |
children | af5c31a82586 |
line wrap: on
line diff
--- a/lisp/derived.el Tue Mar 21 15:28:44 2000 +0000 +++ b/lisp/derived.el Tue Mar 21 15:34:31 2000 +0000 @@ -25,6 +25,13 @@ ;;; Commentary: +;; Obsolete. +;; Use the `derived-major-mode' provided by easy-mmode.el instead. +;; It is only kept for backward compatibility with byte-compiled files +;; which refer to `derived-mode-init-mode-variables' and other functions. + + + ;; GNU Emacs is already, in a sense, object oriented -- each object ;; (buffer) belongs to a class (major mode), and that class defines ;; the relationship between messages (input events) and methods @@ -95,7 +102,7 @@ ;; PUBLIC: define a new major mode which inherits from an existing one. -;;;###autoload +;; ;;;###autoload (defmacro define-derived-mode (child parent name &optional docstring &rest body) "Create a new mode as a variant of an existing mode.