From: Ihor Radchenko <firstname.lastname@example.org> To: Giorgi Gvalia <email@example.com> Cc: "firstname.lastname@example.org" <email@example.com> 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_CoqYmj1xHBIfirstname.lastname@example.org> Giorgi Gvalia <email@example.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
prev parent reply other threads:[~2022-01-17 11:17 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-01-16 18:09 Giorgi Gvalia 2022-01-17 11:20 ` Ihor Radchenko [this message]
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 List information: https://www.orgmode.org/ * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=875yqisj6m.fsf@localhost \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.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/)]' \ /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
Code repositories for project(s) associated with this inbox: https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).