org-ql icon indicating copy to clipboard operation
org-ql copied to clipboard

org-agenda-bulk-mark-regexp does not work with org-ql-agenda

Open ParetoOptimalDev opened this issue 3 years ago • 1 comments

I think the 'text property isn't preserved or built by the org-ql query maybe?

The reason is that debugging led me to find out that this fails in an org-ql-view buffer:

(get-text-property 50 'txt) 

But in a normal org agenda buffer I get:

  #("TODO Morning Routine :recurring:routine::morningRoutine:" 0 4 (fontified t org-category "recurring" org-stats 0 line-prefix #("***" 0 3 (face org-indent)) wrap-prefix #("******* " 0 3 (face org-indent) 3 8 (face org-indent)) face (org-todo org-level-4) ...) 4 20 (fontified t org-category "recurring" org-stats 0 line-prefix #("***" 0 3 (face org-indent)) wrap-prefix #("******* " 0 3 (face org-indent) 3 8 (face org-indent)) face org-level-4 ...) 20 22 (org-heading t) 22 31 (inherited t org-heading t) 31 32 (org-heading t) 32 39 (inherited t org-heading t) 39 56 (org-heading t))

I'm using nix, but I've made sure to manually install the correct compatible versions of org-ql and org-ql-agenda:

org: 9.5.4 (mismatch org-ql specifies org 9.0... does it specifically need to be 9.0?) org-ql: 0.7-pre org-super-agenda: 1.2 ts: 0.3-pre (mismatch should be 0.2 for org-ql)

aside: I've created an upstream issue to hopefully eventually make sure package requires versions are respected in NixOS/nixpkgs#182645

Do you know if other emacs package managers respect package requires? I'd like to add that to my issue there as an argument for respecting package requires if so.

ParetoOptimalDev avatar Aug 01 '22 18:08 ParetoOptimalDev

I think the 'text property isn't preserved or built by the org-ql query maybe?

You can see what properties are added here: https://github.com/alphapapa/org-ql/blob/06f1e1be6ff5ef7e2c8c05dc1954bcedcbb6eb0b/org-ql-view.el#L823

aside: I've created an upstream issue to hopefully eventually make sure package requires versions are respected in https://github.com/NixOS/nixpkgs/issues/182645

Do you know if other emacs package managers respect package requires? I'd like to add that to my issue there as an argument for respecting package requires if so.

In Emacs, the Package-Requires header specifies minimum versions that are required, not exact versions. It would be incorrect to forbid later versions from being used.

alphapapa avatar Aug 02 '22 00:08 alphapapa