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: Re: Allow prefix arg for ido-find-*file* (maybe) Date: Fri, 24 Sep 2004 18:54:37 -0700 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: 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 1096077322 14463 80.91.229.6 (25 Sep 2004 01:55:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 25 Sep 2004 01:55:22 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 25 03:55:10 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CB1mI-0006XW-00 for ; Sat, 25 Sep 2004 03:55:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CB1sO-0000F8-OW for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Sep 2004 22:01:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CB1sN-0000Em-BW for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2004 22:01:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CB1sL-0000EP-Ny for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2004 22:01:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CB1sL-0000EM-LZ for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2004 22:01:25 -0400 Original-Received: from [132.239.1.59] (helo=mailbox7.ucsd.edu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CB1lq-0003Fn-AA for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2004 21:54:42 -0400 Received-SPF: none (mailbox7.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 mailbox7.ucsd.edu (8.13.1/8.13.1) with ESMTP id i8P1scoi032165 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 24 Sep 2004 18:54:38 -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 i8P1sbv2002923 for ; Fri, 24 Sep 2004 18:54:37 -0700 (PDT) In-Reply-To: User-Agent: Wanderlust/2.11.31 (Wonderwall) Emacs/21.3 Mule/5.0 (SAKAKI) X-feed-my-spam-filter: please X-MailScanner: PASSED (v1.2.8 21755 i8P1scoi032165 mailbox7.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:9079 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:9079 At Sat, 25 Sep 2004 02:13:01 +0200, no-spam@cua.dk (Kim F. Storm) wrote: > It only works on systems (e.g GNU/Linux) where file-attributes returns > a sensible size for directories. So it probably fails on Windoze... Thanks for looking into this. It looks like it does the trick, though the default threshhold is way too high to have an effect -- something like 4096 or 8192 might be better. file-attributes seems sensical on Darwin as well, though I'd rather specify a (possibly rough) number of files, and (length (directory-files DIR nil nil t)) isn't that slow -- it's all the filtering and fontification done by ido that slows things down. FWIW, on Darwin the second element of file-attributes seems to be the number of files. Weird. /s