emacs-devel
[Top][All Lists]
Advanced

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

Re: empty-directory predicate, native implementation


From: Michael Albinus
Subject: Re: empty-directory predicate, native implementation
Date: Sun, 18 Oct 2020 18:43:25 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Drew Adams <drew.adams@oracle.com> writes:

Hi Drew,

> `directory-files-no-dot-files-regexp' was added to Emacs 23.
> Its value then was the same as that of `diredp-re-no-dot':
> "^\\([^.]\\|\\.\\([^.]\\|\\..\\)\\).*".  The value was
> changed in Emacs 27, to "[^.]\\|\\.\\.\\.".
>
> For my purposes (Dired) I want the former, not the latter,
> so `diredp-re-no-dot' remains the former.  The two behave
> quite differently.
>
> See https://lists.gnu.org/archive/html/emacs-devel/2020-04/msg00764.html

FTR, I have also problems to understand how the current value of
directory-files-no-dot-files-regexp works. But I fail to find a case
where it is wrong.

(string-match directory-files-no-dot-files-regexp ".") => nil
(string-match directory-files-no-dot-files-regexp "..") => nil
(string-match directory-files-no-dot-files-regexp ".a") => 1
(string-match directory-files-no-dot-files-regexp "..a") => 2

Could you pls give me an example which shows the problem with that
constant? In case there is, I'll lobby for your request in the given
message :-)

Thanks, and best regards, Michael.



reply via email to

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