From: Paul Eggert <eggert@cs.ucla.edu>
To: Po Lu <luangruo@yahoo.com>
Cc: emacs-devel@gnu.org
Subject: Re: master 4a1f69ebca 2/2: Use (TICKS . HZ) for current-time etc.
Date: Tue, 26 Apr 2022 18:18:05 -0700 [thread overview]
Message-ID: <2bd8adf5-718d-2c7f-b93c-df5689249044@cs.ucla.edu> (raw)
In-Reply-To: <87czh32whe.fsf@yahoo.com>
[-- Attachment #1: Type: text/plain, Size: 409 bytes --]
On 4/26/22 17:36, Po Lu wrote:
> My desktop file isn't loaded.
Not a good sign. I installed the attached, which should fix a bug with a
desktop saved with older Emacs and restored with newer. Does this patch
fix things for you? If not, is ~/.emacs.d/.emacs.desktop something you
can send me? And even if so, this suggests we need a better way to tell
Emacs to use old-format timestamps for compatibility.
[-- Attachment #2: 0001-Be-more-compatible-with-older-desktops.patch --]
[-- Type: text/x-patch, Size: 979 bytes --]
From 9102c63d99b7dda5d49136c48826f87f1cc2bcea Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
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=UTF-8
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 cd581e028b..baa3f32970 100644
--- a/lisp/desktop.el
+++ b/lisp/desktop.el
@@ -1121,7 +1121,7 @@ desktop-save
(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.35.1
next prev parent reply other threads:[~2022-04-27 1:18 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <165091562900.12167.2356992007535632125@vcs2.savannah.gnu.org>
[not found] ` <20220425194030.030A8C01687@vcs2.savannah.gnu.org>
2022-04-26 9:38 ` master 4a1f69ebca 2/2: Use (TICKS . HZ) for current-time etc Lars Ingebrigtsen
2022-04-26 10:20 ` Manuel Uberti
2022-04-26 10:38 ` Po Lu
2022-04-26 14:42 ` Bozhidar Batsov
2022-04-26 20:29 ` Paul Eggert
2022-04-27 0:36 ` Po Lu
2022-04-27 1:18 ` Paul Eggert [this message]
2022-04-27 1:29 ` Po Lu
2022-04-27 4:10 ` Paul Eggert
2022-04-26 20:28 ` Paul Eggert
2022-04-27 12:17 ` Lars Ingebrigtsen
2022-04-26 23:54 ` Michael Heerdegen
2022-04-27 6:37 Mark Barton
2022-04-27 7:20 ` Po Lu
2022-04-27 7:39 ` Paul Eggert
2022-04-27 16:55 ` Stefan Monnier
2022-04-28 22:27 ` Paul Eggert
2022-04-29 14:22 ` Max Nikulin
2022-04-29 18:10 ` Paul Eggert
2022-04-30 10:56 ` Max Nikulin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2bd8adf5-718d-2c7f-b93c-df5689249044@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=emacs-devel@gnu.org \
--cc=luangruo@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.