From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0OtuEQVpVGLcHAEAgWs5BA (envelope-from ) for ; Mon, 11 Apr 2022 19:44:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YEsdCgVpVGJp6AAAG6o9tA (envelope-from ) for ; Mon, 11 Apr 2022 19:44:37 +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 3CBAE10638 for ; Mon, 11 Apr 2022 19:44:36 +0200 (CEST) Received: from localhost ([::1]:58780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndy5b-0005rN-D0 for larch@yhetil.org; Mon, 11 Apr 2022 13:44:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndy4c-0005iU-OF for emacs-orgmode@gnu.org; Mon, 11 Apr 2022 13:43:34 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:45220) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndy4a-00040F-05 for emacs-orgmode@gnu.org; Mon, 11 Apr 2022 13:43:34 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 04CA1160052; Mon, 11 Apr 2022 10:43:29 -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 gE4LcAgYd5na; Mon, 11 Apr 2022 10:43:28 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 4831B160098; Mon, 11 Apr 2022 10:43:28 -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 djPrs2xyECgb; Mon, 11 Apr 2022 10:43:28 -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 23A5B160052; Mon, 11 Apr 2022 10:43:28 -0700 (PDT) Message-ID: <3f2555b1-23b5-c46e-d6b9-d64883be874f@cs.ucla.edu> Date: Mon, 11 Apr 2022 10:43:27 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [DRAFT][PATCH] org-encode-time compatibility and convenience helper Content-Language: en-US To: Max Nikulin , org-mode-email References: <7f4ea652-7d22-fb61-f873-5e92f078c9e6@gmail.com> From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: <7f4ea652-7d22-fb61-f873-5e92f078c9e6@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: , 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=1649699077; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=tWOk9qp1UfMYwcy7hrRyJjmLko8Lx10x5aYkBhsx+10=; b=cpgoPeFLP5c6xAg33FCyhUAa1CvGzPJ1OrwzTH4Tcb2k7eUD2+cdI6Nl+EGsyzCWY5ka+k rS8Nqp7/JvGGW6kQESZZWXwfbEGvd23UMM2A2kCfQnFWWlF4qzcYZM0wn0ez+fPr1CKiD/ 7VgxleNh79stu/lF+H18uuk9weH3zG9XQh0IF5hwqrWrppyqff/HuajphI9XwBEEWSRdqX tBpfiKaJFmUR1w2hJxYXINkoqLz0VQaDTWemK5zQtf9L0LfYcdcF3y0/FnlHPJxBTZxnEq XVnb8sL/gXqKXvRU0AP0XufyA0kTRVQCKVjBxZ4aFNRMhE+KbuMLQkE5eBa/Vg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649699077; a=rsa-sha256; cv=none; b=dVvwLWLaXxoyqDws/RVB4B9LtHMtEwnPak60+Obmchu/Qx5g8Zs+zm9e9qbBqJN/pn0A2S hugb+3bqHkuvQ6okT/Qdo95k7oq40pWocYttd+N0TZltOe+sVxbfKb7Ysf4LEDG0RtoIfU sTaIH6CpOdyWNSY+sL/q43tzIC/64CSUhXlxaX5N+X9vTi9YOJl8HWKrhLXZ5/NtQpOfc5 hvsiqKBAv2klfvDvcc5P3ICg8hAQONjRPmROrNM7xCYSKlpiZiuos7qq6OSSeLEoefUGqh M8hziCA8UHfPUPIdqt9Q1GZVu+22jHn7FuhL21x7mUizegSsBrWZ5PNOEFbv1Q== 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: -3.07 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: 3CBAE10638 X-Spam-Score: -3.07 X-Migadu-Scanner: scn1.migadu.com X-TUID: N3uOJ4w02IoA On 4/11/22 08:22, Max Nikulin wrote: > + (defmacro org-encode-time (&rest time) > + (pcase (length time) > + (1 `(encode-time ,(car time))) > + (6 `(encode-time (list ,@time nil -1 nil))) > + (9 `(encode-time (list ,@time))) After seeing this code and thinking about it a bit more I now understand better why you'd prefer Emacs encode-time to accept a 6-argument list. I'll work on adding that to Emacs master (to become Emacs 29). Of course something like the above will still needed for Emacs 27 and 28.