guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Org 9.6: void org-element--cache-active-p on fresh


From: zimoun
Subject: Org 9.6: void org-element--cache-active-p on fresh
Date: Mon, 16 Jan 2023 20:43:28 +0100

Hi,

I do not know if the issue is on Guix side or Org-mode side; or maybe on
my side, hence this email. :-)

Here a reproducer:

--8<---------------cut here---------------start------------->8---
$ cat config.el

(setq
 org-directory "/tmp/"
 org-agenda-files '("example.org")
 org-element-cache-persistent nil)

$ cat example.org

* DONE Yesterday
CLOSED: [2023-01-15 Sun 15:45]

* DONE Today
CLOSED: [2023-01-16 Mon 15:45]
--8<---------------cut here---------------end--------------->8---

(Well, modify the date of “Today“ to be your today’s date.)

Then,

    $ guix shell -C emacs-minimal emacs-org -E TERM \
           -- emacs -q -l config.el -f org-agenda

    Select: m Match a TAGS/PROP/TODO query

--8<---------------cut here---------------start------------->8---
org-get-buffer-tags: Symbol's function definition is void: 
org-element--cache-active-p
--8<---------------cut here---------------end--------------->8---

Note that it does not happen with Org 9.5.5 included in Emacs; i.e.,

    $ guix shell -C emacs-minimal -E TERM \
           -- emacs -q -l config.el -f org-agenda


Now consider:

    $ guix shell -C emacs-minimal emacs-org -E TERM \
           -- emacs -q -l config.el                 \
           --eval "(require 'org-element)"          \
           -f org-agenda

Then press ’m’ and type: CLOSED>="<today>".  The result is:

--8<---------------cut here---------------start------------->8---
Headlines with TAGS match: CLOSED>="<today>"
Press `C-u r' to search again
  example:    DONE Yesterday
  example:    DONE Today
--8<---------------cut here---------------end--------------->8---

The expected result (at least using Org v9.5) is to only match with the
item “Today” – the item “Yesterday” should be filtered out; e.g.,

        Headlines with TAGS match: CLOSED>="<today>"
        Press `C-u r' to search again
          example:    DONE Today

Well, is it a bug on Guix side or is it a bug on Org-mode side?  Or from
my config?


Cheers,
simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]