From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.bugs Subject: Re: large files not found with `read-file-name' Date: Fri, 12 Apr 2002 12:57:20 +0300 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <2561-Fri12Apr2002125720+0300-eliz@is.elta.co.il> References: <200204112026.QAA27376@rds294.goodyear.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1018605791 8204 127.0.0.1 (12 Apr 2002 10:03:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 12 Apr 2002 10:03:11 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, t901353@rds294.goodyear.com Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16vxtf-00028D-00 for ; Fri, 12 Apr 2002 12:03:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16vxtd-0005z5-00; Fri, 12 Apr 2002 06:03:09 -0400 Original-Received: from frigg.inter.net.il ([192.114.186.16]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16vxsb-0001MM-00 for ; Fri, 12 Apr 2002 06:02:06 -0400 Original-Received: from zaretsky (diup-217-177.inter.net.il [213.8.217.177]) by frigg.inter.net.il (Mirapoint Messaging Server MOS 2.9.3.2) with ESMTP id BID72999; Fri, 12 Apr 2002 13:01:59 +0300 (IDT) Original-To: twurgler@goodyear.com X-Mailer: emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9 In-Reply-To: <200204112026.QAA27376@rds294.goodyear.com> (message from Tom Wurgler on Thu, 11 Apr 2002 16:26:50 -0400 (EDT)) Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:600 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:600 > From: Tom Wurgler > Date: Thu, 11 Apr 2002 16:26:50 -0400 (EDT) > > One of the users here has a file thusly: > > -rw-rw-r-- 1 tomw bob 2399830016 Apr 11 11:41 sample.file > > Which GNU ls does list in a dired properly, albeit the filenames are not > aligned etc. > > But he has a emacs-lisp defun that prompts him for various input, one of > which is the above "sample.file" filename. The file completion does not find > the file. He is not trying to read the file itself, just get the filename and > then he runs a shell job with the inputs gained from his elisp... > > The line below demostates the problem: > > (setq tommy (read-file-name "Enter the name: ")) > > You can start typing "sa" at the prompt, then hit "tab" and all files that start > with "sa" are displayed except the "sample.file". Why doesn't this file show > up? A stab in the dark: perhaps this happens because the standard C library used to link Emacs has a version of the `stat' function which doesn't support large files? (2399830016 is more than 2GBytes.) If `stat' fails for that file, Emacs completion routines will behave as if the file didn't exist, I think. If my guess is true, `ls' could have been built with large file support enabled.