From: Stefan Monnier Date: Fri, 26 May 2000 00:42:50 +0000 (+0000) Subject: Fix keywords. X-Git-Tag: emacs-pretest-21.0.90~3692 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8ccce2b00238a70b8a1202f6c7237708a41ce151;p=emacs.git Fix keywords. (define-derived-mode): Only define if needed. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ca2dda060f8..dc380acb930 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,6 +1,7 @@ 2000-05-25 Stefan Monnier * derived.el: Fix keywords. + (define-derived-mode): Only define if needed. * simple.el (fill-comment, comment-column, comment-start) (comment-start-skip, comment-end, comment-indent-function) diff --git a/lisp/derived.el b/lisp/derived.el index ee6a3529c11..b8379228650 100644 --- a/lisp/derived.el +++ b/lisp/derived.el @@ -28,8 +28,8 @@ ;; 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. +;; It is only kept for backward compatibility with Emacs-20 byte-compiled +;; files that refer to `derived-mode-init-mode-variables' and other functions. @@ -104,6 +104,8 @@ ;; PUBLIC: define a new major mode which inherits from an existing one. ;; ;;;###autoload +;; Don't override the definition provided by easy-mmode.el +(unless (fboundp 'define-derived-mode) (defmacro define-derived-mode (child parent name &optional docstring &rest body) "Create a new mode as a variant of an existing mode. @@ -168,7 +170,7 @@ been generated automatically, with a reference to the keymap." ;;; ; obsolete. ;;; (derived-mode-run-setup-function (quote ,child)) ; Run the hooks, if any. - (derived-mode-run-hooks (quote ,child))))) + (derived-mode-run-hooks (quote ,child)))))) ;; PUBLIC: find the ultimate class of a derived mode.