]> git.eshelyaron.com Git - emacs.git/commitdiff
(ido-mode): Make a new keymap every time we enable ido,
authorKim F. Storm <storm@cua.dk>
Tue, 14 Jun 2005 15:32:41 +0000 (15:32 +0000)
committerKim F. Storm <storm@cua.dk>
Tue, 14 Jun 2005 15:32:41 +0000 (15:32 +0000)
as the coverage buffer/file/both may change.

lisp/ido.el

index 012be3da37f593a43e1de3af360d1449f4eda725..2d9313bb0eac09c65ddd41b8f4628192fa61230b 100644 (file)
@@ -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))