Fix xdg timestamp error on 32-bit Emacs
* 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 (Bug#28921).
This commit is contained in:
parent
237e96bc52
commit
2bfa42855b
1 changed files with 2 additions and 2 deletions
|
@ -93,8 +93,8 @@ file:///foo/bar.jpg"
|
|||
(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."
|
||||
(file-attribute-modification-time (file-attributes filename)))
|
||||
|
||||
|
||||
;; XDG User Directories
|
||||
|
|
Loading…
Add table
Reference in a new issue