[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.
- Re: Dired delete(d) the wrong file!, (continued)
- Re: Dired delete(d) the wrong file!, Eli Zaretskii, 2024/07/05
- Re: Dired delete(d) the wrong file!, Dave Goel, 2024/07/05
- Re: Dired delete(d) the wrong file!, Dave Goel, 2024/07/05
- Re: Dired delete(d) the wrong file!, Dave Goel, 2024/07/05
- Re: Dired delete(d) the wrong file!, Dave Goel, 2024/07/05
- Re: Dired delete(d) the wrong file!, Eli Zaretskii, 2024/07/05
- Re: Dired delete(d) the wrong file!, Dave Goel, 2024/07/05
- Re: Dired delete(d) the wrong file!, Eli Zaretskii, 2024/07/05
- Re: Dired delete(d) the wrong file!, Stefan Kangas, 2024/07/05
- Re: Dired delete(d) the wrong file!, Eli Zaretskii, 2024/07/05
- Re: Dired delete(d) the wrong file!,
Michael Heerdegen <=
- Re: Dired delete(d) the wrong file!, Eli Zaretskii, 2024/07/06
- Re: Dired delete(d) the wrong file!, Po Lu, 2024/07/05
- Re: Dired delete(d) the wrong file!, Michael Heerdegen, 2024/07/05