]> git.eshelyaron.com Git - emacs.git/commit
Use floor of mtime instead of rounding for thumb property
authorMark Oteiza <mvoteiza@udel.edu>
Sun, 18 Dec 2016 12:28:03 +0000 (07:28 -0500)
committerMark Oteiza <mvoteiza@udel.edu>
Sun, 18 Dec 2016 12:28:03 +0000 (07:28 -0500)
commitb21a3e726feb521d013d3bda6dd8fd8e0c78ad37
treea8dd8353ac13451eb1db9c3d5cff6a0106f0cbc8
parent1a15d14e143ed84d8116c6510f9619d936ea43a1
Use floor of mtime instead of rounding for thumb property

This seems to be the correct thing to do, at least more in line with
what at least one other implementation does.  Anything using
gnome-desktop [0] effectively does the same, as
gnome_desktop_thumbnail_is_valid applies atol(3) to mtime for
comparison and time_t on GNU/Linux is a signed int.
[0] https://git.gnome.org/browse/gnome-desktop/
* lisp/image-dired.el (image-dired-create-thumb): Use floor here.
lisp/image-dired.el