diff options
author | Kim F. Storm <storm@cua.dk> | 2005-06-14 15:32:41 +0000 |
---|---|---|
committer | Kim F. Storm <storm@cua.dk> | 2005-06-14 15:32:41 +0000 |
commit | 1939ac922fbae817e08ca325b6c56964b26cdc36 (patch) | |
tree | 6253d0d079b7571bad82ba19d170b13163430d00 /lisp | |
parent | 6de5b135fc3a7095cdf1afee034d71c883277055 (diff) | |
download | emacs-1939ac922fbae817e08ca325b6c56964b26cdc36.tar.gz |
(ido-mode): Make a new keymap every time we enable ido,
as the coverage buffer/file/both may change.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/ido.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ido.el b/lisp/ido.el index 012be3da37f..2d9313bb0ea 100644 --- a/lisp/ido.el +++ b/lisp/ido.el @@ -1320,7 +1320,8 @@ This function also adds a hook to the minibuffer." (add-hook 'kill-emacs-hook 'ido-kill-emacs-hook) - (unless ido-minor-mode-map-entry + (if ido-minor-mode-map-entry + (setcdr ido-minor-mode-map-entry (make-sparse-keymap)) (setq ido-minor-mode-map-entry (cons 'ido-mode (make-sparse-keymap))) (add-to-list 'minor-mode-map-alist ido-minor-mode-map-entry)) |