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: Peter Lee
Subject: Re: find-directory-p always returns nil in locate-mode on windows xp
Date: Thu, 20 May 2004 12:57:08 -0500
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (windows-nt)

>>>> Eli Zaretskii writes:

    Eli> Could you try modifying locate.el to bind default-directory
    Eli> to something sensible in the *Locate* buffer, and see if that
    Eli> helps?

Changing the default-directory to "~/" instead of "/" fixes the
problem.  I'm not sure if it's a valid solution across all systems
though.  Thanks.

*** e:/cvs/emacs/lisp/locate.el~        Wed Sep  3 18:23:14 2003
--- e:/cvs/emacs/lisp/locate.el Thu May 20 12:46:09 2004
***************
*** 336,342 ****
    (use-local-map             locate-mode-map)
    (setq major-mode          'locate-mode
          mode-name           "Locate"
!         default-directory   "/")
    (dired-alist-add-1 default-directory (point-min-marker))
    (make-local-variable 'dired-move-to-filename-regexp)
    ;; This should support both Unix and Windoze style names
--- 336,342 ----
    (use-local-map             locate-mode-map)
    (setq major-mode          'locate-mode
          mode-name           "Locate"
!         default-directory   "~/")
    (dired-alist-add-1 default-directory (point-min-marker))
    (make-local-variable 'dired-move-to-filename-regexp)
    ;; This should support both Unix and Windoze style names




reply via email to

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