[Top][All Lists]

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

Problem with Emacs 28.1 and dired on Windows

From: Pascal Quesseveur
Subject: Problem with Emacs 28.1 and dired on Windows
Date: Tue, 21 Jun 2022 10:16:02 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (windows-nt)


I am encountering a problem with dired using emacs 28.1 on Windows 10.

I open a dired buffer on a dir named "C:/Users/Public/Applis"
containing a symbolic link named "Dir01" (the link has been created on
Windows 10 with command mklink /D). In dired Dir01 is followed by ->
and the name of the real directory.

In 27.1 when I hit i (dired-maybe-insert-subdir) on Dir01, it opens
content of Dir01 in the current dired buffer. In 28.1, emacs displays
an error message:

C:/Users/Public/Applis/Dir01 not in this directory tree

There is a change in (dired-insert-subdir-validate). To verify the
directory emacs now calls (file-in-directory-p) instead of
(dired-in-this-tree-p). And:

(dired-in-this-tree-p "C:/Users/Public/Applis/Dir01/" "C:/Users/Public/")
-> 0

(file-in-directory-p "C:/Users/Public/Applis/Dir01/" "C:/Users/Public/")
-> nil

Pascal Quesseveur

reply via email to

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