unofficial mirror of bug-gnu-emacs@gnu.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
[parent not found: <mailman.2739.1095182044.1998.bug-gnu-emacs@gnu.org>]

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 --
2004-09-14 17:07 Allow prefix arg for ido-find-*file* (maybe) Sean O'Rourke
     [not found] <mailman.2739.1095182044.1998.bug-gnu-emacs@gnu.org>
2004-09-25  0:13 ` 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

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).