alphapapa / org-ql

A searching tool for Org-mode, including custom query languages, commands, saved searches and agenda-like views, etc.
GNU General Public License v3.0
1.4k stars 110 forks source link

Fix: (orq-ql-view--link-follow) Get the `car` of `alist-get` results #442

Open snogge opened 3 months ago

snogge commented 3 months ago

The `read' function of Emacs 30 no longer accepts a list containing a string as if it was a string. This may be a bug in Emacs.

This avoids https://github.com/jorgenschaefer/emacs-buttercup/issues/247 . The actual bug is probably some problem with the stacktraces. Your solution from https://github.com/jorgenschaefer/emacs-buttercup/issues/218#issuecomment-1151658577 might also work around the problem.

danielfleischer commented 1 month ago

Alternatively, you can create conses instead of lists in org-ql-view--link-store but then it bothers url-build-query-string. The car solution seems like the simplest, but is it Emacs < 30 compatible?

snogge commented 1 month ago

As far as I know it is Emacs < 30 compatible