diff options
| author | Richard M. Stallman | 1998-08-12 19:45:38 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-08-12 19:45:38 +0000 |
| commit | a4e59635084f951de990ad2a9e4644f1861ec575 (patch) | |
| tree | c5161fdbf360d91121e3d5c390cab1d5cdfa742c | |
| parent | a11a197bb932db0e8425c378fbec15e14fe76e56 (diff) | |
| download | emacs-a4e59635084f951de990ad2a9e4644f1861ec575.tar.gz emacs-a4e59635084f951de990ad2a9e4644f1861ec575.zip | |
(double-setup): Only copy `key-translation-map' if it is a keymap.
| -rw-r--r-- | lisp/double.el | 4 |
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." | |||
| 145 | ;; Set up key-translation-map as indicated by `double-map'. | 145 | ;; Set up key-translation-map as indicated by `double-map'. |
| 146 | (kill-local-variable 'key-translation-map) | 146 | (kill-local-variable 'key-translation-map) |
| 147 | (make-local-variable 'key-translation-map) | 147 | (make-local-variable 'key-translation-map) |
| 148 | (setq key-translation-map (copy-keymap key-translation-map)) | 148 | (setq key-translation-map (if (keymapp key-translation-map) |
| 149 | (copy-keymap key-translation-map) | ||
| 150 | (make-sparse-keymap))) | ||
| 149 | (mapcar (function (lambda (entry) | 151 | (mapcar (function (lambda (entry) |
| 150 | (define-key key-translation-map | 152 | (define-key key-translation-map |
| 151 | (vector (nth 0 entry)) | 153 | (vector (nth 0 entry)) |