all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: muede <politza@googlemail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: ido breaks command-history
Date: Mon, 13 Jul 2009 13:40:06 -0700 (PDT)	[thread overview]
Message-ID: <9f515737-2201-4958-899a-d435fc266797@v2g2000vbb.googlegroups.com> (raw)
In-Reply-To: 5cf19341-41c0-4046-9c38-3187d8676959@k20g2000vbp.googlegroups.com

On Jul 12, 2:58 am, dnquark <dnqu...@gmail.com> wrote:
> 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)))


`repeat' handles the special case, where `last-repeatable-command'
is `exit-minibuffer', so a advice, which treats `ido-exit-minibuffer'
as `exit-minibuffer' will probably work.

(defadvice repeat (before repeat-fix-ido activate)
  (when (eq last-repeatable-command 'ido-exit-minibuffer)
    (setq last-repeatable-command 'exit-minibuffer)))

-ap


      reply	other threads:[~2009-07-13 20:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-12  0:58 ido breaks command-history dnquark
2009-07-13 20:40 ` muede [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9f515737-2201-4958-899a-d435fc266797@v2g2000vbb.googlegroups.com \
    --to=politza@googlemail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.