From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 UMGfK4Ok3mJQUgEAbAwnHQ (envelope-from ) for ; Mon, 25 Jul 2022 16:11:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +MmZK4Ok3mLOWAEA9RJhRA (envelope-from ) for ; Mon, 25 Jul 2022 16:11:15 +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 5B86EE259 for ; Mon, 25 Jul 2022 16:11:15 +0200 (CEST) Received: from localhost ([::1]:48586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFy5J-00029P-T6 for larch@yhetil.org; Mon, 25 Jul 2022 09:25:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFy4Q-00029E-JO for emacs-orgmode@gnu.org; Mon, 25 Jul 2022 09:24:26 -0400 Received: from ciao.gmane.io ([116.202.254.214]:49720) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFy4P-0001T2-86 for emacs-orgmode@gnu.org; Mon, 25 Jul 2022 09:24:26 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1oFy4N-0000WE-K1 for emacs-orgmode@gnu.org; Mon, 25 Jul 2022 15:24:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Nick Dokos Subject: Re: org-encode-time bug Date: Mon, 25 Jul 2022 09:24:19 -0400 Message-ID: <87bktdpbp8.fsf@alphaville.usersys.redhat.com> References: <875yjopots.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cancel-Lock: sha1:KmwMWVMApcn45wCTS9mRx3skw2I= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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=1658758275; 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:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=dV3vp/jhQhlbjqRnirnA8rQ7YMvu9eqi1y0zP6m6/GY=; b=qbVi6A4YOekEC/ShX10O5XcVG3+jp2Q+JbszUCTgwTA9r0SWTzzQvC8Ir2uQ89N8tCUWJe BrbXcqBQIyoc9FjuEnSt4dqUj9SK30Z+egGwf/hS2kut66UKKZLudDb0YZ569YdO0sfSbb rMPsQ76D8VTuIivg5XvXoHcpk2f6W8DKEHa1vHzNiB+Zg7wO1/vmqwLE8p0mRBnXFup9vT QTrnKv+hSRhu6A8kGLY2saq++N2Ie6gTTbU26NvDpHXjgEYvwlG5yVCj2t5/QKdFg1vLTI 7b0fyCCRliopZDi6WZJFuxOltDV+703o4UNtqlRwtsndvtDiWnt14CG3XMHuOg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658758275; a=rsa-sha256; cv=none; b=kilmzhpFEsqpjBcgxwyvI12FX9PzAIWMIdEaHKrL948gwaWN9qf/acwUhYhcYBEPbZpZ0B IaCOHujX5GUo5YNpbk2sWKQ2eReGrlt3rvLy4rvo30Nbk7G5FGDm1n/RKndUK6I+H2OD29 6H42UdaI870BjrZ1c4FN/q84lzDFcUuFVEsbdZrVAAZ7W45XhStnJJCFXL7q6b0tyvgba8 Jqb662t/Qg7oNVOAd9DEkanKVZlyqQU6Ub6jod41JgQ0NJmx9rJ/juXQnxhl5MURDt8sE1 F8NbIY1dr0sgXSAhByqge2y01P3xm4R1bSFRXCe0dP06xz4nEPij/dHZtllijg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (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: 4.27 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (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: 5B86EE259 X-Spam-Score: 4.27 X-Migadu-Scanner: scn1.migadu.com X-TUID: TD83SD3oJ/s4 Ihor Radchenko writes: > Morgan Smith writes: > >> I'm using emacs from commit f258f67 (quite recent) and org from commit >> 39005dc (quite recent). >> >> I'm using native compilation and PGTK. > >> Debugger entered--Lisp error: (invalid-function org-encode-time) >> org-encode-time((0 0 0 21 7 2022 4 t -14400)) >> org-matcher-time("<2022-07-21 Thu 00:00>") >> org-clock-get-table-data(...) >> org-dblock-write:clocktable(...) >> org-update-dblock() >> org-ctrl-c-ctrl-c(nil) >> funcall-interactively(org-ctrl-c-ctrl-c nil) >> command-execute(org-ctrl-c-ctrl-c) > > org-encode-time is defined in org-macs.el in the latest Org, but _not_ > in built-in Org. What you are seeing is most likely caused by "mixed" > installation of Org when part of Org is loaded from built-in Org > distribution coming from Emacs. > >> I was able to reproduce this with 'emacs -Q' >> >> When trying to update a clocktable I get the following backtrace (with a >> little bit removed). > > Could you please detail on what you did to load the latest org with > Emacs -Q? Using purely emacs -Q cannot trigger the error simply because > org-encode-time is absent in the built-in Org. > In my case, it was caused by an update, followed by `make autoloads', followed by 'org-reload'. That last part is not guaranteed to work, particularly on the cutting edge, so restarting emacs is sometimes necessary - as it was in this case. No problems afterwards. -- Nick "There are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors." -Martin Fowler