From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: encode-time vs decode-time Date: Tue, 06 Aug 2019 21:23:20 +0300 Message-ID: <8336iecfvr.fsf@gnu.org> References: <502b23f8-58ed-38ff-ae50-fae391129a10@cs.ucla.edu> <87v9viuivo.fsf@mouse.gnus.org> <83blx2cr2o.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="35634"; mail-complaints-to="usenet@blaine.gmane.org" Cc: larsi@gnus.org, andrewjmoreton@gmail.com, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 06 20:23:42 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hv47Y-00093K-IN for ged-emacs-devel@m.gmane.org; Tue, 06 Aug 2019 20:23:40 +0200 Original-Received: from localhost ([::1]:35532 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hv47W-0005Bg-Vv for ged-emacs-devel@m.gmane.org; Tue, 06 Aug 2019 14:23:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35579) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hv47S-0005BI-BA for emacs-devel@gnu.org; Tue, 06 Aug 2019 14:23:35 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hv47R-0002mf-Nm; Tue, 06 Aug 2019 14:23:33 -0400 Original-Received: from [176.228.60.248] (port=3936 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hv47R-0008KB-9S; Tue, 06 Aug 2019 14:23:33 -0400 In-reply-to: (message from Paul Eggert on Tue, 6 Aug 2019 08:59:33 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239212 Archived-At: > Cc: larsi@gnus.org, andrewjmoreton@gmail.com, emacs-devel@gnu.org > From: Paul Eggert > Date: Tue, 6 Aug 2019 08:59:33 -0700 > > They only significant backward-compatibility issue I see is in the 2nd patch > ("decode-time now returns subsec too"), which affects any user code that > requires (= 9 (length (decode-time))). I originally proposed extending > decode-time's API with a FORM option > that would cause > decode-time to continue to behave as before unlless the given the new FORM > argument; this would default to current behavior and so would avoid the > backward-compatibility issue. However, Lars inspected uses of decode-time > and found that they > invariably did something like (nth N (decode-time...)) or (apply #'encode-time 0 > 0 0 (nthcdr 3 (decode-time))). Was this inspection done on Emacs' own code, or also outside Emacs?