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: ido, Ibuffer, and dropping into Dired Date: Sat, 14 May 2005 21:29:11 +0200 Message-ID: <871x894neg.fsf@wigwam.deepwood.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1116099305 32534 80.91.229.2 (14 May 2005 19:35:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 14 May 2005 19:35:05 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 14 21:35:03 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DX2PU-0004Ic-5w for ged-emacs-devel@m.gmane.org; Sat, 14 May 2005 21:34:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DX2RA-0000me-Ef for ged-emacs-devel@m.gmane.org; Sat, 14 May 2005 15:36:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DX2Pu-0000T0-2H for emacs-devel@gnu.org; Sat, 14 May 2005 15:35:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DX2Pp-0000Qy-Tk for emacs-devel@gnu.org; Sat, 14 May 2005 15:35:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DX2Pl-0000PO-PA for emacs-devel@gnu.org; Sat, 14 May 2005 15:35:10 -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 1DX2SO-0001LA-KI for emacs-devel@gnu.org; Sat, 14 May 2005 15:37:52 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DX2KV-0003t1-H2 for emacs-devel@gnu.org; Sat, 14 May 2005 21:29:43 +0200 Original-Received: from c-54b670d5.028-10-67766c2.cust.bredbandsbolaget.se ([213.112.182.84]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 May 2005 21:29:43 +0200 Original-Received: from daniel by c-54b670d5.028-10-67766c2.cust.bredbandsbolaget.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 May 2005 21:29:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 28 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: c-54b670d5.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:A3jqA1b2GBjm6kuyffLQFHuLKD8= 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:37144 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37144 Not really sure whether this is a bug or a strange feature, but here's how to reproduce it: 1. Enable `ido-mode' and `ido-everywhere' via customize. 2. Type C-x C-f and verify that C-d drops you into dired. 3. Enter Ibuffer using M-x ibuffer RET. 4. Type C-x C-f and note how C-d is now bound to 'ignore. I don't see any reason why it should not be possible to drop into Dired just because C-x C-f was typed in the *Ibuffer* buffer. This is a sketchy outline of what's going on: In the *Ibuffer* buffer, C-x C-f is bound to `ibuffer-find-file', which sets `default-directory' and then calls `read-file-name', which in turn calls `ido-read-file-name'. >>From there, I can't follow the code any longer. However, I believe that at some point, `ido-context-switch-command' is set, which causes this line in ido.el (define-key map "\C-d" (or (and ido-context-switch-command 'ignore) 'ido-enter-dired)) to bind C-d to 'ignore. That line certainly looks like it knows what it's doing, but I still think this is a bug. I've been annoyed by the current behavior several times. -- Daniel Brockman