aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2005-06-12 16:57:08 +0000
committerStefan Monnier2005-06-12 16:57:08 +0000
commit84ae4908754ec6fbbca63c04f0e48bddace14a81 (patch)
tree7d802ad7667db8e77120ee512ac20d21fa4fd4d9
parent0e659f576a0f6ee276a979b1fa382b2f1cfd580c (diff)
downloademacs-84ae4908754ec6fbbca63c04f0e48bddace14a81.tar.gz
emacs-84ae4908754ec6fbbca63c04f0e48bddace14a81.zip
Add comment.
-rw-r--r--lisp/emacs-lisp/derived.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/derived.el b/lisp/emacs-lisp/derived.el
index 5ba9c094355..943f052fc6d 100644
--- a/lisp/emacs-lisp/derived.el
+++ b/lisp/emacs-lisp/derived.el
@@ -1,5 +1,5 @@
1;;; derived.el --- allow inheritance of major modes 1;;; derived.el --- allow inheritance of major modes
2;;; (formerly mode-clone.el) 2;; (formerly mode-clone.el)
3 3
4;; Copyright (C) 1993, 1994, 1999, 2003 Free Software Foundation, Inc. 4;; Copyright (C) 1993, 1994, 1999, 2003 Free Software Foundation, Inc.
5 5
@@ -221,6 +221,12 @@ See Info node `(elisp)Derived Modes' for more details."
221 (get (quote ,parent) 'mode-class))) 221 (get (quote ,parent) 'mode-class)))
222 ; Set up maps and tables. 222 ; Set up maps and tables.
223 (unless (keymap-parent ,map) 223 (unless (keymap-parent ,map)
224 ;; It would probably be better to set the keymap's parent
225 ;; at the toplevel rather than inside the mode function,
226 ;; but this is not easy for at least the following reasons:
227 ;; - the parent (and its keymap) may not yet be loaded.
228 ;; - the parent's keymap name may be called something else
229 ;; than <parent>-mode-map.
224 (set-keymap-parent ,map (current-local-map))) 230 (set-keymap-parent ,map (current-local-map)))
225 ,(when declare-syntax 231 ,(when declare-syntax
226 `(let ((parent (char-table-parent ,syntax))) 232 `(let ((parent (char-table-parent ,syntax)))
@@ -440,5 +446,5 @@ Where the new table already has an entry, nothing is copied from the old one."
440 446
441(provide 'derived) 447(provide 'derived)
442 448
443;;; arch-tag: 630be248-47d1-4f02-afa0-8207de0ebea0 449;; arch-tag: 630be248-47d1-4f02-afa0-8207de0ebea0
444;;; derived.el ends here 450;;; derived.el ends here