From: Paul Eggert Date: Wed, 27 Apr 2022 01:10:51 +0000 (-0700) Subject: Be more compatible with older desktops X-Git-Tag: emacs-29.0.90~1931^2~284 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b568a41a5e7a8e0c81b688e46b6dc37fdbde80de;p=emacs.git Be more compatible with older desktops * lisp/desktop.el (desktop-save): When comparing timestamps use time-equal-p instead of ‘equal’. --- diff --git a/lisp/desktop.el b/lisp/desktop.el index cd581e028ba..baa3f329705 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el @@ -1121,7 +1121,7 @@ no questions asked." (file-attributes (desktop-full-file-name))))) (when (or (not new-modtime) ; nothing to overwrite - (equal desktop-file-modtime new-modtime) + (time-equal-p desktop-file-modtime new-modtime) (yes-or-no-p (if desktop-file-modtime (if (time-less-p desktop-file-modtime new-modtime)