From: Paul Eggert Date: Thu, 24 Nov 2022 20:56:22 +0000 (-0800) Subject: Work around lsp-mode compatibility bug X-Git-Tag: emacs-29.0.90~1527 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=55f6f1c82a35f0589d3dbdd1f32fae7ea9a758d8;p=emacs.git Work around lsp-mode compatibility bug * src/timefns.c (Ftime_subtract): Respect current-time-list when args are eq (Bug#59506). --- diff --git a/src/timefns.c b/src/timefns.c index eed2edf1cc0..9beec1ce384 100644 --- a/src/timefns.c +++ b/src/timefns.c @@ -1194,7 +1194,7 @@ For example, nil stands for the current time. */) quicker while we're at it. This means (time-subtract X X) does not signal an error if X is not a valid time value, but that's OK. */ if (BASE_EQ (a, b)) - return timespec_to_lisp ((struct timespec) {0}); + return make_lisp_time ((struct timespec) {0}); return time_arith (a, b, true); }