bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: large files not found with `read-file-name'


From: Eli Zaretskii
Subject: Re: large files not found with `read-file-name'
Date: Fri, 12 Apr 2002 12:57:20 +0300

> From: Tom Wurgler <twurgler@goodyear.com>
> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]