changeset 63430:0e0fb0040526

(ido-mode): Make a new keymap every time we enable ido, as the coverage buffer/file/both may change.
author Kim F. Storm <storm@cua.dk>
date Tue, 14 Jun 2005 15:32:41 +0000
parents 48eb49d929fd
children fd4b70bc23a4
files lisp/ido.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ido.el	Tue Jun 14 15:32:27 2005 +0000
+++ b/lisp/ido.el	Tue Jun 14 15:32:41 2005 +0000
@@ -1320,7 +1320,8 @@
 
     (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))