From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dnquark Newsgroups: gmane.emacs.help Subject: ido breaks command-history Date: Sat, 11 Jul 2009 17:58:15 -0700 (PDT) Organization: http://groups.google.com Message-ID: <5cf19341-41c0-4046-9c38-3187d8676959@k20g2000vbp.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1247362861 17376 80.91.229.12 (12 Jul 2009 01:41:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Jul 2009 01:41:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 12 03:40:54 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MPo3h-0005Jw-OD for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Jul 2009 03:40:54 +0200 Original-Received: from localhost ([127.0.0.1]:33737 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MPo3h-0002s5-6T for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Jul 2009 21:40:53 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!k20g2000vbp.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: 98.223.64.197 Original-X-Trace: posting.google.com 1247360295 2872 127.0.0.1 (12 Jul 2009 00:58:15 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 12 Jul 2009 00:58:15 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k20g2000vbp.googlegroups.com; posting-host=98.223.64.197; posting-account=nQKzDwoAAADiNnsVsJOw54VLeNKCeQkD User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:170769 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65970 Archived-At: 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)))