[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: find-directory-p always returns nil in locate-mode on windows xp
From: |
Luc Teirlinck |
Subject: |
Re: find-directory-p always returns nil in locate-mode on windows xp |
Date: |
Sun, 23 May 2004 15:56:40 -0500 (CDT) |
>From my previous message:
Note that "i" does not seem to work very well, _even_ if
default-directory is "/". It somehow did not list "goodCVS" and
"VCS". This is strange. But I am not desperate to use "i" in
*Locate* buffers.
I understand the problem now, but I am not sure what the best solution
is. I do not know how important 'i' is in locate buffers. I only
tried it to see if it worked with default-directory set to something
else than "/".
locate-mode contains:
(make-local-variable 'dired-actual-switches)
(setq dired-actual-switches "")
but I believe that a lot of code (`insert-directory' at the very least)
assumes dired-actual-switches to contain at least "-l".
[bash2.05b.0 ~ 3 2] ls -l --dired compdir
total 20
-rw-rw-r-- 1 teirllm teirllm 14 Apr 11 21:13 blabla
-rw-rw-r-- 1 teirllm teirllm 8 Apr 11 21:13 blabla~
drwxrwxr-x 2 teirllm teirllm 4096 Apr 5 21:42 gogoCVS
drwxrwxr-x 2 teirllm teirllm 4096 Apr 5 21:42 goodCVS
drwxrwxr-x 2 teirllm teirllm 4096 Apr 5 21:42 VCS
//DIRED// 69 75 134 141 200 207 266 273 332 335
//DIRED-OPTIONS// --quoting-style=(null)
When called from dired, insert-directory assumes those two last lines
are present and erases them. But "--dired" only produces those two
lines if "-l" is also present. Thus, in the case of locate.el, these
two lines are not there. `insert-directory' erases the last two lines
anyway. If the directory contains at least two lines, two lines will
be missing. If not, we get an end-of-buffer error.
Sincerely,
Luc.
- Re: find-directory-p always returns nil in locate-mode on windows xp, (continued)
- Re: find-directory-p always returns nil in locate-mode on windows xp, Peter Lee, 2004/05/27
- Re: find-directory-p always returns nil in locate-mode on windows xp, Stefan Monnier, 2004/05/27
- Re: find-directory-p always returns nil in locate-mode on windows xp, Luc Teirlinck, 2004/05/28
- Re: find-directory-p always returns nil in locate-mode on windows xp, Eli Zaretskii, 2004/05/26
- Re: find-directory-p always returns nil in locate-mode on windows xp, Luc Teirlinck, 2004/05/25
- Re: find-directory-p always returns nil in locate-mode on windows xp, Luc Teirlinck, 2004/05/25
- Re: find-directory-p always returns nil in locate-mode on windows xp, Luc Teirlinck, 2004/05/24
- Re: find-directory-p always returns nil in locate-mode on windows xp,
Luc Teirlinck <=
- Re: find-directory-p always returns nil in locate-mode on windows xp, Eli Zaretskii, 2004/05/24
- Re: find-directory-p always returns nil in locate-mode on windows xp, Eli Zaretskii, 2004/05/24
- Re: find-directory-p always returns nil in locate-mode on windows xp, Eli Zaretskii, 2004/05/23
- Re: find-directory-p always returns nil in locate-mode on windows xp, Jason Rumney, 2004/05/23
- Re: find-directory-p always returns nil in locate-mode on windows xp, Peter Lee, 2004/05/20
- Re: find-directory-p always returns nil in locate-mode on windows xp, Jason Rumney, 2004/05/20
- Re: find-directory-p always returns nil in locate-mode on windows xp, Luc Teirlinck, 2004/05/20