summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-08-12 19:45:38 +0000
committerRichard M. Stallman <rms@gnu.org>1998-08-12 19:45:38 +0000
commit2d1e2d487771d6ea3a67489d2016e1b06eb257f7 (patch)
treeaac0d5d05a637ac20f213e1234a4b5922056bebe
parentb5d4e315765f0c3cd18e5453d580e669f4e2929a (diff)
downloademacs-2d1e2d487771d6ea3a67489d2016e1b06eb257f7.tar.gz
(double-setup): Only copy `key-translation-map' if it is a keymap.
-rw-r--r--lisp/double.el4
1 files changed, 3 insertions, 1 deletions
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))