From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wCk2MHjxbWLdGwEAbAwnHQ (envelope-from ) for ; Sun, 01 May 2022 04:33:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sK5DMHjxbWIQFgAAauVa8A (envelope-from ) for ; Sun, 01 May 2022 04:33:28 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 247C93FBCD for ; Sun, 1 May 2022 04:33:28 +0200 (CEST) Received: from localhost ([::1]:53794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkzOp-0000pB-Bu for larch@yhetil.org; Sat, 30 Apr 2022 22:33:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55790) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkzOE-0000nA-4X for emacs-orgmode@gnu.org; Sat, 30 Apr 2022 22:32:50 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:34982) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkzOC-0001eQ-5G for emacs-orgmode@gnu.org; Sat, 30 Apr 2022 22:32:49 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id D3080160090; Sat, 30 Apr 2022 19:32:45 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 2ZjmHeUqPOmV; Sat, 30 Apr 2022 19:32:44 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id D790A1600D1; Sat, 30 Apr 2022 19:32:44 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id rSL9j2qQc1E8; Sat, 30 Apr 2022 19:32:44 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 83AFC160090; Sat, 30 Apr 2022 19:32:44 -0700 (PDT) Content-Type: multipart/mixed; boundary="------------J0iMiZW10XUvX5tCCFEf4Dqj" Message-ID: <7ba6b2ae-bbf6-4e90-169b-78ae6916e0b1@cs.ucla.edu> Date: Sat, 30 Apr 2022 19:32:44 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: en-US To: Max Nikulin References: <5ed963b2-3fa8-48d8-627e-bc0571d15b43@gmail.com> <149de00f-115b-5367-414f-c7700ef8966b@cs.ucla.edu> <2dd15844-01b3-0144-740c-185ec8488a81@cs.ucla.edu> <4a23f3a4-fe8f-d396-49d8-10034803be63@gmail.com> <52fb10fb-892a-f273-3be8-28793f27e204@cs.ucla.edu> <5cd820d4-ae67-43d4-9e63-c284d51ff1e4@gmail.com> <25d90a4b-f47d-01b4-2bfe-9951e97fe676@gmail.com> <355c422f-6945-e670-4610-70e67035e193@gmail.com> <4bd57f21-0660-fce0-d796-08c534402340@cs.ucla.edu> <42fc4072-4f8f-c6d3-ca39-2308f4597523@cs.ucla.edu> <3c017c45-c82a-cb0e-6352-fabb21e7ac37@gmail.com> From: Paul Eggert Organization: UCLA Computer Science Department Subject: Re: bug#54764: encode-time: make DST and TIMEZONE fields of the list argument optional ones In-Reply-To: <3c017c45-c82a-cb0e-6352-fabb21e7ac37@gmail.com> Received-SPF: pass client-ip=131.179.128.68; envelope-from=eggert@cs.ucla.edu; helo=zimbra.cs.ucla.edu X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode , 54764@debbugs.gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651372408; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=7cc1eWXa24L4CP+eR2SlWjmv108NHPEHhScBSK8F6g4=; b=GOrLsSajCrk1Cs1dqlmb3aH1x0bkRSCZoU34dbDrDn7iaQnULf/ZL2bZA5oSos/HGWWI3i KCzvIwStFiHqxlKD/SUnJJNOZRRo72SmoFo4+5wvdu7J+B0mZIIoZ5PjVZcpO+1sDA0Shh B8vre5gs0wi+vbxvR45xFQgKrReXgSeFYmUZ7lLQYHnzpkg56A5xgPSNRJi5rCyTKx9OH2 XcLGaNxRuFw1pEnyw70+kIzikYnENJ6gaMLD1cm1fPLOoV83WQrUWUf2eybSM1FJCdaA4T gsYAtjHZDk//G5zJwoN7J7Ead1aRE6QftudIGxyapslGsf4ZphXKBWcnnzDHTQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651372408; a=rsa-sha256; cv=none; b=c4q/INaYJ8ylm4ES8yb7vFlVtSmCEum6EW/CsOBP7cy89Qvq6cKQ60T29jc4FECObZ+pM7 g3iEdMykdDtySYnCTGoRoxFQQ5kbLOai9E9X7XAnBynB+dc+CGnLyozybKucGA5Ikcdpnn RXkCIvMVrFM0bLjz//WZb6OBhBPpkVixaSRHVvK3QrfxvJaM/wfF6fSjMZX80ofPq4PhC0 KPztxd7r7xFG3KbrSUEczDAABDaaXFp0Sp5x0KyXwo9dpFjokaojLUMvBN4XNPq8KZZjEH GAXd3tt7aKAe9IVYLlqSAkaAAuPyoC7bn4bw/55Htup1Nje0/NccKio/VJkHQQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.39 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 247C93FBCD X-Spam-Score: -0.39 X-Migadu-Scanner: scn1.migadu.com X-TUID: wJy0y8KvJrfr This is a multi-part message in MIME format. --------------J0iMiZW10XUvX5tCCFEf4Dqj Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/30/22 04:22, Max Nikulin wrote: > > I posted a corrected version of my `org-encode-time' macro, but I did > not add you to Cc (I sent reply through news.gmane.io), and it has no > special case to check whether `encode-time' supports 6 elements list > argument: Thanks, I looked at that and have a couple of questions. As I understand it, org-encode-time is intended to be a compatibility function like org-newline-and-indent and org-string-distance. Those are in org-compat.el, so I assumed org-encode-time would be there too. Also, if the intent is to emulate Emacs 29 encode-time, can't we do something like the attached instead? The idea is to implement Emacs 29 encode-time both on pre-29 Emacs (that don't support lists of length 6) and post-29 Emacs (which might drop support for the obsolescent form). --------------J0iMiZW10XUvX5tCCFEf4Dqj Content-Type: text/x-patch; charset=UTF-8; name="0001-org-encode-time-compatibility-function.patch" Content-Disposition: attachment; filename="0001-org-encode-time-compatibility-function.patch" Content-Transfer-Encoding: base64 RnJvbSAyZjQ0ZWU3NTI0ZTViMmU1M2Y5MTJjZmYxMjc2Zjc4MTc0OTVjNjU3IE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ2VydCA8ZWdnZXJ0QGNzLnVjbGEuZWR1 PgpEYXRlOiBTYXQsIDMwIEFwciAyMDIyIDE5OjI3OjE1IC0wNzAwClN1YmplY3Q6IFtQQVRD SF0gb3JnLWVuY29kZS10aW1lIGNvbXBhdGliaWxpdHkgZnVuY3Rpb24KCiogbGlzcC9vcmcv b3JnLWNvbXBhdC5lbCAob3JnLWVuY29kZS10aW1lKTogTmV3IGZ1bmN0aW9uLgotLS0KIGxp c3Avb3JnL29yZy1jb21wYXQuZWwgfCAxMCArKysrKysrKysrCiAxIGZpbGUgY2hhbmdlZCwg MTAgaW5zZXJ0aW9ucygrKQoKZGlmZiAtLWdpdCBhL2xpc3Avb3JnL29yZy1jb21wYXQuZWwg Yi9saXNwL29yZy9vcmctY29tcGF0LmVsCmluZGV4IDNlMzk0ZmJhYjEuLjBhMDAyNWZhMGQg MTAwNjQ0Ci0tLSBhL2xpc3Avb3JnL29yZy1jb21wYXQuZWwKKysrIGIvbGlzcC9vcmcvb3Jn LWNvbXBhdC5lbApAQCAtMTQ0LDYgKzE0NCwxNiBAQCBvcmctZmlsZS1oYXMtY2hhbmdlZC1w LS1oY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