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

org-ql-find not working #338

Closed arozbiz closed 1 year ago

arozbiz commented 1 year ago

org-ql-find is not returning anything and throwing an error. E.g., in buffer with the following contents:

* TODO heading

Running org-ql-find and entering "heading" or "todo:" in the prompt returns the error Wrong type arguments: markerp, nil. Tracing with edebug, it looks like the problem is the org-ql-completing-read function, which returns nil.

alphapapa commented 1 year ago

Hello @arozbiz,

Thanks for reporting this problem. However, I am unable to reproduce it in a clean Emacs configuration on Emacs 28.

alphapapa commented 1 year ago

@arozbiz Well, I spent several hours testing it more thoroughly with the default Emacs completion, and I found some issues, including basically what you described. The "Programmed Completion" API in Emacs is very difficult. But after much wrangling, this seems to work better now. Please test with the newest commit on the master branch and let me know if it works for you now.

arozbiz commented 1 year ago

It works, thanks.