From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: Arithmetic range error Date: Thu, 07 Feb 2019 08:15:55 -0500 Message-ID: <874l9f68ok.fsf@kyleam.com> References: <87ef8jwzs5.fsf@yandex.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:47776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grjX8-00050F-5L for emacs-orgmode@gnu.org; Thu, 07 Feb 2019 08:16:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1grjX5-0000CZ-W6 for emacs-orgmode@gnu.org; Thu, 07 Feb 2019 08:16:02 -0500 Received: from pb-smtp1.pobox.com ([64.147.108.70]:64375) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1grjX5-000093-Ei for emacs-orgmode@gnu.org; Thu, 07 Feb 2019 08:15:59 -0500 In-Reply-To: <87ef8jwzs5.fsf@yandex.com> 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" To: Colin Baxter , emacs-orgmode@gnu.org Colin Baxter writes: > Publishing an org file today, the html output looks ok but I get the > compilation error: > > Arithmetic range error: "floor", 1549541220.7500212 > > I get the error with org-version 9.2.1 (release_9.2.1-200-g18b85a) > but not with org-version 8.2.10. > > Looking at 'org-publish-cache-ctime-of-src' in the file `ox-publish.el', > its not obvious to me where the error is coming from. Ditto after > looking in NEWS and the git commit logs. > > Can anyone help? This looks to be due to the backport of Emacs's 662bee7d7, specifically: --8<---------------cut here---------------start------------->8--- * lisp/ox-publish.el (org-publish-cache-ctime-of-src): Prefer float-time to doing time arithmetic by hand. [...] @@ -1364,8 +1366,7 @@ (defun org-publish-cache-ctime-of-src (file) (expand-file-name (or (file-symlink-p file) file) (file-name-directory file))))) (if (not attr) (error "No such file: \"%s\"" file) - (+ (ash (car (nth 5 attr)) 16) - (cadr (nth 5 attr)))))) + (floor (float-time (file-attribute-modification-time attr)))))) --8<---------------cut here---------------end--------------->8--- I won't have a chance to investigate further though until (my EST) tonight.