[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: empty-directory predicate, native implementation
From: |
Arthur Miller |
Subject: |
Re: empty-directory predicate, native implementation |
Date: |
Tue, 13 Oct 2020 20:32:59 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Michael Albinus <michael.albinus@gmx.de> writes:
> Arthur Miller <arthur.miller@live.com> writes:
>
> Hi Arthur,
>
>> I have seen in the source code calls to Ffind_file_handler, and have
>> been looking at the function in fileio.c, but I didn't figured out what
>> it really does, so I didn't use it. I tested without and it worked fine
>> :-). Anyway, I have added it now, but I am not sure if I using it
>> correctly, since I am not sure what it does.
>
> Looks good.
>
> Simplified spoken, this code makes Tramp work. If you call for example
> (directory-empty-p "/sudo::/") , find-file-name-handler (the ELisp
> equivalent to Ffind_file_name_handler) checks, whether Tramp feels
> responsible for this directory name, and it calls Tramp's function in
> case.
>
> You know, that your function cannot handle "/sudo::/".
:-) Actually I forgott that part completely.
>> By the way, what are "special constructs" referred to in the comment?
>
> Tramp file name syntax here. See (info "(elisp) Magic File Names")
>
Thank you very much for kind explanation; I have read the info now, and
I understand it now. Not sure that I know how to implement it though,
but it does not matter; Eli's suggestion seems even better; I think.
- empty-directory predicate, native implementation, Arthur Miller, 2020/10/12
- Re: empty-directory predicate, native implementation, Michael Albinus, 2020/10/13
- Re: empty-directory predicate, native implementation, Arthur Miller, 2020/10/13
- Re: empty-directory predicate, native implementation, Michael Albinus, 2020/10/13
- Re: empty-directory predicate, native implementation,
Arthur Miller <=
- Re: empty-directory predicate, native implementation, Michael Albinus, 2020/10/13
- Re: empty-directory predicate, native implementation, Arthur Miller, 2020/10/13
- Re: empty-directory predicate, native implementation, Michael Albinus, 2020/10/14
- Re: empty-directory predicate, native implementation, Arthur Miller, 2020/10/14
Re: empty-directory predicate, native implementation, Eli Zaretskii, 2020/10/13
- Re: empty-directory predicate, native implementation, Arthur Miller, 2020/10/13
- Re: empty-directory predicate, native implementation, Eli Zaretskii, 2020/10/13
- Re: empty-directory predicate, native implementation, Arthur Miller, 2020/10/13
- Re: empty-directory predicate, native implementation, Eli Zaretskii, 2020/10/14
- Re: empty-directory predicate, native implementation, Arthur Miller, 2020/10/14