From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [PATCH] org-latex-compile timestamp checks Date: Fri, 15 Jan 2016 13:13:46 +0100 Message-ID: <87r3hjf3b9.fsf@gmx.us> References: <57F8EBE2-E535-423A-828B-BCB3A2B9F797@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aK3GW-00048A-Ry for emacs-orgmode@gnu.org; Fri, 15 Jan 2016 07:14:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aK3GR-0006aN-TO for emacs-orgmode@gnu.org; Fri, 15 Jan 2016 07:14:04 -0500 Received: from plane.gmane.org ([80.91.229.3]:45657) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aK3GR-0006aE-MY for emacs-orgmode@gnu.org; Fri, 15 Jan 2016 07:13:59 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aK3GO-0000jj-1e for emacs-orgmode@gnu.org; Fri, 15 Jan 2016 13:13:56 +0100 Received: from 62.80.108.13 ([62.80.108.13]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Jan 2016 13:13:56 +0100 Received: from rasmus by 62.80.108.13 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Jan 2016 13:13:56 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Anthony, Thanks for raising this issue. Anthony Cowley 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