diff options
| author | Stefan Monnier | 2000-05-26 00:42:50 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2000-05-26 00:42:50 +0000 |
| commit | 8ccce2b00238a70b8a1202f6c7237708a41ce151 (patch) | |
| tree | f43c2621b31d9a4664b97d199dbc7a7438fec281 | |
| parent | 8711588dc43a950a6414c1dd58421306fc7139bc (diff) | |
| download | emacs-8ccce2b00238a70b8a1202f6c7237708a41ce151.tar.gz emacs-8ccce2b00238a70b8a1202f6c7237708a41ce151.zip | |
Fix keywords.
(define-derived-mode): Only define if needed.
| -rw-r--r-- | lisp/ChangeLog | 1 | ||||
| -rw-r--r-- | lisp/derived.el | 8 |
2 files changed, 6 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ca2dda060f8..dc380acb930 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | 2000-05-25 Stefan Monnier <monnier@cs.yale.edu> | 1 | 2000-05-25 Stefan Monnier <monnier@cs.yale.edu> |
| 2 | 2 | ||
| 3 | * derived.el: Fix keywords. | 3 | * derived.el: Fix keywords. |
| 4 | (define-derived-mode): Only define if needed. | ||
| 4 | 5 | ||
| 5 | * simple.el (fill-comment, comment-column, comment-start) | 6 | * simple.el (fill-comment, comment-column, comment-start) |
| 6 | (comment-start-skip, comment-end, comment-indent-function) | 7 | (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 @@ | |||
| 28 | 28 | ||
| 29 | ;; Obsolete. | 29 | ;; Obsolete. |
| 30 | ;; Use the `derived-major-mode' provided by easy-mmode.el instead. | 30 | ;; Use the `derived-major-mode' provided by easy-mmode.el instead. |
| 31 | ;; It is only kept for backward compatibility with byte-compiled files | 31 | ;; It is only kept for backward compatibility with Emacs-20 byte-compiled |
| 32 | ;; which refer to `derived-mode-init-mode-variables' and other functions. | 32 | ;; files that refer to `derived-mode-init-mode-variables' and other functions. |
| 33 | 33 | ||
| 34 | 34 | ||
| 35 | 35 | ||
| @@ -104,6 +104,8 @@ | |||
| 104 | ;; PUBLIC: define a new major mode which inherits from an existing one. | 104 | ;; PUBLIC: define a new major mode which inherits from an existing one. |
| 105 | 105 | ||
| 106 | ;; ;;;###autoload | 106 | ;; ;;;###autoload |
| 107 | ;; Don't override the definition provided by easy-mmode.el | ||
| 108 | (unless (fboundp 'define-derived-mode) | ||
| 107 | (defmacro define-derived-mode (child parent name &optional docstring &rest body) | 109 | (defmacro define-derived-mode (child parent name &optional docstring &rest body) |
| 108 | "Create a new mode as a variant of an existing mode. | 110 | "Create a new mode as a variant of an existing mode. |
| 109 | 111 | ||
| @@ -168,7 +170,7 @@ been generated automatically, with a reference to the keymap." | |||
| 168 | ;;; ; obsolete. | 170 | ;;; ; obsolete. |
| 169 | ;;; (derived-mode-run-setup-function (quote ,child)) | 171 | ;;; (derived-mode-run-setup-function (quote ,child)) |
| 170 | ; Run the hooks, if any. | 172 | ; Run the hooks, if any. |
| 171 | (derived-mode-run-hooks (quote ,child))))) | 173 | (derived-mode-run-hooks (quote ,child)))))) |
| 172 | 174 | ||
| 173 | 175 | ||
| 174 | ;; PUBLIC: find the ultimate class of a derived mode. | 176 | ;; PUBLIC: find the ultimate class of a derived mode. |