emacs-devel
[Top][All Lists]
Advanced

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

Re: Dired delete(d) the wrong file!


From: Michael Heerdegen
Subject: Re: Dired delete(d) the wrong file!
Date: Sat, 06 Jul 2024 01:28:37 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Eli Zaretskii <eliz@gnu.org> writes:

> diff --git a/lisp/files.el b/lisp/files.el
> index 042b8e2..c518273 100644
> --- a/lisp/files.el
> +++ b/lisp/files.el
> @@ -8087,8 +8087,8 @@ insert-directory-clean
>                 (end (insert-directory-adj-pos
>                       (+ beg (read (current-buffer)))
>                       error-lines)))
> -           (if (memq (char-after end) '(?\n ?\s))
> -               ;; End is followed by \n or by " -> ".
> +           (if (memq (char-after end) '(?\n ?\s ?/ ?* ?@ ?% ?= ?|))
> +               ;; End is followed by \n or by output of -F.

How about emitting a warning message when this condition fails?  It
could help us to detect other problematic cases and warn users that
Dired needs to fall back to a heuristical parsing of ls output.


Michael.




reply via email to

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