[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: package-vc support for :files keyword
From: |
Tony Zorman |
Subject: |
Re: package-vc support for :files keyword |
Date: |
Mon, 25 Sep 2023 15:32:26 +0200 |
On Sun, Sep 24 2023 16:31, Philip Kaludercic wrote:
> Tony Zorman <tonyzorman@mailbox.org> writes:
>
>> On Wed, Sep 20 2023 07:32, Philip Kaludercic wrote:
>>> + (unless (string-match-p ignored-files file)
>>
>> One thing that did jump out to me just now, which I hadn't considered
>> before: when ignored-files is the empty string, this will always match
>> any file—not what we want :)
>
> Do you mean because the empty glob expression doesn't match everything,
> but the empty regular expression does?
>
> The easiest solution seems to be to just check if the empty string is
> listed and handle that separately (whatever the correct behaviour is in
> that case), but on the other hand, why should a user list an empty
> string in the list of ignored files?
The point I was making was that `(mapconcat (λ…) nil) ≡ ""`, since
mapconcat always returns a string. Even if there were no :ignored-files
listed, the ignored-files variable would then be the empty string,
matching each and every file.
--
Tony Zorman | https://tony-zorman.com/
- Re: package-vc support for :files keyword, (continued)
- Re: package-vc support for :files keyword, Adam Porter, 2023/09/19
- Re: package-vc support for :files keyword, Tony Zorman, 2023/09/18
- Re: package-vc support for :files keyword, Philip Kaludercic, 2023/09/19
- Re: package-vc support for :files keyword, Adam Porter, 2023/09/19
- Re: package-vc support for :files keyword, Philip Kaludercic, 2023/09/19
- Re: package-vc support for :files keyword, Tony Zorman, 2023/09/19
- Re: package-vc support for :files keyword, Philip Kaludercic, 2023/09/20
- Re: package-vc support for :files keyword, Tony Zorman, 2023/09/21
- Re: package-vc support for :files keyword, Philip Kaludercic, 2023/09/21
- Message not available
- Re: package-vc support for :files keyword, Philip Kaludercic, 2023/09/24
- Re: package-vc support for :files keyword,
Tony Zorman <=
- Re: package-vc support for :files keyword, Philip Kaludercic, 2023/09/27
- Re: package-vc support for :files keyword, Jonas Bernoulli, 2023/09/19
- Re: package-vc support for :files keyword, Stefan Kangas, 2023/09/22
- Re: package-vc support for :files keyword, Philip Kaludercic, 2023/09/22