From: Colin Baxter <m43cap@yandex.com>
To: Kyle Meyer <kyle@kyleam.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Arithmetic range error
Date: Thu, 07 Feb 2019 14:27:33 +0000 [thread overview]
Message-ID: <87a7j7wu5m.fsf@yandex.com> (raw)
In-Reply-To: <874l9f68ok.fsf@kyleam.com> (Kyle Meyer's message of "Thu, 07 Feb 2019 08:15:55 -0500")
>>>>> Kyle Meyer <kyle@kyleam.com> writes:
> Colin Baxter <m43cap@yandex.com> 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:
> * 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))))))
> I won't have a chance to investigate further though until (my EST)
> tonight.
Thank you to everybody for your replies. I can't revert the commit
myself; there seems to be unmerged files in the work tree and this
goes beyond my knowledge of git. Interestingly, the above additions and
subtractions to lisp/ox-publish.el actually seem to be missing from my
ox-publish.el (lines 1361--1368).
Best wishes,
Colin Baxter
m43cap@yandex.com
next prev parent reply other threads:[~2019-02-07 14:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-07 12:26 Arithmetic range error Colin Baxter
2019-02-07 13:15 ` Kyle Meyer
2019-02-07 14:27 ` Colin Baxter [this message]
2019-02-07 16:11 ` Colin Baxter
2019-02-07 18:49 ` Colin Baxter
2019-02-07 20:55 ` Nicolas Goaziou
2019-02-08 3:02 ` Kyle Meyer
2019-02-08 8:54 ` Colin Baxter
2019-02-07 13:22 ` Robert Pluim
2019-02-07 13:27 ` Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a7j7wu5m.fsf@yandex.com \
--to=m43cap@yandex.com \
--cc=emacs-orgmode@gnu.org \
--cc=kyle@kyleam.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).