From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Making decoded-times and calendar dates compatible? Date: Tue, 10 Dec 2024 23:33:35 -0500 Message-ID: References: <87seqy5qr8.fsf@ohm.mail-host-address-is-not-set> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="792"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Richard Lawrence Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 11 05:34:01 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tLEQC-000AZU-Gw for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Dec 2024 05:34:00 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLEPx-0002l4-DP; Tue, 10 Dec 2024 23:33:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tLEPu-0002Zd-Rw for emacs-devel@gnu.org; Tue, 10 Dec 2024 23:33:42 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tLEPu-000409-Bb; Tue, 10 Dec 2024 23:33:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=LxjIwG8uz4UYnWNKTdHd+NmjN/qJa2V8GB1GhkGENwM=; b=MtKcampXt4Yq zrE53plJjTtzh1DTDV1NQgAzAUqkocTvB+Mo7kGUiq8cNMTrw7XY8UAgVIQk+w4tPCijXS9Jvt8QC wEH2qLkPxmYdwUSoG6qutmcQtjxVbQaHJMtH1mKU4hi1qMiyiyC7/oejjn6sgHGF6lsUwBhAooHnV P238P3cih/2gjiaiEcDbLXWzjmbvUY/noTMB/j31QoaoJP4XbR02iT4BEa9JkV0Pzgj7oRmPYtqCY tYispR+etSGNvs4LCSxbjeOPozREiaDp6IU2wUgDYPHDY4JF1zdYMIRE3zqiS+82zrMHBygNGVtIY XL3gijRoUVVUPYasNzXc5g==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1tLEPn-0000sh-M9; Tue, 10 Dec 2024 23:33:37 -0500 In-Reply-To: <87seqy5qr8.fsf@ohm.mail-host-address-is-not-set> (message from Richard Lawrence on Sun, 08 Dec 2024 13:00:11 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:326321 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > If we changed them to use a format like, say, > (YEAR MONTH DAY) > and > (YEAR MONTH DAY DOW HOUR MINUTE SECOND DST TZ) > respectively, changing the relevant accessors, then calendar arithmetic > functions could also work effortlessly with [the date part of] decoded > times, In principle it sounds like a good idea, but I think that the incompatibility might be a big pain to fix. Doesn't some user code have to operate on those formats? I wonder also if calendar.el was designed to be compatible with something in Unix that existed before GNU Emacs. But I wasn't the one who wrote it, so I wouldn't know. One possible way to make the incompatible change less of a pain to cope with would be to use a list like (calendar YEAR MONTH DAY) in caledar.el. The presence of the synbol `calendar' would say "this date uses the new format", thus avoiding ambiguity of the datum. There would still need to be a lot of change, but at least it would be easier to be sure you found all the places that had to be changed. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)