]> git.eshelyaron.com Git - emacs.git/commitdiff
(edt-user-emulation-setup): Test edt-setup-user-bindings is bound
authorGlenn Morris <rgm@gnu.org>
Wed, 28 Nov 2007 03:57:52 +0000 (03:57 +0000)
committerGlenn Morris <rgm@gnu.org>
Wed, 28 Nov 2007 03:57:52 +0000 (03:57 +0000)
before calling.

lisp/emulation/edt.el

index d61ef9725f3b5f5dd791adee3ffa38366829288a..d43c118f4e1b2a30ed278028b1acbf1434b62c87 100644 (file)
@@ -2229,7 +2229,10 @@ Optional argument USER-SETUP non-nil means  called from function
   ;; function edt-setup-extra-default-bindings.
   (define-prefix-command 'edt-user-gold-map)
   (fset 'edt-user-gold-map (copy-keymap 'edt-default-gold-map))
-  (edt-setup-user-bindings)
+  ;; This is a function that the user can define for custom bindings.
+  ;; See etc/edt-user.doc.
+  (if (fboundp 'edt-setup-user-bindings)
+      (edt-setup-user-bindings))
   (edt-select-user-global-map))
 
 (defun edt-select-default-global-map()