From: Richard M. Stallman Date: Wed, 12 Aug 1998 19:45:38 +0000 (+0000) Subject: (double-setup): Only copy `key-translation-map' if it is a keymap. X-Git-Tag: emacs-20.3~76 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a4e59635084f951de990ad2a9e4644f1861ec575;p=emacs.git (double-setup): Only copy `key-translation-map' if it is a keymap. --- diff --git a/lisp/double.el b/lisp/double.el index 8585f8716c8..7d318d9988a 100644 --- a/lisp/double.el +++ b/lisp/double.el @@ -145,7 +145,9 @@ but not `C-u X' or `ESC X' since the X is not the prefix key." ;; Set up key-translation-map as indicated by `double-map'. (kill-local-variable 'key-translation-map) (make-local-variable 'key-translation-map) - (setq key-translation-map (copy-keymap key-translation-map)) + (setq key-translation-map (if (keymapp key-translation-map) + (copy-keymap key-translation-map) + (make-sparse-keymap))) (mapcar (function (lambda (entry) (define-key key-translation-map (vector (nth 0 entry))