From: Kim F. Storm Date: Tue, 14 Jun 2005 15:32:41 +0000 (+0000) Subject: (ido-mode): Make a new keymap every time we enable ido, X-Git-Tag: emacs-pretest-22.0.90~8947 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1939ac922fbae817e08ca325b6c56964b26cdc36;p=emacs.git (ido-mode): Make a new keymap every time we enable ido, as the coverage buffer/file/both may change. --- 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))