From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Brockman Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Switching from (ido-mode 'both) to (ido-mode 'buffer) doesn't work Date: Tue, 14 Jun 2005 07:28:05 +0200 Message-ID: <87ll5dtsm2.fsf@wigwam.deepwood.net> References: <87acmtjicw.fsf@wigwam.deepwood.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1118727000 8348 80.91.229.2 (14 Jun 2005 05:30:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Jun 2005 05:30:00 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 14 07:29:52 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Di3zc-0005hQ-Qi for ged-emacs-devel@m.gmane.org; Tue, 14 Jun 2005 07:29:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Di44Z-0005wq-1h for ged-emacs-devel@m.gmane.org; Tue, 14 Jun 2005 01:34:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Di44E-0005uj-Po for emacs-devel@gnu.org; Tue, 14 Jun 2005 01:34:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Di44A-0005sF-GS for emacs-devel@gnu.org; Tue, 14 Jun 2005 01:34:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Di448-0005q1-7P for emacs-devel@gnu.org; Tue, 14 Jun 2005 01:34:24 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1Di3vJ-0007Ou-Mg for emacs-devel@gnu.org; Tue, 14 Jun 2005 01:25:18 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Di3p3-0004zG-44 for emacs-devel@gnu.org; Tue, 14 Jun 2005 07:18:49 +0200 Original-Received: from c-4fb670d5.028-10-67766c2.cust.bredbandsbolaget.se ([213.112.182.79]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Jun 2005 07:18:49 +0200 Original-Received: from daniel by c-4fb670d5.028-10-67766c2.cust.bredbandsbolaget.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Jun 2005 07:18:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 43 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: c-4fb670d5.028-10-67766c2.cust.bredbandsbolaget.se X-Face: :&2UWGm>e24)ip~'K@iOsA&JT3JX*v@1-#L)=dUb825\Fwg#`^N!Y*g-TqdS AevzjFJe96f@V'ya8${57/T'"mTd`1o{TGYhHnVucLq!D$r2O{IN)7>.0op_Y`%r;/Q +(]`3F-t10N7NF\.Mm0q}p1:%iqTi:5]1E]rDF)R$9.!,Eu'9K':y9^U3F8UCS1M+A$ 8[[[WT^`$P[vu>P+8]aQMh9giu&fPCqLW2FSsGs User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:Dc+a7Krw6Jfach75u1Op5Jfnat8= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:38782 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38782 --=-=-= I sent this patch over three weeks ago, but didn't get any response. Kim, could you check whether this patch is ok? --=-=-= Content-Type: text/x-patch Content-Disposition: inline *** ido.el 14 Jun 2005 06:25:37 +0200 1.61 --- ido.el 14 Jun 2005 07:24:49 +0200 *************** *** 1320,1328 **** (add-hook 'kill-emacs-hook 'ido-kill-emacs-hook) ! (unless ido-minor-mode-map-entry ! (setq ido-minor-mode-map-entry (cons 'ido-mode (make-sparse-keymap))) ! (add-to-list 'minor-mode-map-alist ido-minor-mode-map-entry)) (let ((map (cdr ido-minor-mode-map-entry))) (when (memq ido-mode '(file both)) --- 1320,1330 ---- (add-hook 'kill-emacs-hook 'ido-kill-emacs-hook) ! ;; Rebuild the keymap each time so that old bindings are not retained. ! ;; This is necessary when switching from `both' to either `buffer' or `file'. ! (setq ido-minor-mode-map-entry (cons 'ido-mode (make-sparse-keymap))) ! (setq minor-mode-map-alist (assq-delete-all 'ido-mode minor-mode-map-alist)) ! (add-to-list 'minor-mode-map-alist ido-minor-mode-map-entry) (let ((map (cdr ido-minor-mode-map-entry))) (when (memq ido-mode '(file both)) --=-=-= -- Daniel Brockman --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --=-=-=--