unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Daniel Brockman <daniel@brockman.se>
Subject: ido, Ibuffer, and dropping into Dired
Date: Sat, 14 May 2005 21:29:11 +0200	[thread overview]
Message-ID: <871x894neg.fsf@wigwam.deepwood.net> (raw)

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 <daniel@brockman.se>

             reply	other threads:[~2005-05-14 19:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-14 19:29 Daniel Brockman [this message]
2005-05-14 23:04 ` ido, Ibuffer, and dropping into Dired Kim F. Storm
2005-05-15  2:56   ` Daniel Brockman
2005-05-15 23:10     ` Kim F. Storm

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=871x894neg.fsf@wigwam.deepwood.net \
    --to=daniel@brockman.se \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).