From 1939ac922fbae817e08ca325b6c56964b26cdc36 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Tue, 14 Jun 2005 15:32:41 +0000 Subject: [PATCH] (ido-mode): Make a new keymap every time we enable ido, as the coverage buffer/file/both may change. --- lisp/ido.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- 2.39.2