From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ECqcGkcy3WLZUgAAbAwnHQ (envelope-from ) for ; Sun, 24 Jul 2022 13:51:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oBOHGkcy3WI/2wAA9RJhRA (envelope-from ) for ; Sun, 24 Jul 2022 13:51:35 +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 F2F9716C5F for ; Sun, 24 Jul 2022 13:51:34 +0200 (CEST) Received: from localhost ([::1]:33540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFa90-0007Nf-2i for larch@yhetil.org; Sun, 24 Jul 2022 07:51:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFa86-0007Iy-DM for emacs-orgmode@gnu.org; Sun, 24 Jul 2022 07:50:38 -0400 Received: from mail-vi1eur05olkn2023.outbound.protection.outlook.com ([40.92.90.23]:36064 helo=EUR05-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 1oFa83-00034K-Kk for emacs-orgmode@gnu.org; Sun, 24 Jul 2022 07:50:37 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dQt0klLCpfXeoZKO7Bkomk+Ypv9JKSqSkTtRxq2PGp5SISNwU377f2goM+Gi86OUF9fyAwXRlkHt9ygVlwuHVKGg4CQ0g1rnoSIVzjkqGv9ym7X1AMuNK9xAvOpb35BcMwiEqxq3+B27j64wPPD687MYz2p/Iuv6skymSttlgxxXNTUZVB4gtjOpvHwYqgudhHVAXsH2pKANScqp+oIB/JXYf9KKNDx/xy/vq26Y4gi6TsvVE2vC4HC5hmhVagkFBaJtXmAlkFxlF6VB2F05F6gm3qvwki3yZgGAj8Z+sbVsppvEYcjUnlh5Z1DZ/1iLeLor5yOstRiC1jJJldMJYQ== 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=+gwaFZbd9kLCp/UdklI348sP7XDq/8iG7ElTLNnFop8=; b=g4gdmKRbFsU6ZNXXZaZFyJ0oVIXUPBIWm2dJmPTHxsQ8PDaWh6UhnYAQDMOg8X9z6rGHj22QRMUiU9KyV9yAZ42gyyP5XYwipbfxo0hnNuG2qQPnP28l1tMUjJ4XnPzjBbPRhNlHYOD9ATLCmEPHUl7GjWZ3ZGdAkYFQ3IT9ils8kobBy6Zy/msXW+N8GFHtRNCnh4JWE021tKy4/xowWnapeNmabo9mEQ9CQz8QuxURKQiroKF38GtAUV4BI8Dw6MdB+yTsBe7UZjh3/WZ5y2tnpD+uKeA4DPLCDiEHOVsPtoYR+grIY6NCY3V9U8lAS2CFru/8VgPO33qjckthSw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from PAXP251MB0470.EURP251.PROD.OUTLOOK.COM (10.167.18.107) by PAXP251MB0076.EURP251.PROD.OUTLOOK.COM (10.242.135.133) 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 11:50:30 +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 11:50:29 +0000 References: <87y1widf0h.fsf@localhost> User-agent: mu4e 1.8.5; emacs 29.0.50 From: Kenneth Stuart To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: Bug in definition of org-encode-time Date: Sun, 24 Jul 2022 12:37:28 +0100 In-reply-to: Message-ID: Content-Type: text/plain X-TMN: [7k7pqgnhMzxuBNU/G4ZqkdiDJ8pj73Wy] X-ClientProxiedBy: LO4P123CA0675.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:351::19) To PAXP251MB0470.EURP251.PROD.OUTLOOK.COM (2603:10a6:102:283::11) X-Microsoft-Original-Message-ID: <871quawwzf.fsf@hotmail.co.uk> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5b61d975-5e9b-4d06-e005-08da6d6ab4fc X-MS-TrafficTypeDiagnostic: PAXP251MB0076:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Jcgn5POdKhT6Nowypl2HHBj4JaUx0JOrjRiizgPr8mWv5tiioX9Bfu8dY5caxfYZlA6aSctNxbeTM0hUKKDZPuglChaQ7IgHhCs5uRlIbd4Ac8z4ApLFLOlx7guj6/vnrgCfeu7uQMOMYJvpIKGW8NhXxxA2jMGwt21mfm92eCyTAzK9HTBTVkmk6NjJnmd+ZSIVvAEP1Xal9DkHm/NfzYgmZcGUbBfHtLryHQaCa8bW169vijUsXPehqeu0/8vwyNUYStzrRnI+WvLmqSSzKFlfkyRGUIxfmvDyEI3Wde/mAYJmLwI8DfxpO77hYhKUG/3/SAPNJlU6ge54DOFM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LSDzOAED?= =?us-ascii?Q?DRnJfahGKP+C2A59Kvo2eJZ+9RLzW2eUP7HecGy7AiA/SbDOkIlxy61G6ayF?= =?us-ascii?Q?WM73Zo03pZmMYrV68DdT/0SrPtHsIyPSg0UbL6HMypTYMnqLfPwE9rkwVfqn?= =?us-ascii?Q?kiBH+o8nKXrpFDLpvPap1iyWPOTOyHQiAvoLMa+LQq1kQB5D9abrkYgS+6T6?= =?us-ascii?Q?7w8wN6neqNkeSbhHOEDhjHcJgSAjOrhZEQoe05Lt1oC4SQQ72cGnGcQIZ3dY?= =?us-ascii?Q?qXITBbAxHbUM1lMXkBIKVhT425jizOo7L26NurwYu1quPPB5KPCHU+7jgpJC?= =?us-ascii?Q?AxBbLnPj8P9HCZn4K/jHAgxEbIAiIXabRUal/KEhzo9j1stxpbQVoEVjjQR6?= =?us-ascii?Q?5IA/7+RJ7HPLjo/U4T5Hnn+Rksq8uOPrMA6iJ0fXw/fnqqO30RjbhchhLE0/?= =?us-ascii?Q?uZ5bpC2NaNebAdC4x6jBZWWpe75br1usBmLBVwyfXpnIRnTgrNu246/RJ4RK?= =?us-ascii?Q?TCyAfQnSZC+vO55q+ryU/B84mkMABMa9MCcpy/4IKz3RHZ3JMaCIZ1Z6zUX8?= =?us-ascii?Q?XKLvQh25E5IWUFOVSpsQsT9z2IyPrc7oPioC36MDJbQTxjoT9i0Sx+F5v5uD?= =?us-ascii?Q?6vidKkPq/LgRnml3M2EaDY9gOF8LOwLXEK+b+PJTTbG2gi28rpYsp9+2gaV0?= =?us-ascii?Q?7zUoDdJQOwsE3LgQrDUiQr7PaJQrbtFWGYEBlE1g+ZMROiA+HxV/5/MNAAJO?= =?us-ascii?Q?9EorNNodqvdM6t9e/Zjh3YQDtHzIr2WENxBplvjyVQ=3D=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-00b75.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 5b61d975-5e9b-4d06-e005-08da6d6ab4fc X-MS-Exchange-CrossTenant-AuthSource: PAXP251MB0470.EURP251.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2022 11:50:29.9122 (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: PAXP251MB0076 Received-SPF: pass client-ip=40.92.90.23; envelope-from=kstuart@hotmail.co.uk; helo=EUR05-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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-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-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=1658663495; 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=+gwaFZbd9kLCp/UdklI348sP7XDq/8iG7ElTLNnFop8=; b=J/GJopfiKo3i+dMYDvNOpaxSb3UC8hCAQp9p2l4UzzdpizqOxNWgv1YaofjBwljtYl2BPC 3FLNaLt0hcT1HoO1csb5FKjbDM+hH+KBkUtjjIcZmCP3YYJ5mE31hZH2Il7Ckp7ZQ2Yhkn GZQJo2JBuyvgXlgFxuV01ohc+mM2naic+6qb2Dg4o4ZyT26EwAz8m+HEsBg7ucStNpykku +RY4rXng+hwxmhAhCanoPxS0le3l/7gfWzmSPdHP5IUifc5SHYb2gHRrp4vzmSy93qpsXj ss0Z+j4XCfPsENUFMAMgu/RXe081lqlUlMHFfk6vhRQ1hrb7kolTYENhVVeByQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1658663495; a=rsa-sha256; cv=pass; b=OLy9YLzynFRZqo5wzaxfMF4WybiWoqhiWQXCmC721xo9htduqWBwiTEAm0sj+ViD68D5OZ FvkmMz0fzsHbCXpla5DuqE1m+ZZzPkbjHv2ZMbg98+YYfY+PjSgL/eq9j2oJMouDeISPvo wkCCmACPQw7c1xbf6rf1vY1pXxjZLPK9YLxD9C+ujmPd4ZhiTFVXl5zXeB1VQmc6w1PIwU 6gPRB0oSE1T27JBsMIcBPVi+lkEhCZKUp+UClDw6mafPA3YKvfBld+1Xuec/TDRwBMgZJZ 1/u35iJDn4Jh4GFVCH/Ajx8uPacSPkUDZwlVfc/E1vfCID51w4upliZXgLbymQ== 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: -1.23 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: F2F9716C5F X-Spam-Score: -1.23 X-Migadu-Scanner: scn0.migadu.com X-TUID: /DGATTOzy5IC This appears to be an issue with the emacs native compiler, as using a build without it enabled works as expected, and using a build with the native compiler enabled but before the relevant .eln files have been built also works as expected, once they've been built the issue mentioned by Morgan on the 22nd is once again present. Quote: > When I re-evaluate the defun for `org-matcher-time' everything is happy > again. I'm not sure what the issue is but I assume it's related to > compilation or something. emacs commit: 928ea0fbf13671e17c9839791163d1da056df490 I'll try reporting the issue using `report-emacs-bug`. Best, Ken Kenneth Stuart writes: > Yes, you're right I should have looked more closely, I also see 'Morgan > Smith' has already raised the issue more clearly. > > Please ignore the noise ;) > > Ihor Radchenko writes: > >> Kenneth Stuart writes: >> >>> 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. >> >> Are you sure? >> >>> #+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 >> >> This is equivalent to >> >> (if condition >> (defmacro ...) >> ;; else >> (if another-condition >> (defmacro ...) >> ;; else >> (defmacro))) >> >> Best, >> Ihor