Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 14 additions & 15 deletions misc/flx-helm-demo.el
Original file line number Diff line number Diff line change
Expand Up @@ -41,27 +41,26 @@ The score info we add here is later removed with another filter."
(defun flx-helm-test-candidates ()
foo-list)

(setq flx-helm-candidate-list-test
'((name . "flx candidate-list-test")
(candidates . flx-helm-test-candidates)
(candidate-transformer flx-helm-candidate-transformer)
(volatile)
(match-strict identity)
))

(defvar flx-helm-candidate-list-test
'((name . "flx candidate-list-test")
(init . (lambda ()
(helm-init-candidates-in-buffer
'global (flx-helm-test-candidates))))
(candidates-in-buffer)
(candidate-transformer flx-helm-candidate-transformer)
(volatile)
(match-strict identity)))

(defun flx-helm-demo ()
(interactive)
(helm :sources '(flx-helm-candidate-list-test)))


(setq flx-helm-no-flx
'((name . "flx no flx")
(candidates . flx-helm-test-candidates)
(volatile)
))
(defvar flx-helm-no-flx
'((name . "flx no flx")
(candidates . flx-helm-test-candidates)
(volatile)))

(defun flx-helm-no-flx ()
"Test Helm's volatile performance without flx."
(interactive)
(helm :sources '(flx-helm-no-flx)))
(helm :sources '(flx-helm-no-flx)))