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.35k stars 104 forks source link

org-ql-find fails when helm-completion-style set to 'emacs #337

Open progfolio opened 1 year ago

progfolio commented 1 year ago
          When trying `org-ql-find` with helm enabled, I get the following backtrace:
Debugger entered--Lisp error: (error "Invalid completion style helm")
  error("Invalid completion style %s" helm)
  #f(compiled-function (style) #<bytecode -0x18735930811c43bf>)(helm)
  completion--some(#f(compiled-function (style) #<bytecode -0x18735930811c43bf>) (helm org-ql-completing-read))
  completion--nth-completion(2 "" #f(compiled-function (str pred flag) #<bytecode 0xbfab22765670426>) nil 0 (metadata (group-function . #f(compiled-function (candidate transform) #<bytecode 0x16b4cfad07a35e5e>)) (affixation-function . #f(compiled-function (completions) #<bytecode 0xe9e89cb9f3d8fc5>)) (annotation-function . #f(compiled-function (candidate) #<bytecode -0x122504def6a5aad0>))))
  completion-all-completions("" #f(compiled-function (str pred flag) #<bytecode 0xbfab22765670426>) nil 0 (metadata (group-function . #f(compiled-function (candidate transform) #<bytecode 0x16b4cfad07a35e5e>)) (affixation-function . #f(compiled-function (completions) #<bytecode 0xe9e89cb9f3d8fc5>)) (annotation-function . #f(compiled-function (candidate) #<bytecode -0x122504def6a5aad0>))))
  #f(compiled-function (str predicate action) #<bytecode 0xcfb8e5a2b58c1bf>)("" nil t)
  helm-comp-read-get-candidates(#f(compiled-function (str predicate action) #<bytecode 0xcfb8e5a2b58c1bf>) nil nil t "")
  #f(compiled-function () #<bytecode -0xba74e3b52c01a29>)()
  helm-apply-functions-from-source(((nomark) (name . "org-ql-find") (candidates . #f(compiled-function () #<bytecode -0xba74e3b52c01a29>)) (keymap keymap (127 . delete-backward-char) (27 keymap (13 . helm-cr-empty-string)) (C-return . helm-cr-empty-string) keymap (normal-state keymap (32 . helm-toggle-visible-mark) (121 keymap ... ... ...) (47 . helm-quit-and-find-file) (71 . helm-end-of-buffer) (107 . helm-previous-line) (106 . helm-next-line) (41 . helm-next-visible-mark) (40 . helm-prev-visible-mark) (103 keymap ... ... ... ...) (93 keymap ...) (91 keymap ...) (tab . helm-select-action) (4 . helm-next-page) (15 . helm-next-source) (14 . helm-next-line) (16 . helm-previous-line) (22 . helm-next-page) (13 . helm-maybe-exit-minibuffer) "Auxiliary keymap for Normal stat..." (2 . helm-previous-page) (6 . helm-next-page) (27 keymap ... ... ... ... ... ...)) (insert-state keymap "Auxiliary keymap for Insert stat..." (15 . helm-next-source) (14 . helm-next-line) (16 . helm-previous-line) (22 . helm-next-page) (13 . helm-maybe-exit-minibuffer) (2 . helm-previous-page) (6 . helm-next-page) (27 keymap ... ... ... ... ... ...)) (\(insert\ normal\)-state keymap "Auxiliary keymap for (insert nor...") (1 . helm-select-action) (tab . helm-execute-persistent-action) (f12 . #f(compiled-function () ... #<bytecode 0x198021534c2280>)) (f11 . #f(compiled-function () ... #<bytecode 0x198021534a1280>)) (f10 . #f(compiled-function () ... #<bytecode 0x198021534b0280>)) (f9 . #f(compiled-function () ... #<bytecode 0x198021534ef280>)) (f8 . #f(compiled-function () ... #<bytecode 0x198021534fe280>)) (f7 . #f(compiled-function () ... #<bytecode 0x1980215343d280>)) (f6 . #f(compiled-function () ... #<bytecode 0x1980215342c280>)) (f5 . #f(compiled-function () ... #<bytecode 0x1980215340b280>)) (f4 . #f(compiled-function () ... #<bytecode 0x1980215341a280>)) (f3 . #f(compiled-function () ... #<bytecode 0x19802153479280>)) (f2 . #f(compiled-function () ... #<bytecode 0x19802153468280>)) (menu-bar keymap (help-menu keymap ...)) (help keymap (109 . helm-help)) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x19802155767280>)) (8 . helm-find-files-up-one-level) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) (67108897 . helm-toggle-suspend-update) (3 keymap (57 . #f(compiled-function () ... #<bytecode -0x47bd7e929ab6975>)) (56 . #f(compiled-function () ... #<bytecode -0x47bd7e929ba6975>)) (55 . #f(compiled-function () ... #<bytecode -0x47bd7e929896975>)) (54 . #f(compiled-function () ... #<bytecode -0x47bd7e929986975>)) (53 . #f(compiled-function () ... #<bytecode -0x47bd7e928776975>)) (52 . #f(compiled-function () ... #<bytecode -0x47bd7e928666975>)) (51 . #f(compiled-function () ... #<bytecode -0x47bd7e928556975>)) (50 . #f(compiled-function () ... #<bytecode -0x47bd7e928446975>)) (49 . #f(compiled-function () ... #<bytecode -0x47bd7e92b536975>)) (110 . helm-helm-run-cycle-resume-with-subkeys) (108 . helm-display-line-numbers-mode) (62 . helm-toggle-truncate-line) (21 . helm-refresh) (6 . helm-follow-mode) (9 . helm-insert-or-copy) (11 . helm-kill-selection-and-quit) (25 . helm-yank-selection) (37 . helm-exchange-minibuffer-and-header-line) (95 . helm-toggle-full-frame) (45 . helm-swap-windows)) (67108987 . helm-enlarge-window) ...) (action ("Sole action (Identity)" lambda (candidate) (if nil ... ...))) (persistent-help . "DoNothing") (requires-pattern . 0) (filtered-candidate-transformer helm-cr-default-transformer #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_39> helm-fuzzy-highlight-matches) (volatile . t) (match . identity) (redisplay . identity) (mode-line . "\\<helm-comp-read-map>C/\\[helm-cr...") (header-line . #("C-j: DoNothing (keeping session)" 0 3 (font-lock-face help-key-binding face help-key-binding))) (group . helm) (match-dynamic . t)) #f(compiled-function () #<bytecode -0xba74e3b52c01a29>))
  helm-interpret-value(#f(compiled-function () #<bytecode -0xba74e3b52c01a29>) ((nomark) (name . "org-ql-find") (candidates . #f(compiled-function () #<bytecode -0xba74e3b52c01a29>)) (keymap keymap (127 . delete-backward-char) (27 keymap (13 . helm-cr-empty-string)) (C-return . helm-cr-empty-string) keymap (normal-state keymap (32 . helm-toggle-visible-mark) (121 keymap ... ... ...) (47 . helm-quit-and-find-file) (71 . helm-end-of-buffer) (107 . helm-previous-line) (106 . helm-next-line) (41 . helm-next-visible-mark) (40 . helm-prev-visible-mark) (103 keymap ... ... ... ...) (93 keymap ...) (91 keymap ...) (tab . helm-select-action) (4 . helm-next-page) (15 . helm-next-source) (14 . helm-next-line) (16 . helm-previous-line) (22 . helm-next-page) (13 . helm-maybe-exit-minibuffer) "Auxiliary keymap for Normal stat..." (2 . helm-previous-page) (6 . helm-next-page) (27 keymap ... ... ... ... ... ...)) (insert-state keymap "Auxiliary keymap for Insert stat..." (15 . helm-next-source) (14 . helm-next-line) (16 . helm-previous-line) (22 . helm-next-page) (13 . helm-maybe-exit-minibuffer) (2 . helm-previous-page) (6 . helm-next-page) (27 keymap ... ... ... ... ... ...)) (\(insert\ normal\)-state keymap "Auxiliary keymap for (insert nor...") (1 . helm-select-action) (tab . helm-execute-persistent-action) (f12 . #f(compiled-function () ... #<bytecode 0x198021534c2280>)) (f11 . #f(compiled-function () ... #<bytecode 0x198021534a1280>)) (f10 . #f(compiled-function () ... #<bytecode 0x198021534b0280>)) (f9 . #f(compiled-function () ... #<bytecode 0x198021534ef280>)) (f8 . #f(compiled-function () ... #<bytecode 0x198021534fe280>)) (f7 . #f(compiled-function () ... #<bytecode 0x1980215343d280>)) (f6 . #f(compiled-function () ... #<bytecode 0x1980215342c280>)) (f5 . #f(compiled-function () ... #<bytecode 0x1980215340b280>)) (f4 . #f(compiled-function () ... #<bytecode 0x1980215341a280>)) (f3 . #f(compiled-function () ... #<bytecode 0x19802153479280>)) (f2 . #f(compiled-function () ... #<bytecode 0x19802153468280>)) (menu-bar keymap (help-menu keymap ...)) (help keymap (109 . helm-help)) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x19802155767280>)) (8 . helm-find-files-up-one-level) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) (67108897 . helm-toggle-suspend-update) (3 keymap (57 . #f(compiled-function () ... #<bytecode -0x47bd7e929ab6975>)) (56 . #f(compiled-function () ... #<bytecode -0x47bd7e929ba6975>)) (55 . #f(compiled-function () ... #<bytecode -0x47bd7e929896975>)) (54 . #f(compiled-function () ... #<bytecode -0x47bd7e929986975>)) (53 . #f(compiled-function () ... #<bytecode -0x47bd7e928776975>)) (52 . #f(compiled-function () ... #<bytecode -0x47bd7e928666975>)) (51 . #f(compiled-function () ... #<bytecode -0x47bd7e928556975>)) (50 . #f(compiled-function () ... #<bytecode -0x47bd7e928446975>)) (49 . #f(compiled-function () ... #<bytecode -0x47bd7e92b536975>)) (110 . helm-helm-run-cycle-resume-with-subkeys) (108 . helm-display-line-numbers-mode) (62 . helm-toggle-truncate-line) (21 . helm-refresh) (6 . helm-follow-mode) (9 . helm-insert-or-copy) (11 . helm-kill-selection-and-quit) (25 . helm-yank-selection) (37 . helm-exchange-minibuffer-and-header-line) (95 . helm-toggle-full-frame) (45 . helm-swap-windows)) (67108987 . helm-enlarge-window) ...) (action ("Sole action (Identity)" lambda (candidate) (if nil ... ...))) (persistent-help . "DoNothing") (requires-pattern . 0) (filtered-candidate-transformer helm-cr-default-transformer #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_39> helm-fuzzy-highlight-matches) (volatile . t) (match . identity) (redisplay . identity) (mode-line . "\\<helm-comp-read-map>C/\\[helm-cr...") (header-line . #("C-j: DoNothing (keeping session)" 0 3 (font-lock-face help-key-binding face help-key-binding))) (group . helm) (match-dynamic . t)))
  helm-get-candidates(((nomark) (name . "org-ql-find") (candidates . #f(compiled-function () #<bytecode -0xba74e3b52c01a29>)) (keymap keymap (127 . delete-backward-char) (27 keymap (13 . helm-cr-empty-string)) (C-return . helm-cr-empty-string) keymap (normal-state keymap (32 . helm-toggle-visible-mark) (121 keymap ... ... ...) (47 . helm-quit-and-find-file) (71 . helm-end-of-buffer) (107 . helm-previous-line) (106 . helm-next-line) (41 . helm-next-visible-mark) (40 . helm-prev-visible-mark) (103 keymap ... ... ... ...) (93 keymap ...) (91 keymap ...) (tab . helm-select-action) (4 . helm-next-page) (15 . helm-next-source) (14 . helm-next-line) (16 . helm-previous-line) (22 . helm-next-page) (13 . helm-maybe-exit-minibuffer) "Auxiliary keymap for Normal stat..." (2 . helm-previous-page) (6 . helm-next-page) (27 keymap ... ... ... ... ... ...)) (insert-state keymap "Auxiliary keymap for Insert stat..." (15 . helm-next-source) (14 . helm-next-line) (16 . helm-previous-line) (22 . helm-next-page) (13 . helm-maybe-exit-minibuffer) (2 . helm-previous-page) (6 . helm-next-page) (27 keymap ... ... ... ... ... ...)) (\(insert\ normal\)-state keymap "Auxiliary keymap for (insert nor...") (1 . helm-select-action) (tab . helm-execute-persistent-action) (f12 . #f(compiled-function () ... #<bytecode 0x198021534c2280>)) (f11 . #f(compiled-function () ... #<bytecode 0x198021534a1280>)) (f10 . #f(compiled-function () ... #<bytecode 0x198021534b0280>)) (f9 . #f(compiled-function () ... #<bytecode 0x198021534ef280>)) (f8 . #f(compiled-function () ... #<bytecode 0x198021534fe280>)) (f7 . #f(compiled-function () ... #<bytecode 0x1980215343d280>)) (f6 . #f(compiled-function () ... #<bytecode 0x1980215342c280>)) (f5 . #f(compiled-function () ... #<bytecode 0x1980215340b280>)) (f4 . #f(compiled-function () ... #<bytecode 0x1980215341a280>)) (f3 . #f(compiled-function () ... #<bytecode 0x19802153479280>)) (f2 . #f(compiled-function () ... #<bytecode 0x19802153468280>)) (menu-bar keymap (help-menu keymap ...)) (help keymap (109 . helm-help)) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x19802155767280>)) (8 . helm-find-files-up-one-level) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) (67108897 . helm-toggle-suspend-update) (3 keymap (57 . #f(compiled-function () ... #<bytecode -0x47bd7e929ab6975>)) (56 . #f(compiled-function () ... #<bytecode -0x47bd7e929ba6975>)) (55 . #f(compiled-function () ... #<bytecode -0x47bd7e929896975>)) (54 . #f(compiled-function () ... #<bytecode -0x47bd7e929986975>)) (53 . #f(compiled-function () ... #<bytecode -0x47bd7e928776975>)) (52 . #f(compiled-function () ... #<bytecode -0x47bd7e928666975>)) (51 . #f(compiled-function () ... #<bytecode -0x47bd7e928556975>)) (50 . #f(compiled-function () ... #<bytecode -0x47bd7e928446975>)) (49 . #f(compiled-function () ... #<bytecode -0x47bd7e92b536975>)) (110 . helm-helm-run-cycle-resume-with-subkeys) (108 . helm-display-line-numbers-mode) (62 . helm-toggle-truncate-line) (21 . helm-refresh) (6 . helm-follow-mode) (9 . helm-insert-or-copy) (11 . helm-kill-selection-and-quit) (25 . helm-yank-selection) (37 . helm-exchange-minibuffer-and-header-line) (95 . helm-toggle-full-frame) (45 . helm-swap-windows)) (67108987 . helm-enlarge-window) ...) (action ("Sole action (Identity)" lambda (candidate) (if nil ... ...))) (persistent-help . "DoNothing") (requires-pattern . 0) (filtered-candidate-transformer helm-cr-default-transformer #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_39> helm-fuzzy-highlight-matches) (volatile . t) (match . identity) (redisplay . identity) (mode-line . "\\<helm-comp-read-map>C/\\[helm-cr...") (header-line . #("C-j: DoNothing (keeping session)" 0 3 (font-lock-face help-key-binding face help-key-binding))) (group . helm) (match-dynamic . t)))
  helm-get-cached-candidates(((nomark) (name . "org-ql-find") (candidates . #f(compiled-function () #<bytecode -0xba74e3b52c01a29>)) (keymap keymap (127 . delete-backward-char) (27 keymap (13 . helm-cr-empty-string)) (C-return . helm-cr-empty-string) keymap (normal-state keymap (32 . helm-toggle-visible-mark) (121 keymap ... ... ...) (47 . helm-quit-and-find-file) (71 . helm-end-of-buffer) (107 . helm-previous-line) (106 . helm-next-line) (41 . helm-next-visible-mark) (40 . helm-prev-visible-mark) (103 keymap ... ... ... ...) (93 keymap ...) (91 keymap ...) (tab . helm-select-action) (4 . helm-next-page) (15 . helm-next-source) (14 . helm-next-line) (16 . helm-previous-line) (22 . helm-next-page) (13 . helm-maybe-exit-minibuffer) "Auxiliary keymap for Normal stat..." (2 . helm-previous-page) (6 . helm-next-page) (27 keymap ... ... ... ... ... ...)) (insert-state keymap "Auxiliary keymap for Insert stat..." (15 . helm-next-source) (14 . helm-next-line) (16 . helm-previous-line) (22 . helm-next-page) (13 . helm-maybe-exit-minibuffer) (2 . helm-previous-page) (6 . helm-next-page) (27 keymap ... ... ... ... ... ...)) (\(insert\ normal\)-state keymap "Auxiliary keymap for (insert nor...") (1 . helm-select-action) (tab . helm-execute-persistent-action) (f12 . #f(compiled-function () ... #<bytecode 0x198021534c2280>)) (f11 . #f(compiled-function () ... #<bytecode 0x198021534a1280>)) (f10 . #f(compiled-function () ... #<bytecode 0x198021534b0280>)) (f9 . #f(compiled-function () ... #<bytecode 0x198021534ef280>)) (f8 . #f(compiled-function () ... #<bytecode 0x198021534fe280>)) (f7 . #f(compiled-function () ... #<bytecode 0x1980215343d280>)) (f6 . #f(compiled-function () ... #<bytecode 0x1980215342c280>)) (f5 . #f(compiled-function () ... #<bytecode 0x1980215340b280>)) (f4 . #f(compiled-function () ... #<bytecode 0x1980215341a280>)) (f3 . #f(compiled-function () ... #<bytecode 0x19802153479280>)) (f2 . #f(compiled-function () ... #<bytecode 0x19802153468280>)) (menu-bar keymap (help-menu keymap ...)) (help keymap (109 . helm-help)) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x19802155767280>)) (8 . helm-find-files-up-one-level) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) (67108897 . helm-toggle-suspend-update) (3 keymap (57 . #f(compiled-function () ... #<bytecode -0x47bd7e929ab6975>)) (56 . #f(compiled-function () ... #<bytecode -0x47bd7e929ba6975>)) (55 . #f(compiled-function () ... #<bytecode -0x47bd7e929896975>)) (54 . #f(compiled-function () ... #<bytecode -0x47bd7e929986975>)) (53 . #f(compiled-function () ... #<bytecode -0x47bd7e928776975>)) (52 . #f(compiled-function () ... #<bytecode -0x47bd7e928666975>)) (51 . #f(compiled-function () ... #<bytecode -0x47bd7e928556975>)) (50 . #f(compiled-function () ... #<bytecode -0x47bd7e928446975>)) (49 . #f(compiled-function () ... #<bytecode -0x47bd7e92b536975>)) (110 . helm-helm-run-cycle-resume-with-subkeys) (108 . helm-display-line-numbers-mode) (62 . helm-toggle-truncate-line) (21 . helm-refresh) (6 . helm-follow-mode) (9 . helm-insert-or-copy) (11 . helm-kill-selection-and-quit) (25 . helm-yank-selection) (37 . helm-exchange-minibuffer-and-header-line) (95 . helm-toggle-full-frame) (45 . helm-swap-windows)) (67108987 . helm-enlarge-window) ...) (action ("Sole action (Identity)" lambda (candidate) (if nil ... ...))) (persistent-help . "DoNothing") (requires-pattern . 0) (filtered-candidate-transformer helm-cr-default-transformer #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_39> helm-fuzzy-highlight-matches) (volatile . t) (match . identity) (redisplay . identity) (mode-line . "\\<helm-comp-read-map>C/\\[helm-cr...") (header-line . #("C-j: DoNothing (keeping session)" 0 3 (font-lock-face help-key-binding face help-key-binding))) (group . helm) (match-dynamic . t)))
  helm-compute-matches(((nomark) (name . "org-ql-find") (candidates . #f(compiled-function () #<bytecode -0xba74e3b52c01a29>)) (keymap keymap (127 . delete-backward-char) (27 keymap (13 . helm-cr-empty-string)) (C-return . helm-cr-empty-string) keymap (normal-state keymap (32 . helm-toggle-visible-mark) (121 keymap ... ... ...) (47 . helm-quit-and-find-file) (71 . helm-end-of-buffer) (107 . helm-previous-line) (106 . helm-next-line) (41 . helm-next-visible-mark) (40 . helm-prev-visible-mark) (103 keymap ... ... ... ...) (93 keymap ...) (91 keymap ...) (tab . helm-select-action) (4 . helm-next-page) (15 . helm-next-source) (14 . helm-next-line) (16 . helm-previous-line) (22 . helm-next-page) (13 . helm-maybe-exit-minibuffer) "Auxiliary keymap for Normal stat..." (2 . helm-previous-page) (6 . helm-next-page) (27 keymap ... ... ... ... ... ...)) (insert-state keymap "Auxiliary keymap for Insert stat..." (15 . helm-next-source) (14 . helm-next-line) (16 . helm-previous-line) (22 . helm-next-page) (13 . helm-maybe-exit-minibuffer) (2 . helm-previous-page) (6 . helm-next-page) (27 keymap ... ... ... ... ... ...)) (\(insert\ normal\)-state keymap "Auxiliary keymap for (insert nor...") (1 . helm-select-action) (tab . helm-execute-persistent-action) (f12 . #f(compiled-function () ... #<bytecode 0x198021534c2280>)) (f11 . #f(compiled-function () ... #<bytecode 0x198021534a1280>)) (f10 . #f(compiled-function () ... #<bytecode 0x198021534b0280>)) (f9 . #f(compiled-function () ... #<bytecode 0x198021534ef280>)) (f8 . #f(compiled-function () ... #<bytecode 0x198021534fe280>)) (f7 . #f(compiled-function () ... #<bytecode 0x1980215343d280>)) (f6 . #f(compiled-function () ... #<bytecode 0x1980215342c280>)) (f5 . #f(compiled-function () ... #<bytecode 0x1980215340b280>)) (f4 . #f(compiled-function () ... #<bytecode 0x1980215341a280>)) (f3 . #f(compiled-function () ... #<bytecode 0x19802153479280>)) (f2 . #f(compiled-function () ... #<bytecode 0x19802153468280>)) (menu-bar keymap (help-menu keymap ...)) (help keymap (109 . helm-help)) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x19802155767280>)) (8 . helm-find-files-up-one-level) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) (67108897 . helm-toggle-suspend-update) (3 keymap (57 . #f(compiled-function () ... #<bytecode -0x47bd7e929ab6975>)) (56 . #f(compiled-function () ... #<bytecode -0x47bd7e929ba6975>)) (55 . #f(compiled-function () ... #<bytecode -0x47bd7e929896975>)) (54 . #f(compiled-function () ... #<bytecode -0x47bd7e929986975>)) (53 . #f(compiled-function () ... #<bytecode -0x47bd7e928776975>)) (52 . #f(compiled-function () ... #<bytecode -0x47bd7e928666975>)) (51 . #f(compiled-function () ... #<bytecode -0x47bd7e928556975>)) (50 . #f(compiled-function () ... #<bytecode -0x47bd7e928446975>)) (49 . #f(compiled-function () ... #<bytecode -0x47bd7e92b536975>)) (110 . helm-helm-run-cycle-resume-with-subkeys) (108 . helm-display-line-numbers-mode) (62 . helm-toggle-truncate-line) (21 . helm-refresh) (6 . helm-follow-mode) (9 . helm-insert-or-copy) (11 . helm-kill-selection-and-quit) (25 . helm-yank-selection) (37 . helm-exchange-minibuffer-and-header-line) (95 . helm-toggle-full-frame) (45 . helm-swap-windows)) (67108987 . helm-enlarge-window) ...) (action ("Sole action (Identity)" lambda (candidate) (if nil ... ...))) (persistent-help . "DoNothing") (requires-pattern . 0) (filtered-candidate-transformer helm-cr-default-transformer #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_39> helm-fuzzy-highlight-matches) (volatile . t) (match . identity) (redisplay . identity) (mode-line . "\\<helm-comp-read-map>C/\\[helm-cr...") (header-line . #("C-j: DoNothing (keeping session)" 0 3 (font-lock-face help-key-binding face help-key-binding))) (group . helm) (match-dynamic . t)))
  helm--collect-matches((((nomark) (name . "org-ql-find") (candidates . #f(compiled-function () #<bytecode -0xba74e3b52c01a29>)) (keymap keymap (127 . delete-backward-char) (27 keymap ...) (C-return . helm-cr-empty-string) keymap (normal-state keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... "Auxiliary keymap for Normal stat..." ... ... ...) (insert-state keymap "Auxiliary keymap for Insert stat..." ... ... ... ... ... ... ... ...) (\(insert\ normal\)-state keymap "Auxiliary keymap for (insert nor...") (1 . helm-select-action) (tab . helm-execute-persistent-action) (f12 . #f(compiled-function () ... #<bytecode 0x198021534c2280>)) (f11 . #f(compiled-function () ... #<bytecode 0x198021534a1280>)) (f10 . #f(compiled-function () ... #<bytecode 0x198021534b0280>)) (f9 . #f(compiled-function () ... #<bytecode 0x198021534ef280>)) (f8 . #f(compiled-function () ... #<bytecode 0x198021534fe280>)) (f7 . #f(compiled-function () ... #<bytecode 0x1980215343d280>)) (f6 . #f(compiled-function () ... #<bytecode 0x1980215342c280>)) (f5 . #f(compiled-function () ... #<bytecode 0x1980215340b280>)) (f4 . #f(compiled-function () ... #<bytecode 0x1980215341a280>)) (f3 . #f(compiled-function () ... #<bytecode 0x19802153479280>)) (f2 . #f(compiled-function () ... #<bytecode 0x19802153468280>)) (menu-bar keymap ...) (help keymap ...) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x19802155767280>)) (8 . helm-find-files-up-one-level) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) (67108897 . helm-toggle-suspend-update) (3 keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (67108987 . helm-enlarge-window) ...) (action ("Sole action (Identity)" lambda ... ...)) (persistent-help . "DoNothing") (requires-pattern . 0) (filtered-candidate-transformer helm-cr-default-transformer #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_39> helm-fuzzy-highlight-matches) (volatile . t) (match . identity) (redisplay . identity) (mode-line . "\\<helm-comp-read-map>C/\\[helm-cr...") (header-line . #("C-j: DoNothing (keeping session)" 0 3 ...)) (group . helm) (match-dynamic . t)) ((nomark) (name . "org-ql-find History") (candidates . #f(compiled-function () #<bytecode 0xf28df61cacdad4d>)) (keymap keymap (127 . delete-backward-char) (27 keymap ...) (C-return . helm-cr-empty-string) keymap (normal-state keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... "Auxiliary keymap for Normal stat..." ... ... ...) (insert-state keymap "Auxiliary keymap for Insert stat..." ... ... ... ... ... ... ... ...) (\(insert\ normal\)-state keymap "Auxiliary keymap for (insert nor...") (1 . helm-select-action) (tab . helm-execute-persistent-action) (f12 . #f(compiled-function () ... #<bytecode 0x198021534c2280>)) (f11 . #f(compiled-function () ... #<bytecode 0x198021534a1280>)) (f10 . #f(compiled-function () ... #<bytecode 0x198021534b0280>)) (f9 . #f(compiled-function () ... #<bytecode 0x198021534ef280>)) (f8 . #f(compiled-function () ... #<bytecode 0x198021534fe280>)) (f7 . #f(compiled-function () ... #<bytecode 0x1980215343d280>)) (f6 . #f(compiled-function () ... #<bytecode 0x1980215342c280>)) (f5 . #f(compiled-function () ... #<bytecode 0x1980215340b280>)) (f4 . #f(compiled-function () ... #<bytecode 0x1980215341a280>)) (f3 . #f(compiled-function () ... #<bytecode 0x19802153479280>)) (f2 . #f(compiled-function () ... #<bytecode 0x19802153468280>)) (menu-bar keymap ...) (help keymap ...) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x19802155767280>)) (8 . helm-find-files-up-one-level) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) (67108897 . helm-toggle-suspend-update) (3 keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (67108987 . helm-enlarge-window) ...) (action ("Sole action (Identity)" lambda ... ...)) (persistent-help . "DoNothing") (requires-pattern . 0) (filtered-candidate-transformer (lambda ... ...) helm-fuzzy-highlight-matches) (match helm-mm-exact-match helm-mm-match) (redisplay . identity) (mode-line . "\\<helm-comp-read-map>C/\\[helm-cr...") (header-line . #("C-j: DoNothing (keeping session)" 0 3 ...)) (multimatch . t) (group . helm))))
  helm-update(nil)
  helm-read-from-minibuffer("Find entry: " nil nil noresume (keymap (127 . delete-backward-char) (27 keymap (13 . helm-cr-empty-string)) (C-return . helm-cr-empty-string) keymap (normal-state keymap (32 . helm-toggle-visible-mark) (121 keymap (121 . helm-kill-selection-and-quit) (80 . helm-copy-to-buffer) (112 . helm-yank-selection)) (47 . helm-quit-and-find-file) (71 . helm-end-of-buffer) (107 . helm-previous-line) (106 . helm-next-line) (41 . helm-next-visible-mark) (40 . helm-prev-visible-mark) (103 keymap (114 . helm-refresh) (103 . helm-beginning-of-buffer) (106 . helm-next-source) (107 . helm-previous-source)) (93 keymap (93 . helm-next-source)) (91 keymap (91 . helm-previous-source)) (tab . helm-select-action) (4 . helm-next-page) (15 . helm-next-source) (14 . helm-next-line) (16 . helm-previous-line) (22 . helm-next-page) (13 . helm-maybe-exit-minibuffer) "Auxiliary keymap for Normal stat..." (2 . helm-previous-page) (6 . helm-next-page) (27 keymap (118 . helm-previous-page) (107 . helm-previous-line) (106 . helm-next-line) (108 . helm-execute-persistent-action) (93 . helm-next-source) (91 . helm-previous-source))) (insert-state keymap "Auxiliary keymap for Insert stat..." (15 . helm-next-source) (14 . helm-next-line) (16 . helm-previous-line) (22 . helm-next-page) (13 . helm-maybe-exit-minibuffer) (2 . helm-previous-page) (6 . helm-next-page) (27 keymap (118 . helm-previous-page) (107 . helm-previous-line) (106 . helm-next-line) (108 . helm-execute-persistent-action) (93 . helm-next-source) (91 . helm-previous-source))) (\(insert\ normal\)-state keymap "Auxiliary keymap for (insert nor...") (1 . helm-select-action) (tab . helm-execute-persistent-action) (f12 . #f(compiled-function () (interactive nil) #<bytecode 0x198021534c2280>)) (f11 . #f(compiled-function () (interactive nil) #<bytecode 0x198021534a1280>)) (f10 . #f(compiled-function () (interactive nil) #<bytecode 0x198021534b0280>)) (f9 . #f(compiled-function () (interactive nil) #<bytecode 0x198021534ef280>)) (f8 . #f(compiled-function () (interactive nil) #<bytecode 0x198021534fe280>)) (f7 . #f(compiled-function () (interactive nil) #<bytecode 0x1980215343d280>)) (f6 . #f(compiled-function () (interactive nil) #<bytecode 0x1980215342c280>)) (f5 . #f(compiled-function () (interactive nil) #<bytecode 0x1980215340b280>)) (f4 . #f(compiled-function () (interactive nil) #<bytecode 0x1980215341a280>)) (f3 . #f(compiled-function () (interactive nil) #<bytecode 0x19802153479280>)) (f2 . #f(compiled-function () (interactive nil) #<bytecode 0x19802153468280>)) (menu-bar keymap (help-menu keymap (describe keymap ...))) (help keymap (109 . helm-help)) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () (interactive nil) #<bytecode 0x19802155767280>)) (8 . helm-find-files-up-one-level) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) (67108897 . helm-toggle-suspend-update) (3 keymap (57 . #f(compiled-function () ... #<bytecode -0x47bd7e929ab6975>)) (56 . #f(compiled-function () ... #<bytecode -0x47bd7e929ba6975>)) (55 . #f(compiled-function () ... #<bytecode -0x47bd7e929896975>)) (54 . #f(compiled-function () ... #<bytecode -0x47bd7e929986975>)) (53 . #f(compiled-function () ... #<bytecode -0x47bd7e928776975>)) (52 . #f(compiled-function () ... #<bytecode -0x47bd7e928666975>)) (51 . #f(compiled-function () ... #<bytecode -0x47bd7e928556975>)) (50 . #f(compiled-function () ... #<bytecode -0x47bd7e928446975>)) (49 . #f(compiled-function () ... #<bytecode -0x47bd7e92b536975>)) (110 . helm-helm-run-cycle-resume-with-subkeys) (108 . helm-display-line-numbers-mode) (62 . helm-toggle-truncate-line) (21 . helm-refresh) (6 . helm-follow-mode) (9 . helm-insert-or-copy) (11 . helm-kill-selection-and-quit) (25 . helm-yank-selection) (37 . helm-exchange-minibuffer-and-header-line) (95 . helm-toggle-full-frame) (45 . helm-swap-windows)) (67108987 . helm-enlarge-window) (67108989 . helm-narrow-window) ...) nil nil)
  helm-internal((((nomark) (name . "org-ql-find") (candidates . #f(compiled-function () #<bytecode -0xba74e3b52c01a29>)) (keymap keymap ... ... ... keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (action ...) (persistent-help . "DoNothing") (requires-pattern . 0) (filtered-candidate-transformer helm-cr-default-transformer #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_39> helm-fuzzy-highlight-matches) (volatile . t) (match . identity) (redisplay . identity) (mode-line . "\\<helm-comp-read-map>C/\\[h...") (header-line . ...) (group . helm) (match-dynamic . t)) ((nomark) (name . "org-ql-find History") (candidates . #f(compiled-function () #<bytecode 0xf28df61cacdad4d>)) (keymap keymap ... ... ... keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (action ...) (persistent-help . "DoNothing") (requires-pattern . 0) (filtered-candidate-transformer ... helm-fuzzy-highlight-matches) (match helm-mm-exact-match helm-mm-match) (redisplay . identity) (mode-line . "\\<helm-comp-read-map>C/\\[h...") (header-line . ...) (multimatch . t) (group . helm))) nil "Find entry: " noresume nil "*helm-mode-org-ql-find*" (keymap (127 . delete-backward-char) (27 keymap (13 . helm-cr-empty-string)) (C-return . helm-cr-empty-string) keymap (normal-state keymap (32 . helm-toggle-visible-mark) (121 keymap ... ... ...) (47 . helm-quit-and-find-file) (71 . helm-end-of-buffer) (107 . helm-previous-line) (106 . helm-next-line) (41 . helm-next-visible-mark) (40 . helm-prev-visible-mark) (103 keymap ... ... ... ...) (93 keymap ...) (91 keymap ...) (tab . helm-select-action) (4 . helm-next-page) (15 . helm-next-source) (14 . helm-next-line) (16 . helm-previous-line) (22 . helm-next-page) (13 . helm-maybe-exit-minibuffer) "Auxiliary keymap for Norma..." (2 . helm-previous-page) (6 . helm-next-page) (27 keymap ... ... ... ... ... ...)) (insert-state keymap "Auxiliary keymap for Inser..." (15 . helm-next-source) (14 . helm-next-line) (16 . helm-previous-line) (22 . helm-next-page) (13 . helm-maybe-exit-minibuffer) (2 . helm-previous-page) (6 . helm-next-page) (27 keymap ... ... ... ... ... ...)) (\(insert\ normal\)-state keymap "Auxiliary keymap for (inse...") (1 . helm-select-action) (tab . helm-execute-persistent-action) (f12 . #f(compiled-function () ... #<bytecode 0x198021534c2280>)) (f11 . #f(compiled-function () ... #<bytecode 0x198021534a1280>)) (f10 . #f(compiled-function () ... #<bytecode 0x198021534b0280>)) (f9 . #f(compiled-function () ... #<bytecode 0x198021534ef280>)) (f8 . #f(compiled-function () ... #<bytecode 0x198021534fe280>)) (f7 . #f(compiled-function () ... #<bytecode 0x1980215343d280>)) (f6 . #f(compiled-function () ... #<bytecode 0x1980215342c280>)) (f5 . #f(compiled-function () ... #<bytecode 0x1980215340b280>)) (f4 . #f(compiled-function () ... #<bytecode 0x1980215341a280>)) (f3 . #f(compiled-function () ... #<bytecode 0x19802153479280>)) (f2 . #f(compiled-function () ... #<bytecode 0x19802153468280>)) (menu-bar keymap (help-menu keymap ...)) (help keymap (109 . helm-help)) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x19802155767280>)) (8 . helm-find-files-up-one-level) ...) nil nil)
  helm((((nomark) (name . "org-ql-find") (candidates . #f(compiled-function () #<bytecode -0xba74e3b52c01a29>)) (keymap keymap ... ... ... keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (action ...) (persistent-help . "DoNothing") (requires-pattern . 0) (filtered-candidate-transformer helm-cr-default-transformer #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_39> helm-fuzzy-highlight-matches) (volatile . t) (match . identity) (redisplay . identity) (mode-line . "\\<helm-comp-read-map>C/\\[h...") (header-line . ...) (group . helm) (match-dynamic . t)) ((nomark) (name . "org-ql-find History") (candidates . #f(compiled-function () #<bytecode 0xf28df61cacdad4d>)) (keymap keymap ... ... ... keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (action ...) (persistent-help . "DoNothing") (requires-pattern . 0) (filtered-candidate-transformer ... helm-fuzzy-highlight-matches) (match helm-mm-exact-match helm-mm-match) (redisplay . identity) (mode-line . "\\<helm-comp-read-map>C/\\[h...") (header-line . ...) (multimatch . t) (group . helm))) nil "Find entry: " noresume nil "*helm-mode-org-ql-find*" (keymap (127 . delete-backward-char) (27 keymap (13 . helm-cr-empty-string)) (C-return . helm-cr-empty-string) keymap (normal-state keymap (32 . helm-toggle-visible-mark) (121 keymap ... ... ...) (47 . helm-quit-and-find-file) (71 . helm-end-of-buffer) (107 . helm-previous-line) (106 . helm-next-line) (41 . helm-next-visible-mark) (40 . helm-prev-visible-mark) (103 keymap ... ... ... ...) (93 keymap ...) (91 keymap ...) (tab . helm-select-action) (4 . helm-next-page) (15 . helm-next-source) (14 . helm-next-line) (16 . helm-previous-line) (22 . helm-next-page) (13 . helm-maybe-exit-minibuffer) "Auxiliary keymap for Norma..." (2 . helm-previous-page) (6 . helm-next-page) (27 keymap ... ... ... ... ... ...)) (insert-state keymap "Auxiliary keymap for Inser..." (15 . helm-next-source) (14 . helm-next-line) (16 . helm-previous-line) (22 . helm-next-page) (13 . helm-maybe-exit-minibuffer) (2 . helm-previous-page) (6 . helm-next-page) (27 keymap ... ... ... ... ... ...)) (\(insert\ normal\)-state keymap "Auxiliary keymap for (inse...") (1 . helm-select-action) (tab . helm-execute-persistent-action) (f12 . #f(compiled-function () ... #<bytecode 0x198021534c2280>)) (f11 . #f(compiled-function () ... #<bytecode 0x198021534a1280>)) (f10 . #f(compiled-function () ... #<bytecode 0x198021534b0280>)) (f9 . #f(compiled-function () ... #<bytecode 0x198021534ef280>)) (f8 . #f(compiled-function () ... #<bytecode 0x198021534fe280>)) (f7 . #f(compiled-function () ... #<bytecode 0x1980215343d280>)) (f6 . #f(compiled-function () ... #<bytecode 0x1980215342c280>)) (f5 . #f(compiled-function () ... #<bytecode 0x1980215340b280>)) (f4 . #f(compiled-function () ... #<bytecode 0x1980215341a280>)) (f3 . #f(compiled-function () ... #<bytecode 0x19802153479280>)) (f2 . #f(compiled-function () ... #<bytecode 0x19802153468280>)) (menu-bar keymap (help-menu keymap ...)) (help keymap (109 . helm-help)) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x19802155767280>)) (8 . helm-find-files-up-one-level) ...) nil nil)
  helm(:sources (((nomark) (name . "org-ql-find") (candidates . #f(compiled-function () #<bytecode -0xba74e3b52c01a29>)) (keymap keymap ... ... ... keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (action ...) (persistent-help . "DoNothing") (requires-pattern . 0) (filtered-candidate-transformer helm-cr-default-transformer #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_39> helm-fuzzy-highlight-matches) (volatile . t) (match . identity) (redisplay . identity) (mode-line . "\\<helm-comp-read-map>C/\\[h...") (header-line . ...) (group . helm) (match-dynamic . t)) ((nomark) (name . "org-ql-find History") (candidates . #f(compiled-function () #<bytecode 0xf28df61cacdad4d>)) (keymap keymap ... ... ... keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (action ...) (persistent-help . "DoNothing") (requires-pattern . 0) (filtered-candidate-transformer ... helm-fuzzy-highlight-matches) (match helm-mm-exact-match helm-mm-match) (redisplay . identity) (mode-line . "\\<helm-comp-read-map>C/\\[h...") (header-line . ...) (multimatch . t) (group . helm))) :input nil :default nil :preselect nil :prompt "Find entry: " :resume noresume :keymap (keymap (127 . delete-backward-char) (27 keymap (13 . helm-cr-empty-string)) (C-return . helm-cr-empty-string) keymap (normal-state keymap (32 . helm-toggle-visible-mark) (121 keymap ... ... ...) (47 . helm-quit-and-find-file) (71 . helm-end-of-buffer) (107 . helm-previous-line) (106 . helm-next-line) (41 . helm-next-visible-mark) (40 . helm-prev-visible-mark) (103 keymap ... ... ... ...) (93 keymap ...) (91 keymap ...) (tab . helm-select-action) (4 . helm-next-page) (15 . helm-next-source) (14 . helm-next-line) (16 . helm-previous-line) (22 . helm-next-page) (13 . helm-maybe-exit-minibuffer) "Auxiliary keymap for Norma..." (2 . helm-previous-page) (6 . helm-next-page) (27 keymap ... ... ... ... ... ...)) (insert-state keymap "Auxiliary keymap for Inser..." (15 . helm-next-source) (14 . helm-next-line) (16 . helm-previous-line) (22 . helm-next-page) (13 . helm-maybe-exit-minibuffer) (2 . helm-previous-page) (6 . helm-next-page) (27 keymap ... ... ... ... ... ...)) (\(insert\ normal\)-state keymap "Auxiliary keymap for (inse...") (1 . helm-select-action) (tab . helm-execute-persistent-action) (f12 . #f(compiled-function () ... #<bytecode 0x198021534c2280>)) (f11 . #f(compiled-function () ... #<bytecode 0x198021534a1280>)) (f10 . #f(compiled-function () ... #<bytecode 0x198021534b0280>)) (f9 . #f(compiled-function () ... #<bytecode 0x198021534ef280>)) (f8 . #f(compiled-function () ... #<bytecode 0x198021534fe280>)) (f7 . #f(compiled-function () ... #<bytecode 0x1980215343d280>)) (f6 . #f(compiled-function () ... #<bytecode 0x1980215342c280>)) (f5 . #f(compiled-function () ... #<bytecode 0x1980215340b280>)) (f4 . #f(compiled-function () ... #<bytecode 0x1980215341a280>)) (f3 . #f(compiled-function () ... #<bytecode 0x19802153479280>)) (f2 . #f(compiled-function () ... #<bytecode 0x19802153468280>)) (menu-bar keymap (help-menu keymap ...)) (help keymap (109 . helm-help)) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x19802155767280>)) (8 . helm-find-files-up-one-level) ...) :allow-nest nil :candidate-number-limit 50 :case-fold-search smart :history nil :buffer "*helm-mode-org-ql-find*")
  helm-comp-read("Find entry: " #f(compiled-function (str predicate action) #<bytecode 0xcfb8e5a2b58c1bf>) :name "org-ql-find" :initial-input nil :buffer "*helm-mode-org-ql-find*" :history nil :nomark t :reverse-history t :default nil :fc-transformer (helm-cr-default-transformer #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_39>) :match-dynamic t :diacritics nil :fuzzy nil :exec-when-only-one nil :quit-when-no-cand nil :must-match nil)
  helm-completing-read-default-2("Find entry: " #f(compiled-function (str pred flag) #<bytecode 0xbfab22765670426>) nil nil nil nil nil nil "org-ql-find" "*helm-mode-org-ql-find*" nil)
  helm-completing-read-default-handler("Find entry: " #f(compiled-function (str pred flag) #<bytecode 0xbfab22765670426>) nil nil nil nil nil nil "org-ql-find" "*helm-mode-org-ql-find*")
  helm-mode--apply-helm-handler(helm-completing-read-default-handler ("Find entry: " #f(compiled-function (str pred flag) #<bytecode 0xbfab22765670426>) nil nil nil nil nil nil "org-ql-find" "*helm-mode-org-ql-find*"))
  helm--completing-read-default("Find entry: " #f(compiled-function (str pred flag) #<bytecode 0xbfab22765670426>) nil nil nil nil nil nil)
  apply(helm--completing-read-default ("Find entry: " #f(compiled-function (str pred flag) #<bytecode 0xbfab22765670426>) nil nil nil nil nil nil))
  #f(advice helm--completing-read-default :override completing-read-default)("Find entry: " #f(compiled-function (str pred flag) #<bytecode 0xbfab22765670426>) nil nil nil nil nil nil)
  org-ql-completing-read(#<buffer init.org> :query-prefix nil :query-filter nil :prompt "Find entry: ")
  org-ql-find(#<buffer init.org>)
  funcall-interactively(org-ql-find #<buffer init.org>)
  command-execute(org-ql-find record)
  helm-M-x-execute-command(org-ql-find)

Originally posted by @progfolio in https://github.com/alphapapa/org-ql/issues/284#issuecomment-1463934195

Bisected my helm configuration. Reliably reproducable on my end when the helm-completion-style option is set to 'emacs. Leaving that option at its default value prevents the error, but the org-ql-find candidate list is empty.

alphapapa commented 1 year ago

shrug That looks to me like a problem with Helm, not with org-ql-find.

Anyway, if you're using Helm, you could just use helm-org-ql, right?

progfolio commented 1 year ago

It's due to the way org-ql-completing-read let-binds completion-styles-alist. Changing the binding so that it appends the org-ql-completing-read cell to the front of the alist prevents the error and allows helm to work with org-ql-find directly.

One aspect that would need more work, though, is the annotations/affixations are off. I'd have to look into it more to see how to deal with that, but if we could figure that out, it may obviate the need for helm-org-ql.

alphapapa commented 1 year ago

Ok, thanks, I'll look at this again. Maybe I can get that fix in for v0.7.1.

jhncondix commented 1 year ago

I'm on vanilla Emacs 28.1 with helm as my completion framework, but unlike progfolio I have helm-completion-style set to 'helm, not to 'emacs. I recently installed org-ql and helm-org-ql from Melpa. The helm-org-ql commands all worked, but none of the org-ql-find commands did anything and no error messages appeared either. The only other one that didn't do anything was the org-ql-refile command. The rest of the org-ql commands did work. Thanks for your work on this great addition to org mode.

alphapapa commented 9 months ago

Going to target this for v0.8 (or possibly a v0.7.3).

9viz commented 9 months ago

It's due to the way org-ql-completing-read let-binds completion-styles-alist. Changing the binding so that it appends the org-ql-completing-read cell to the front of the alist prevents the error and allows helm to work with org-ql-find directly.

This let-binding also breaks recursive minibuffers. M-x org-ql-find RET followed by C-x b *M TAB complains about invalid completion style (basic in my case) as shown in OP. I use the default Emacs completion framework.

alphapapa commented 9 months ago

It's due to the way org-ql-completing-read let-binds completion-styles-alist. Changing the binding so that it appends the org-ql-completing-read cell to the front of the alist prevents the error and allows helm to work with org-ql-find directly.

One aspect that would need more work, though, is the annotations/affixations are off. I'd have to look into it more to see how to deal with that, but if we could figure that out, it may obviate the need for helm-org-ql.

@progfolio Thanks for that. Do you mean that, if the org-ql-completing-read style is added to the front of completion-styles-alist rather than replacing it, annotations and affixations don't work?

@vizs Would you be able to test and confirm whether that solution seems to work?

progfolio commented 9 months ago

Adam Porter @.***> writes:

@progfolio Thanks for that. Do you mean that, if the org-ql-completing-read style is added to the front of completion-styles-alist rather than replacing it, annotations and affixations don't work?

That was the case at the time of that comment. Helm has had quite a few commits since then, so I'm not sure if that's still the case.

alphapapa commented 9 months ago

Oh, you mean it only broke annotations and affixations on Helm? I thought you meant on Vertico.

progfolio commented 9 months ago

I don't use Vertico, so I'm not sure how it works there.

oantolin commented 9 months ago

For @vizs's problem with recursive minibuffers I think it should work to use setq-local in the minibuffer on completion-styles rather than binding it with let.

9viz commented 9 months ago

Sorry for the late reply, prepending org-ql-completing-read completion-style to completion-style-alist fixes my problem. The diff below is what I use on my end to fix the issue.

diff --git a/org-ql-completing-read.el b/org-ql-completing-read.el
index 1bc6265..84d6996 100644
--- a/org-ql-completing-read.el
+++ b/org-ql-completing-read.el
@@ -279,7 +279,8 @@ single predicate)."
         (setf buffers-files (list buffers-files)))
       (mapc #'org-ql--ensure-buffer buffers-files)
       (let* ((completion-styles '(org-ql-completing-read))
-             (completion-styles-alist (list (list 'org-ql-completing-read #'try #'all "Org QL Find")))
+             (completion-styles-alist (cons (list 'org-ql-completing-read #'try #'all "Org QL Find")
+                                            completion-styles-alist))
              (selected (completing-read prompt #'collection nil t)))
         ;; (debug-message "SELECTED:%S  KEYS:%S" selected (hash-table-keys table))
         (or (gethash selected table)
alphapapa commented 6 months ago

Unfortunately, I can't get this to work with Helm with either the emacs or helm value for helm-completion-style, so I'll have to defer fixing this to a later version. Any further help here is welcome. Thanks.

karthink commented 1 month ago

If I set the buffer-local value of completion-styles,

(setq-local completion-styles '(basic partial-completion))

org-ql-find fails for me with the following error:

Error in post-command-hook (vertico--exhibit): (error "Invalid completion style orderless")

My global value of completion-styles is (orderless partial-completion basic).

I set completion-styles buffer-locally in some buffers for faster completions, this approach is recommended in the Corfu readme.

Mentioning this here instead of in a new thread since the cause of the problem is the same: let-binding completion-styles-alist instead of prepending to it. Progfolio's suggestion above fixes it:

It's due to the way org-ql-completing-read let-binds completion-styles-alist. Changing the binding so that it appends the org-ql-completing-read cell to the front of the alist prevents the error and allows helm to work with org-ql-find directly.