help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ido breaks command-history


From: dnquark
Subject: ido breaks command-history
Date: Sat, 11 Jul 2009 17:58:15 -0700 (PDT)
User-agent: G2/1.0

I am using ido to complete the M-x commands, as described on EmacsWiki
-- http://www.emacswiki.org/emacs/InteractivelyDoThings.
Unfortunately, when ido is used M-x commands are no longer recorder in
the command history. As a result, C-x z, as well as browsing history
in the minibuffer with M-p and M-n no longer works. Does anyone have
an idea of how to go about fixing thisi?.. The emacsWiki code is
below:

 (setq ido-execute-command-cache nil)

 (defun ido-execute-command ()
   (interactive)
   (call-interactively
    (intern
     (ido-completing-read
      "M-x "
      (progn
        (unless ido-execute-command-cache
          (mapatoms (lambda (s)
                      (when (commandp s)
                        (setq ido-execute-command-cache
                              (cons (format "%S" s) ido-execute-
command-cache))))))
        ido-execute-command-cache)))))

 (add-hook 'ido-setup-hook
           (lambda ()
             (setq ido-enable-flex-matching t)
             (global-set-key "\M-x" 'ido-execute-command)))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]