[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [PATCH] org-latex-compile timestamp checks
From: |
Anthony Cowley |
Subject: |
[O] [PATCH] org-latex-compile timestamp checks |
Date: |
Thu, 14 Jan 2016 18:24:20 -0500 |
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.
This does mean that there is the possibility of a false positive in the
compilation test if a successful compilation is followed up by an unsuccessful
compilation in less than one second. I do not know if anyone encounters such a
scenario.
Anthony
0001-lisp-ox-latex.el-PDF-generation-timestamp-check.patch
Description: Binary data
- [O] [PATCH] org-latex-compile timestamp checks,
Anthony Cowley <=
- Re: [O] [PATCH] org-latex-compile timestamp checks, Rasmus, 2016/01/15
- Re: [O] [PATCH] org-latex-compile timestamp checks, Anthony Cowley, 2016/01/15
- Re: [O] [PATCH] org-latex-compile timestamp checks, Nicolas Goaziou, 2016/01/16
- Re: [O] [PATCH] org-latex-compile timestamp checks, Rasmus, 2016/01/16
- Re: [O] [PATCH] org-latex-compile timestamp checks, Anthony Cowley, 2016/01/16
- Re: [O] [PATCH] org-latex-compile timestamp checks, Nicolas Goaziou, 2016/01/21
- Re: [O] [PATCH] org-latex-compile timestamp checks, Rasmus, 2016/01/21
- Re: [O] [PATCH] org-latex-compile timestamp checks, Anthony Cowley, 2016/01/26
- Re: [O] [PATCH] org-latex-compile timestamp checks, Rasmus, 2016/01/26
- Re: [O] [PATCH] org-latex-compile timestamp checks, Nicolas Goaziou, 2016/01/26