From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UFfCNk9ljmCwjAAAgWs5BA (envelope-from ) for ; Sun, 02 May 2021 10:39:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aBdnMk9ljmAJOgAA1q6Kng (envelope-from ) for ; Sun, 02 May 2021 08:39:43 +0000 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 4F0B320DAD for ; Sun, 2 May 2021 10:39:43 +0200 (CEST) Received: from localhost ([::1]:53550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ld7dd-0007lL-DI for larch@yhetil.org; Sun, 02 May 2021 04:39:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ld7cm-0007l1-TE for emacs-orgmode@gnu.org; Sun, 02 May 2021 04:38:49 -0400 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:45028) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ld7cj-0006tT-QP for emacs-orgmode@gnu.org; Sun, 02 May 2021 04:38:48 -0400 Received: by mail-lf1-x12c.google.com with SMTP id t11so2112620lfl.11 for ; Sun, 02 May 2021 01:38:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=4neHEZ0XmNoO0YaM029fXGCAqtYOwXB03XDoeg2a4D8=; b=RBWkLo6weJYSlJ0WcmSdent6c/8mW8OjSkN9RzEcSXDq9iObTSdnL3PjwrzOfe7z1J dfaUNKr4ICWEFcaj1kKCHwDgn43AL3Rv/0O6qfvLzOEsS+qO0MBnnIPbo0ubHH/t9PK3 es3/KfI1pOgI5gbwlFPaaLjGXgY92F2Df1lo7UzZYF8Wt5uYFQg6XY9Atyxes8Ijelry myLbUR8dN4sx9iabVHXBnrPbfGNwaG8cna7QE5UlQU1uc3nnVwIVIJEFQcZwjjW3o54S 0x6Efa5WxuiR5UKXWk/NaMTZ8vNwwpbepMOqSApTzh9Clyx60ZHT3vBKHYwt6MmqFlf4 X2KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=4neHEZ0XmNoO0YaM029fXGCAqtYOwXB03XDoeg2a4D8=; b=eKHJBGk6soEQjGZTvRNnOm69E89Bhq2QLQtrRnwNIuLoHKF4G/P9DiCr1ab29orvGx tQZeWncV+m/TGg2oZd2wr2PyWykC0sbYsRjPW8ty2UYwuQMgsAXrKZ7Px06iQ3lX9qix WzE8rlzmezjfqpSFpwOBTQu7ZaoqUSv7pSfsmLAjBbRD8FUHbFkfWg+MH0kW1CS2BUVw kMuDH4TPLRG9qkcfmGgBSBEq5jW9gYsu2jgQ4dL+Hqwx7Uj7mCKEDiSorzLUmqZ3Ov3e MKRFTQXqCZ44G7/Z5H5UIa2ccqvmd0JbBdM7wYvdtcHSZv2VnqFhJktUsM/LhDvtBeHv sHzw== X-Gm-Message-State: AOAM531vhTPJSgUBut/aMy+13ko/0vlcP96H+b3K8K989pod+wxlX8nx mi+2HtjNwJtpGhDNdwV/Sm31XYZv8l5ZFv4kNEQ= X-Google-Smtp-Source: ABdhPJy7EELthrM2fR4TFwbiiJdckQnh68lbfl9O/a57lsTObDXQYSZuga9FVraTzhrj23vReX55Lw== X-Received: by 2002:a05:6512:39c5:: with SMTP id k5mr9728672lfu.317.1619944723776; Sun, 02 May 2021 01:38:43 -0700 (PDT) Received: from localhost ([91.210.107.197]) by smtp.gmail.com with ESMTPSA id r3sm85809ljc.32.2021.05.02.01.38.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 May 2021 01:38:43 -0700 (PDT) From: Ihor Radchenko To: emacs-orgmode@gnu.org Subject: [PATCH] org-test: Fix wrong-numbre-of-arguments error on master+native-comp Date: Sun, 02 May 2021 16:43:08 +0800 Message-ID: <87pmy9bk6b.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=yantar92@gmail.com; helo=mail-lf1-x12c.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619944783; 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:dkim-signature; bh=4neHEZ0XmNoO0YaM029fXGCAqtYOwXB03XDoeg2a4D8=; b=Dn+lBaxgy8TmjeFCI0Tx26Jj2umZlaI55TOpVLc2m6hfIacvulnFHUlEvr6hZZ4UL2+xER S8TM30nKSF+h8C0BlRFWm4sVsXszwY/hnLkF4bSTtMz+IyeGn77cDMzZ/fWznkBWkHKBJL 2jhYXvXXXJk3Slw9ZFGpMom3DPcO1vQNASmphpaFhGpwL90a2+B2J/NIUhTyNcZ7A9RWnD Iu1gFbb7IeTMzFlbHLUwBJm445WWsG6xcbTqY107BZBfGXD2TfO9IqdYEkG6lfmFdrxUpW nr1DF9zrdcFu1VCGXqrOKqLbis9ZyEjBOhhWumQaUfRtZ0LLQPmGgI3HKINshQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619944783; a=rsa-sha256; cv=none; b=V+IoKnpdMlHqL57mVQzrzIUiMO01OnJ6Scc6FpoVBArbDZs18ACKd6D/r9S1qzaXTEYY40 r3Yex+gdcuWYX+HHyZQxZ5mWbguQmmjMWM0zpDKMvklh2xzidnEnkwrS+i9vjf7ADkmgfd fadzD4FBlbOiTXu4Vs6og9y3UfSniKJEjLxc/NMCO5usQEybOLvUvlfoUvPJSrZfBLMlOQ xsZy3Mq00LIqUBtvjRS2e5tBrETUWeVNh9P3ehWy9zT7tZYOgTr9nkOAXM6hvI6mAphBPY s4VuljfQ5+s56dHfIp1aw4xVnQtjlZ9s/MwwVZACF8sIPJvPi+QyOemNgeJokg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=RBWkLo6w; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.66 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=RBWkLo6w; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 4F0B320DAD X-Spam-Score: -2.66 X-Migadu-Scanner: scn0.migadu.com X-TUID: zehqxT9S58yx --=-=-= Content-Type: text/plain Running make test on master using Emacs master compiled with native-comp support throws error: decode-time((22352 22528) nil nil) time-to-days((22352 22528)) org-time-stamp-to-now("2016-06-03 Fri") org-deadline-close-p("2016-06-03 Fri" 0) apply(org-deadline-close-p ("2016-06-03 Fri" 0)) As discussed in Emacs bug#48133, this is because of outdated cl-letf statement in org-test. The attached patch is fixing the problem. Best, Ihor --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-org-test-Fix-wrong-numbre-of-arguments-error-on-mast.patch >From f973eb6cf635ccce86b865001d0bca5fba29c898 Mon Sep 17 00:00:00 2001 Message-Id: From: Ihor Radchenko Date: Sun, 2 May 2021 16:29:02 +0800 Subject: [PATCH] org-test: Fix wrong-numbre-of-arguments error on master+native-comp * testing/org-test.el (org-test-at-time): Use correct number of arguments in 'decode-time cl-letf binding. `decode-time' accepts up to 3 arguments on master. The wrong-numbre-of-arguments error is raised on Emacs master configured with native-comp support when running make test on Org mode master. Native-comp modifies function calls with optional arguments in the way that omitted arguments are still provided as `nil'. For example, `decode-time' called as (decode-time time) in lisp source may be compiled into (decode-time time nil nil) call by native-compiler. If redefined `decode-time' does not accept 3 arguments, it result in error. See Emacs bug#48133. --- testing/org-test.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/org-test.el b/testing/org-test.el index ade212440..30adb977e 100644 --- a/testing/org-test.el +++ b/testing/org-test.el @@ -466,8 +466,8 @@ (defmacro org-test-at-time (time &rest body) (apply ,(symbol-function 'current-time-zone) (or time ,at) args))) ((symbol-function 'decode-time) - (lambda (&optional time) (funcall ,(symbol-function 'decode-time) - (or time ,at)))) + (lambda (&optional time zone form) (funcall ,(symbol-function 'decode-time) + (or time ,at) zone form))) ((symbol-function 'encode-time) (lambda (time &rest args) (apply ,(symbol-function 'encode-time) (or time ,at) args))) -- 2.26.3 --=-=-=--