From b568a41a5e7a8e0c81b688e46b6dc37fdbde80de Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 26 Apr 2022 18:10:51 -0700 Subject: [PATCH] Be more compatible with older desktops MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * lisp/desktop.el (desktop-save): When comparing timestamps use time-equal-p instead of ‘equal’. --- lisp/desktop.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2