From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#28921: [PROPOSED] Fix xdg timestamp error on 32-bit Emacs Date: Fri, 20 Oct 2017 20:04:55 -0700 Message-ID: <20171021030455.16035-1-eggert@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1508555184 3846 195.159.176.226 (21 Oct 2017 03:06:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 21 Oct 2017 03:06:24 +0000 (UTC) Cc: Paul Eggert To: 28921@debbugs.gnu.org, mvoteiza@udel.edu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 21 05:06:19 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5k70-0007To-Mw for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Oct 2017 05:06:10 +0200 Original-Received: from localhost ([::1]:56455 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5k73-0005gO-IQ for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Oct 2017 23:06:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5k6x-0005YT-Cj for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2017 23:06:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5k6s-00054g-Q7 for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2017 23:06:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44269) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e5k6s-00054Z-MV for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2017 23:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e5k6s-0005wz-8h for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2017 23:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Oct 2017 03:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28921 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org, mvoteiza@udel.edu Original-Received: via spool by submit@debbugs.gnu.org id=B.150855513222828 (code B ref -1); Sat, 21 Oct 2017 03:06:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Oct 2017 03:05:32 +0000 Original-Received: from localhost ([127.0.0.1]:52950 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5k6O-0005w8-1Z for submit@debbugs.gnu.org; Fri, 20 Oct 2017 23:05:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51519) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5k6M-0005vu-2Y for submit@debbugs.gnu.org; Fri, 20 Oct 2017 23:05:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5k6F-00050b-OD for submit@debbugs.gnu.org; Fri, 20 Oct 2017 23:05:24 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:53746) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e5k6F-00050T-IF for submit@debbugs.gnu.org; Fri, 20 Oct 2017 23:05:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42478) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5k6A-0005Lj-66 for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2017 23:05:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5k66-0004xc-RY for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2017 23:05:18 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:59898) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e5k66-0004uh-LT for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2017 23:05:14 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 9C6E9160E83; Fri, 20 Oct 2017 20:05:05 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id RpxbhNOrXMmA; Fri, 20 Oct 2017 20:05:04 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id E0A2A160E65; Fri, 20 Oct 2017 20:05:04 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id a4cKIMoNUyXd; Fri, 20 Oct 2017 20:05:04 -0700 (PDT) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id BF8F2160E3A; Fri, 20 Oct 2017 20:05:04 -0700 (PDT) X-Mailer: git-send-email 2.13.6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:138792 Archived-At: * lisp/xdg.el (xdg-thumb-mtime): Return an Emacs timestamp, not an integer. This avoids signaling an error on 32-bit Emacs, where timestamps typically do not fit into fixnums. --- lisp/xdg.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/xdg.el b/lisp/xdg.el index 76106f4258..6dcef74e4e 100644 --- a/lisp/xdg.el +++ b/lisp/xdg.el @@ -93,8 +93,8 @@ xdg-thumb-name (concat (md5 (xdg-thumb-uri filename)) ".png")) (defun xdg-thumb-mtime (filename) - "Return modification time of FILENAME as integral seconds from the epoch." - (floor (float-time (nth 5 (file-attributes filename))))) + "Return modification time of FILENAME as an Emacs timestamp." + (nth 5 (file-attributes filename))) ;; XDG User Directories -- 2.13.6