[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master daea9b3 1/2: Read mailcaps again only when necessary
From: |
Lars Ingebrigtsen |
Subject: |
Re: master daea9b3 1/2: Read mailcaps again only when necessary |
Date: |
Mon, 01 Nov 2021 18:01:56 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> If two packages read&parse the same file and both rely on this function
> to decide when to reparse, the second package can get a nil value
> (because the first has caused the mtime to be reset in the hash table)
> even though the file has changed since it last parsed it.
I think that's up to the higher level to decide whether it's a problem
or not, like with other memoizing functions.
(And relatedly, this function shouldn't use file-truename or anything on
the filename -- it's a string used as the key.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Re: master daea9b3 1/2: Read mailcaps again only when necessary, Stefan Monnier, 2021/11/01
- Re: master daea9b3 1/2: Read mailcaps again only when necessary,
Lars Ingebrigtsen <=
- Re: master daea9b3 1/2: Read mailcaps again only when necessary, Eli Zaretskii, 2021/11/01
- Re: master daea9b3 1/2: Read mailcaps again only when necessary, Lars Ingebrigtsen, 2021/11/01
- Re: master daea9b3 1/2: Read mailcaps again only when necessary, Eli Zaretskii, 2021/11/01
- Re: master daea9b3 1/2: Read mailcaps again only when necessary, Lars Ingebrigtsen, 2021/11/01
- Re: master daea9b3 1/2: Read mailcaps again only when necessary, Eli Zaretskii, 2021/11/01
- Re: master daea9b3 1/2: Read mailcaps again only when necessary, Stefan Monnier, 2021/11/01
- Re: master daea9b3 1/2: Read mailcaps again only when necessary, Eli Zaretskii, 2021/11/01
- Re: master daea9b3 1/2: Read mailcaps again only when necessary, Stefan Monnier, 2021/11/01
- Re: master daea9b3 1/2: Read mailcaps again only when necessary, Eli Zaretskii, 2021/11/02
- Re: master daea9b3 1/2: Read mailcaps again only when necessary, Stefan Monnier, 2021/11/02