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

2023-01-21 Thread zimoun
Hi,

On Mon, 16 Jan 2023 at 20:43, zimoun  wrote:

>> --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---

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

Fixed upstream by 5d9c9c27c68f1af1159dfeb62352b2fa610b1d9f [1].

1: https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=5d9c9c27c


Cheers,
simon




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

2023-01-17 Thread Simon Tournier
Hi,

On lun., 16 janv. 2023 at 20:43, zimoun  wrote:

> 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>="".  The result is:
>
> --8<---cut here---start->8---
> Headlines with TAGS match: CLOSED>=""
> 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>=""
> 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?

Using Guix 29efa27 and so Org 9.6.1, this last issue about
CLOSED>="" seems fixed.

Cheers,
simon



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

2023-01-16 Thread zimoun
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>="".  The result is:

--8<---cut here---start->8---
Headlines with TAGS match: CLOSED>=""
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>=""
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