From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Sean O'Rourke" Newsgroups: gmane.emacs.bugs Subject: Allow prefix arg for ido-find-*file* (maybe) Date: Tue, 14 Sep 2004 10:07:53 -0700 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1095190151 32162 80.91.229.6 (14 Sep 2004 19:29:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Sep 2004 19:29:11 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 14 21:28:57 2004 Return-path: Original-Received: from mail-relay.eunet.no ([193.71.71.242]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C7HnW-0001GS-04 for ; Tue, 14 Sep 2004 20:12:58 +0200 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by mail-relay.eunet.no (8.12.11/8.12.11/GN) with ESMTP id i8EH8P3Y052009 for ; Tue, 14 Sep 2004 19:08:25 +0200 (CEST) (envelope-from bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org) Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7Gsd-0003bZ-LZ for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Sep 2004 13:14:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7GsU-0003V0-Qt for bug-gnu-emacs@gnu.org; Tue, 14 Sep 2004 13:14:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7GsR-0003Tk-NJ for bug-gnu-emacs@gnu.org; Tue, 14 Sep 2004 13:14:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7GsR-0003T9-DW for bug-gnu-emacs@gnu.org; Tue, 14 Sep 2004 13:13:59 -0400 Original-Received: from [132.239.1.58] (helo=mailbox6.ucsd.edu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C7Gmd-0006Ag-IM for bug-gnu-emacs@gnu.org; Tue, 14 Sep 2004 13:07:59 -0400 Received-SPF: none (mailbox6.ucsd.edu: domain of sorourke@cs.ucsd.edu does not designate permitted sender hosts) Original-Received: from smtp.ucsd.edu (smtp-a.ucsd.edu [132.239.1.49]) by mailbox6.ucsd.edu (8.13.1/8.13.1) with ESMTP id i8EH7sIk017856 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 14 Sep 2004 10:07:55 -0700 (PDT) Original-Received: from 803631aa.dynamic.ucsd.edu (803631aa.dynamic.ucsd.edu [128.54.49.170]) by smtp.ucsd.edu (8.12.10/8.9.3) with ESMTP id i8EH7rv2004233 for ; Tue, 14 Sep 2004 10:07:53 -0700 (PDT) Original-To: bug-gnu-emacs@gnu.org User-Agent: Wanderlust/2.11.31 (Wonderwall) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/21.3.50 (powerpc-apple-darwin7.5.0) MULE/5.0 (SAKAKI) X-MailScanner: PASSED (v1.2.8 3209 i8EH7sIk017856 mailbox6.ucsd.edu) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:9005 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:9005 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))