aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/derived.el
diff options
context:
space:
mode:
authorStefan Monnier <[email protected]>2000-03-21 15:35:06 +0000
committerStefan Monnier <[email protected]>2000-03-21 15:35:06 +0000
commitc7ea3acc6b1b88f21cbcbbdb369300279e109a98 (patch)
tree437e8b84fc6108eeb7b787b9c88167c66ffe6b01 /lisp/derived.el
parentc834b52cdce6b71d976bc1d1e1936c0896b6fbb5 (diff)
* 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.
Diffstat (limited to 'lisp/derived.el')
-rw-r--r--lisp/derived.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/derived.el b/lisp/derived.el
index 2aa97b9d58..ee3b917b5d 100644
--- a/lisp/derived.el
+++ b/lisp/derived.el
@@ -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.