From: Ihor Radchenko <yantar92@gmail.com>
To: Giorgi Gvalia <gvalia@protonmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: [BUG] Evaluating org-class throws a void-variable error [9.6 (9.6-??-0c9b30e96 @ ~/.emacs.d/.local/straight/build-27.2/org/)]
Date: Mon, 17 Jan 2022 19:20:01 +0800 [thread overview]
Message-ID: <875yqisj6m.fsf@localhost> (raw)
In-Reply-To: <bYCcdUShxKwJ8fUmCsfVaLP6vuefQf1rz6MAQfWpvNN7gEaJhm42roIzOlcK2fL6FvU9HjDAT1ITUcf4O4RylSXRNfyYKbO_CoqYmj1xHBI=@protonmail.com>
Giorgi Gvalia <gvalia@protonmail.com> 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
next prev parent reply other threads:[~2022-01-17 11:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-16 18:09 [BUG] Evaluating org-class throws a void-variable error [9.6 (9.6-??-0c9b30e96 @ ~/.emacs.d/.local/straight/build-27.2/org/)] Giorgi Gvalia
2022-01-17 11:20 ` Ihor Radchenko [this message]
[not found] ` <-PAgSsqWX-jRhNc-uCVbsFqIm1TH0AUgR3wFAHWpkMjncKnL4ctK_N24q0qS9ccuhk8R2YSxB08UwhoBzoaW2bQksI55dC60Wt56JXS09C8=@protonmail.com>
[not found] ` <87o849npya.fsf@localhost>
[not found] ` <87fspjabpq.fsf@nicolasgoaziou.fr>
[not found] ` <87y23bjgh0.fsf@localhost>
2022-10-16 4:01 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=875yqisj6m.fsf@localhost \
--to=yantar92@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=gvalia@protonmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.