all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* ido breaks command-history
@ 2009-07-12  0:58 dnquark
  2009-07-13 20:40 ` muede
  0 siblings, 1 reply; 2+ messages in thread
From: dnquark @ 2009-07-12  0:58 UTC (permalink / raw)
  To: help-gnu-emacs

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)))


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-13 20:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-12  0:58 ido breaks command-history dnquark
2009-07-13 20:40 ` muede

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.