Hi Anthony,

Thanks for raising this issue.

Anthony Cowley <acow...@gmail.com> writes:

> I’ve had some trouble with toggling latex fragment previews in a
> document on OS X. It would sometimes work, sometimes not, so I could
> just try a few times until it worked and get on with things. Looking
> into it more, the problem seems to be with the HFS+ filesystem’s
> second granularity on file timestamps. The Org code checks that the
> generated file is not older than a (current-time) obtained before
> starting latex compilation, but the truncated time of the generated
> file can indeed be older in the sub-second fields of the timestamp.
>
> The attached patch simply compares timestamps truncated to 1-second
> precision.

Isn't this a bug in Emacs file-attributes rather than Org?  If so, it
should be fixed in Emacs rather than worked around in Org IMO.

Maybe you could just check the log directly for failures rather than
checking the file attributes, if these are not reliable.

Also, what is the ‘take‘?  I don’t seem to have it in my Emacs...

Rasmus


-- 
Even a three-legged dog has three good legs to lose


Reply via email to