all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Allow prefix arg for ido-find-*file* (maybe)
@ 2004-09-14 17:07 Sean O'Rourke
  0 siblings, 0 replies; 5+ messages in thread
From: Sean O'Rourke @ 2004-09-14 17:07 UTC (permalink / raw)


ido mode is currently unusably slow when finding a file in a large
directory.  For example, in a directory with ~3000 files,
`ido-find-file' takes several seconds to come up with a prompt.  When
you know you're in such a directory, it would be nice to bypass ido
entirely and fall back to the original `find-file'.  Since the ido
functions currently don't use a prefix argument, I think that when
called with a prefix argument, the ido functions should fall back to
their non-ido equivalents.

/s

ps -- here's a defadvice to get the effect I want:

    (defadvice ido-find-file (around allow-prefix compile activate)
      (if current-prefix-arg
          (let ((read-file-name-function nil))
            (call-interactively 'find-file))
          ad-do-it))
    
    (defadvice ido-find-file-other-window (around allow-prefix compile activate)
      (if current-prefix-arg
          (let ((read-file-name-function nil))
            (call-interactively 'find-file-other-window))
          ad-do-it))
    
    (defadvice ido-find-alternate-file (around allow-prefix compile activate)
      (if current-prefix-arg
          (let ((read-file-name-function nil))
            (call-interactively 'find-alternate-file))
          ad-do-it))

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-09-26 22:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.2739.1095182044.1998.bug-gnu-emacs@gnu.org>
2004-09-25  0:13 ` Allow prefix arg for ido-find-*file* (maybe) Kim F. Storm
2004-09-25  1:54   ` Sean O'Rourke
     [not found]   ` <mailman.3966.1096077688.1998.bug-gnu-emacs@gnu.org>
2004-09-26 21:29     ` Kim F. Storm
2004-09-26 22:02       ` Sean O'Rourke
2004-09-14 17:07 Sean O'Rourke

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.