unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Problem with Emacs 28.1 and dired on Windows
@ 2022-06-21  8:16 Pascal Quesseveur
  2022-06-21 11:22 ` Michael Heerdegen
  2022-06-21 12:38 ` Tassilo Horn
  0 siblings, 2 replies; 5+ messages in thread
From: Pascal Quesseveur @ 2022-06-21  8:16 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

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
pquessev@gmail.com




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with Emacs 28.1 and dired on Windows
  2022-06-21  8:16 Problem with Emacs 28.1 and dired on Windows Pascal Quesseveur
@ 2022-06-21 11:22 ` Michael Heerdegen
  2022-06-21 12:38 ` Tassilo Horn
  1 sibling, 0 replies; 5+ messages in thread
From: Michael Heerdegen @ 2022-06-21 11:22 UTC (permalink / raw)
  To: help-gnu-emacs; +Cc: Tassilo Horn

Pascal Quesseveur <pquessev@gmail.com> writes:

> 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

Let's then CC the author of this change, Tassilo Horn.

Michael.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with Emacs 28.1 and dired on Windows
  2022-06-21  8:16 Problem with Emacs 28.1 and dired on Windows Pascal Quesseveur
  2022-06-21 11:22 ` Michael Heerdegen
@ 2022-06-21 12:38 ` Tassilo Horn
  2022-06-21 15:35   ` Pascal Quesseveur
  1 sibling, 1 reply; 5+ messages in thread
From: Tassilo Horn @ 2022-06-21 12:38 UTC (permalink / raw)
  To: pquessev; +Cc: help-gnu-emacs

Pascal Quesseveur <pquessev@gmail.com> writes:

Hi Pascal,

> 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

Sorry, this is my fault.  Could you please file a bug report with M-x
report-emacs-bug and add me to the Cc, please?

Bye,
Tassilo



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with Emacs 28.1 and dired on Windows
  2022-06-21 12:38 ` Tassilo Horn
@ 2022-06-21 15:35   ` Pascal Quesseveur
  2022-06-21 19:45     ` Tassilo Horn
  0 siblings, 1 reply; 5+ messages in thread
From: Pascal Quesseveur @ 2022-06-21 15:35 UTC (permalink / raw)
  To: help-gnu-emacs

>"TH" == Tassilo Horn <tsdh@gnu.org> writes:

  Hi Tassilo,
  
  TH> Sorry, this is my fault.  Could you please file a bug report
  TH> with M-x report-emacs-bug and add me to the Cc, please?

  It's done.


-- 
Pascal Quesseveur
pquessev@gmail.com




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with Emacs 28.1 and dired on Windows
  2022-06-21 15:35   ` Pascal Quesseveur
@ 2022-06-21 19:45     ` Tassilo Horn
  0 siblings, 0 replies; 5+ messages in thread
From: Tassilo Horn @ 2022-06-21 19:45 UTC (permalink / raw)
  To: pquessev; +Cc: help-gnu-emacs

Pascal Quesseveur <pquessev@gmail.com> writes:

Hi Pascal,

>   TH> Sorry, this is my fault.  Could you please file a bug report
>   TH> with M-x report-emacs-bug and add me to the Cc, please?
>
>   It's done.

And it's fixed already in the emacs-28 branch so will be in a
hypothetical but likely emacs 28.2 release.

Thank you,
Tassilo



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-06-21 19:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-21  8:16 Problem with Emacs 28.1 and dired on Windows Pascal Quesseveur
2022-06-21 11:22 ` Michael Heerdegen
2022-06-21 12:38 ` Tassilo Horn
2022-06-21 15:35   ` Pascal Quesseveur
2022-06-21 19:45     ` Tassilo Horn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).