From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CEGUDlZQ5WHLMgAAgWs5BA (envelope-from ) for ; Mon, 17 Jan 2022 12:17:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gF/xC1ZQ5WEsaAEA9RJhRA (envelope-from ) for ; Mon, 17 Jan 2022 12:17:42 +0100 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 C30EE2E9E1 for ; Mon, 17 Jan 2022 12:17:41 +0100 (CET) Received: from localhost ([::1]:33026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9Q16-0000Ug-JC for larch@yhetil.org; Mon, 17 Jan 2022 06:17:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9PzP-0000U3-5c for emacs-orgmode@gnu.org; Mon, 17 Jan 2022 06:15:59 -0500 Received: from [2607:f8b0:4864:20::632] (port=35592 helo=mail-pl1-x632.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n9PzK-0004q7-AP for emacs-orgmode@gnu.org; Mon, 17 Jan 2022 06:15:54 -0500 Received: by mail-pl1-x632.google.com with SMTP id u15so20941019ple.2 for ; Mon, 17 Jan 2022 03:15:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=kyVenyDNO7QAKLuPlyk59gxq142U58upi9ruY34nW14=; b=gG7LO8ZhMCg7bf8SAT339ROfr7x3oiIfJTIunrL2NERNXrvGQWT8JL+v2FTyw3jENN /pOnHQIkkMKQFVAmUREObQAO76V3N3J54CsgDZEgsQ8gsT2kEiVHjU/2UFzswzWTK+fE AfEFRYVSkIfhRh6I+cPItJpAfg1buJ+p9N2dwP9oqzwcgbic19NrPvJ46qWFXDEi8ViU QtDhVBYcCDdiWS8G/YtZwIiQJw7t92/6YrJgOiFKfpTiv06dRT+CSfq0ySM/vkY9JvVi GKLTkFapLDtK0jt8d7Qj+4fY3VPxDMa2MVAuIa8A4lI5RHdV/N3IgVMzKglE6yhcjG1K rCZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=kyVenyDNO7QAKLuPlyk59gxq142U58upi9ruY34nW14=; b=qXRo2vUWT0Fqagxs16Uwk9MHeSPdvueNQzH+P+F4xXdIZn/PQjhI2UpFu63Quvo2FD ImZ1j8n+GHIQ8kX1i/4286y+aiKvE9AwpZoQg78fLN8K/fBW2y0eQ2+vtPy6tvRsa65f 6PRqOIkHUrD7BZ/x+f0mcdG3jySEUbyEAp+KE+rdZ3g+GS7IhAIhhFWNpfVekKSF/pV8 KXNkmyZJsRqg9Rs3Tu6RRQHzP7NVsJqdgArN3FsGN2wbwnOaGXB4ayQBELcgTTj8Pjjz MYYwV7L3VjwfXHc88vFimegNvFOwS97bhQBxdR5qg9ehGUkpINvRaE2K19XavpbrwFm5 Aq+Q== X-Gm-Message-State: AOAM531rv7A/c70cq8SWjb1ggHBwvfPfUkqBTOjZPZonjUCH9yRb0ziw LgT5D4X+0HYKZJKjFuppfJE= X-Google-Smtp-Source: ABdhPJz8kX97g03Ai3FTWg9LOwL0SGemmsdtW+FQO+68ABbBHKCTbL4Ts+IDS25h/8gnQQBkAjPb7Q== X-Received: by 2002:a17:902:cece:b0:14a:73bb:e75 with SMTP id d14-20020a170902cece00b0014a73bb0e75mr22028880plg.115.1642418139618; Mon, 17 Jan 2022 03:15:39 -0800 (PST) Received: from localhost (61-216-157-182.hinet-ip.hinet.net. [61.216.157.182]) by smtp.gmail.com with ESMTPSA id gf13sm12295800pjb.13.2022.01.17.03.15.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jan 2022 03:15:39 -0800 (PST) From: Ihor Radchenko To: Giorgi Gvalia Subject: Re: [BUG] Evaluating org-class throws a void-variable error [9.6 (9.6-??-0c9b30e96 @ ~/.emacs.d/.local/straight/build-27.2/org/)] In-Reply-To: References: Date: Mon, 17 Jan 2022 19:20:01 +0800 Message-ID: <875yqisj6m.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::632 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=yantar92@gmail.com; helo=mail-pl1-x632.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: , Cc: "emacs-orgmode@gnu.org" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642418262; 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:dkim-signature; bh=kyVenyDNO7QAKLuPlyk59gxq142U58upi9ruY34nW14=; b=UaWrB1GI0q7UWqFDXFpjqSR020v9GKOgDSsUCMOPhbNsU2rxeM0kD/aL7YjivUEM6QlCqA zpDQx6g5HXi/DK6CMNiisvQ9E2khzGETHCbeyAkfOjkKKDe2VZvlwyy8Eo9jUJpAxEz/ND kr6KS1l/x2BE82Ey6DFVXB5q931g2nmWwgsuST8v2nj9OQ+mlj0VJ3Ofv0TSOa9BTTo9HO 7DdsZq7IBst5p4XZvghD7qBeZ3cvGk86FdiO4VdSez18Ui/qw/0T4s3ArSIrz9iYWRNadi VFUwkgVYs5ejWdA2RvhN8iwklJ8gfcIjrHsg8TEVvbywAwPl6eMFv7aGO2hW0w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642418262; a=rsa-sha256; cv=none; b=KaTXvidZamZnMhfB1id0ZWlRJ6xZYD37/q3Pn+hiSMqQT/NPlueaA5Rxv3gKC/oXk+/cL9 H3BcUjA5+yDjQ5UyztwEO60ZwPGZiw7c1/BOBwoRdQ5OxdMgUQ5/4KCAdiviY1XpOXDx33 rkL930YoKf7JcttZpIg+f/w1UqWbhiUkChC3xP/7aznZV1FvpyC9Z0I6SexFZym1KP3onS O6aqH+hAQwnCh/ql8uSSm4KF+8SJxUDmI3fsqo7GtY15iB46AGzfP5ojddr3iIV28XroJF m1mHy6Qd9kmUtqItffYDP6KuxfjT6jZRRojw76GVcK0Akp+Hih69INcPNYAboA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=gG7LO8Zh; dmarc=pass (policy=none) header.from=gmail.com; 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.82 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=gG7LO8Zh; dmarc=pass (policy=none) header.from=gmail.com; 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: C30EE2E9E1 X-Spam-Score: -3.82 X-Migadu-Scanner: scn1.migadu.com X-TUID: 0cTfePXS3Nai Giorgi Gvalia writes: > Excuse the potential bad formatting, I am new to sending bug reports like this. > > When using the string `<%%(org-class 2022 1 17 2022 5 7 1 17 19)>` to schedule an item, I was expecting for it to build occurences accordingly. Instead I received the error "Not an Org time string: %%(org-class 2022 1 17 2022 5 7 1 17 19)". I then tried to evalute the org-class expression by itself and received the following error: "Symbol's value as variable is void: date". Looking at the source code, I see that there is a variable "date" that is defined on line 5950 of org-agenda.el and subsequently used to define the variable "d" in the let block. Unfortunately, I'm not able to ascertain where the value of this variable should be acquired from. I just tried the following heading and it works just fine: * this SCHEDULED: <%%(org-class 2022 1 17 2022 5 7 1 17 19)> Can you provide exact steps that you tried? Ideally, starting from clean configuration. See https://orgmode.org/manual/Feedback.html The error you are getting is to be expected because diary functions are special. They expect the variable =date= to be set externally. It is normally done by agenda, but not when you try to evaluate the diary function manually. Best, Ihor