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

[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: Mon, 24 May 2004 09:29:11 -0500 (CDT)

Eli Zaretskii <address@hidden> wrote:

   As I said earlier, `i' works for me in the DOS port.

   Can you show where in the code invoked by `i' does Emacs concatenate
   default-directory with "/home/teirllm/compdir/"?  It obviously does
   something that doesn't fail on non-Posix platforms, but what?

How did you test this?  If you first construct a *Locate* buffer using
M-x locate, then you can reset default-directory to any value you
like in it and `i' will work fine.  The reason is the following code
from locate.el:

  (setq major-mode          'locate-mode
        mode-name           "Locate"
        default-directory   "/")
  (dired-alist-add-1 default-directory (point-min-marker))

Note that the value "/" becomes hard-coded in `dired-subdir-alist' by
the call to dired-alist-add-1.  Hence, to check whether changing
default-directory in locate-mode is OK, you actually have to change it
in locate-mode, do C-M-x on locate-mode and construct a new *Locate*
buffer.  Just resetting default-directory in the *Locate* buffer will
give misleading results.

Sincerely,

Luc.




reply via email to

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