]> git.eshelyaron.com Git - emacs.git/commitdiff
Be more compatible with older desktops
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 27 Apr 2022 01:10:51 +0000 (18:10 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 27 Apr 2022 01:12:53 +0000 (18:12 -0700)
* lisp/desktop.el (desktop-save): When comparing timestamps use
time-equal-p instead of ‘equal’.

lisp/desktop.el

index cd581e028ba67aa42b3e04cfcb14ecd5634a5773..baa3f3297054b93c0aa734dcaa9e1427c4c3a968 100644 (file)
@@ -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)