From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 0IPvL+YO3WIgFwAAbAwnHQ (envelope-from ) for ; Sun, 24 Jul 2022 11:20:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id AMroLuYO3WIb/gAAG6o9tA (envelope-from ) for ; Sun, 24 Jul 2022 11:20:38 +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 576D58A7D for ; Sun, 24 Jul 2022 11:20:38 +0200 (CEST) Received: from localhost ([::1]:60596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFXmv-0003fa-Fu for larch@yhetil.org; Sun, 24 Jul 2022 05:20:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33844) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFXPt-0006PQ-3L for emacs-orgmode@gnu.org; Sun, 24 Jul 2022 04:56:50 -0400 Received: from mail-vi1eur04olkn0828.outbound.protection.outlook.com ([2a01:111:f400:fe0e::828]:15086 helo=EUR04-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFXPq-0003Nz-NG for emacs-orgmode@gnu.org; Sun, 24 Jul 2022 04:56:48 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZUE5DMKOwkORjL7m7HTcvNYtFFZ+MLY1N5fgoh1Tl5SP/ihbxaEfwIhOHvJdSjCZjB9JQyWpQ+PGdA7qsCqNHYgd0a/5dTzZIiC6Z6b9UnHO8LNZGvnPMxIb8WBPLlpt8b6jNkmfZZenFx0NsKTaBCMNfEmPWPP4loJUSmx45heSxPIeHM16232gUhaGoqeiKYMgts/HX7UorptyBxR5fc5f7GgQk0X9Y5GJ+h7FPGY1tOaMotfajb7ldht//OpW3iPjEehVyFWnPrlUMMOsfNOgxy5t4lhVL15b0hc42p8Xw9Moz8Hz9n7vkjQgqjAp/2tNRE7+7H7XKJiVylag/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TP9kZ3jXayCuBtPX2TAjdbVmfrzXXa64a9+unTNJAPI=; b=Th7tGbUaH2I5QRpovnsRS9lbTlJa3abm6yuxFRqcpfsiFMeUVzlfvnC6II1Km6eGYIPItzX6ZXCCGv13VzozL/qZX1cwS8Ia14kvoIgzFBhxXQZDcEtc80tTgiFubQlES44UT4OLP3BiUhb93TU2US+xUfmrKyv0A9sUWJxk5P4zVVqp2d0A2DkH2FaRJ73T51NHwR6zU5T+PE3QhyzamhboMt3+wLGeOXoqpvKx79uZtlRjnHBQ/E+XXhZ6j7hDyYEBsKYPeuSNKxee+3qpHd56jFKaIGpnHAe/aSUiYE4Klt+vM6pycaJEwwu2ysHjm3JBS16mw53XXqTrsfbS8Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from PAXP251MB0470.EURP251.PROD.OUTLOOK.COM (2603:10a6:102:283::11) by PAXP251MB0027.EURP251.PROD.OUTLOOK.COM (2603:10a6:102:1dc::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.23; Sun, 24 Jul 2022 08:51:41 +0000 Received: from PAXP251MB0470.EURP251.PROD.OUTLOOK.COM ([fe80::f881:eab3:bd1d:bcf5]) by PAXP251MB0470.EURP251.PROD.OUTLOOK.COM ([fe80::f881:eab3:bd1d:bcf5%8]) with mapi id 15.20.5458.021; Sun, 24 Jul 2022 08:51:40 +0000 User-agent: mu4e 1.8.5; emacs 29.0.50 From: Kenneth Stuart To: emacs-orgmode@gnu.org Subject: Bug in definition of org-encode-time Date: Sun, 24 Jul 2022 09:45:31 +0100 Message-ID: Content-Type: text/plain X-TMN: [ZzLxjGMde+SiDcMZLKqVvGeqnGdv1Y7a] X-ClientProxiedBy: LO4P123CA0196.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1a4::21) To PAXP251MB0470.EURP251.PROD.OUTLOOK.COM (2603:10a6:102:283::11) X-Microsoft-Original-Message-ID: <87mtcy28ro.fsf@hotmail.co.uk> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7b494d65-13d0-4f0a-03f9-08da6d51b9fb X-MS-TrafficTypeDiagnostic: PAXP251MB0027:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vBiacwMPTVRJjkJ0VA42RI1MrlWzxtIWvoaDv/yj+IgfEeFZwUa4XgOTlc9ej1eOYmCrzB/UOLR75kq6obZxO5sygLOJtBxFqKE59wJ+Va3jjOJQpARkvt6ArFjL9a3/t3kwZz51phY5AW7iFLpXmBrfBjpvCk9TN0AJx7YUJ8J76hCzx2RLPYRmegLYXees3nHqA8bYy+bIqXGAdbkl5UewzleuABIwG2afvZiplaA5XaCCsSg2G/lEdSPNLn9496gJE29C6R2xQHbfydyAJo3b2bVNxGTarq0XMpWoEXK+ruenyIRDyqhtJYfnEDvZkiFez2V0di7aaHAez68VRK//djjb1QVtpObCSX+A3O3iyCDxq6iivVDF+bWavkbwkRNhYipsXFZngpDtbWnI9J1cFPcAtL/7yih4sVHh9XMPHkMpxyXsgMxk8siNIvq786XFlZXlbzNNzXj8YAGgrne1/nAvKhv4PPS4DaIQgpoQLgxD5lFeQjBqVWc/MTZYsXp8Fv3xwMT0QaklfEkW6wyMCotOD6y2uyZo0tw2r/glbY0UwPMYXhKlSni9mhWZuwJeLncGWN+F7F+X/FzLDjbRNjPgsTf5YhRW1MgVa0c0cSgojiQfb43BRk58NMpIbL+CQud75/K0kYUFRAJErg== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?eOPmP10zxtRsGIFaIVvsrIio3xsfN2ieO+3B/LKP7zX/1z6EbTH6NUE2WCtv?= =?us-ascii?Q?8rjWepiteDhWekpBGwXjHE+6DFhAFUbniLAUKhJbJkmCFH1lgHxWwldK9N9B?= =?us-ascii?Q?VU+S9C1hJYzgXBBPGVdtxqUMhcaEXzBwpZfrew1iyLShNZgPWYrhfX+nqxdo?= =?us-ascii?Q?zYvIVSpxVDelcQMseTreyMul3IsrzbaKTc53mksNvPntwyA9c+WlwIrK0PFm?= =?us-ascii?Q?4xMgw49SL+cEZm7VsW5woEoYpOv9TvaZf+o98izl3cmgjmYWqMNrub/DWjhh?= =?us-ascii?Q?R8HJtC6W509k/dJ6TrpskWZyndOBEfYyDMFJ06JWx/0FEljDIE6mBJONyEHz?= =?us-ascii?Q?cRUMvIs3FvTBesk/eSZ4M577l5oXBMOH0yF0d1YRwDc6Y3sg0GUf8wA3RCUG?= =?us-ascii?Q?WpdCd7y4/koxHeeJGDcPBJn6S6uRdD3pIbJ/OkVu8419TuS1ksKThxAGqSWr?= =?us-ascii?Q?8EGTcbKAilcEbFJPszQtTStUgT9wgr+xvQ8qgmg9ftyf0jY9zCHbHJEsygkk?= =?us-ascii?Q?zvFsK+gzqe0Fg682tlAxxXFNKZFQt7Djp4nVC0Dou9OTid6LKvpZyN0FrUYd?= =?us-ascii?Q?UCbtmdxuRbV0coAxnXtTcAaVpBTc3rSQdrH0d6RqYuJ8TrifJBP6wJ2Z/7Kz?= =?us-ascii?Q?VaD+NczRxiulFcET6IcUNeiV0ebLLwb0ucisLTjK3vH/bB8ZtOj7Nzr3GfTa?= =?us-ascii?Q?0aKoLv59mkfXT60fdclms6ZK7KknQy6rrkkK+q443KF5YunBtkqP+OTIR6eF?= =?us-ascii?Q?5fZtQ1dSVPsw6STKut1pjJ8+b/JSbBWa32zLGU0IuFBbNx2ggUiSqHhNuSYr?= =?us-ascii?Q?QVIPHkJ5DJODGIHdWWrlPb0wx3nh/08NlNzqniHGxEXSyg3reN+27gJlWN5m?= =?us-ascii?Q?BD0CIF0eGuO0LienBENFJEDf4ngqCRltXokv6u1w5JqlUi9aIpqdAGhsdmXZ?= =?us-ascii?Q?8ho7zAlkm2QEJlc0vPzqkdibUZZ/aGswc6bivyaEUh6/XtamuDeJE7E1FqBz?= =?us-ascii?Q?PqmeaMQKoUZu6HZxbNTY6x7F7QGafrg9Cp2uiDWzGbZJ25CY2b5lxk8vdoDC?= =?us-ascii?Q?BwLsB88ML2DPRSJLNH/DXhgv2nCK0QlMuEGb6CEEswkB4pJZ1ACZ6UemVZlb?= =?us-ascii?Q?WHRPRt2G7mphDLRslZRXWDLIuNPMeFcZMo3r2D8vnNuP6xoq5HhWDvtCsC7G?= =?us-ascii?Q?xeODBAQslokrnbljAOuIqfbhL+qluh2UzP9RlgyeRQaM1uiR497zkQuGBh0A?= =?us-ascii?Q?OBcXLhlpJlqPpsS9qT1s4NNnxV5LEXIv2u824Ef0gg=3D=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-00b75.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 7b494d65-13d0-4f0a-03f9-08da6d51b9fb X-MS-Exchange-CrossTenant-AuthSource: PAXP251MB0470.EURP251.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2022 08:51:40.8235 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXP251MB0027 Received-SPF: pass client-ip=2a01:111:f400:fe0e::828; envelope-from=kstuart@hotmail.co.uk; helo=EUR04-VI1-obe.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 24 Jul 2022 05:19:41 -0400 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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658654438; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=TP9kZ3jXayCuBtPX2TAjdbVmfrzXXa64a9+unTNJAPI=; b=T94CxKlbUucSjSOybx0XzKqqdPVs3JDTvan1BvL0DoY8i+0o9hovv9rsVsAtHSzacnFtl1 I3xhbQ0VJ8De5Vu5pOQ7L2JphnDM80QXUD04XviMotOgynqxWmRLf1nwHhEpUSCCwTk1Dm cWD4+LIBImNG42aBJ4J0ViXSf1r/FeWqmThMslnUwjZvqaN9v9PFv+FTuxeoGt/J5mnzmw sWLTDgHr/nr2IUPVttGp35z1IlsEF9fgEWrhNacwUBbGItP8H2j1CsKRj0sjOrMSQVK65U 6onNg1+qNPlqyN9g1Vv0uYhUbxq2Y6XVMoKzthnLXHgQq7jfGFGbif2c3FF/Nw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1658654438; a=rsa-sha256; cv=pass; b=FNGknbVj/20JF0J7ppF2squebauLBQfWD6pWfj8ua/qBPhzoPw/fjCxvkcTJtXgwFzL9UM q2qwuy+x8fpRLJGJGSSbs/feDr06XZ8zkR3DDKfPQNcXJMReOD/lahFzInL0MWFbRXcfcy NHeedIEolkc8wKq12hyRWooxHiRVG7aIsC6llZNX+VqTPvct6YgbfJ3e4YzKfBQqJUOsHl X6SEJriS2XXnTER/4kUz11s1i9WLD+BeGPMVAVuNXf89jY4xDaphpVctwDch3iAmuDqUEn cvaL71MPCE6wycEMVzb3L/Z1Aqc+IMBp+x61n4O7ZoOJx0UQe0Mw/NQTBsfa8Q== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=none; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=hotmail.co.uk (policy=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.33 Authentication-Results: aspmx1.migadu.com; dkim=none; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=hotmail.co.uk (policy=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: 576D58A7D X-Spam-Score: -0.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: ccwLbik/E+ux Hello, Macro `org-encode-time` (lisp/org-macs.el +1395) does not get defined for emacs >= 27.1 as the top level if statement is missing its ELSE clause. #+begin_src elisp (if (version< emacs-version "27.1") (defmacro org-encode-time (&rest time) (if (cdr time) `(encode-time ,@time) `(apply #'encode-time ,@time))) (if (ignore-errors (with-no-warnings (encode-time '(0 0 0 1 1 1971)))) (defmacro org-encode-time (&rest time) (pcase (length time) ; Emacs-29 since d75e2c12eb (1 `(encode-time ,@time)) ((or 6 9) `(encode-time (list ,@time))) (_ (error "`org-encode-time' may be called with 1, 6, or 9 arguments but %d given" (length time))))) (defmacro org-encode-time (&rest time) (pcase (length time) (1 `(encode-time ,@time)) (6 `(encode-time (list ,@time nil -1 nil))) (9 `(encode-time (list ,@time))) (_ (error "`org-encode-time' may be called with 1, 6, or 9 arguments but %d given" (length time)))))) //MISSING ELSE//) #+end_src I'm assuming it should be: #+begin_src diff diff --git a/lisp/org-macs.el b/lisp/org-macs.el index 5931dd260..bbdacbdf8 100644 --- a/lisp/org-macs.el +++ b/lisp/org-macs.el @@ -1403,14 +1403,14 @@ nil, just return 0." (1 `(encode-time ,@time)) ((or 6 9) `(encode-time (list ,@time))) (_ (error "`org-encode-time' may be called with 1, 6, or 9 arguments but %d given" - (length time))))) - (defmacro org-encode-time (&rest time) + (length time)))))) + (defmacro org-encode-time (&rest time) (pcase (length time) (1 `(encode-time ,@time)) (6 `(encode-time (list ,@time nil -1 nil))) (9 `(encode-time (list ,@time))) (_ (error "`org-encode-time' may be called with 1, 6, or 9 arguments but %d given" - (length time))))))) + (length time)))))) (put 'org-encode-time 'function-documentation "Compatibility and convenience helper for `encode-time'. May be called with 9 components list (SECONDS ... YEAR IGNORED DST ZONE) #+end_src regards Ken