summaryrefslogtreecommitdiff
path: root/helm-command.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2019-11-13 19:45:40 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2019-11-13 19:45:40 +0100
commit2b5cfb27ac132445fbd951e34f114c65c14ad9a7 (patch)
tree4093b311f27619673c68f767e7362f5c7ecb4f2b /helm-command.el
parenta8c9c032571ff4bb0f94a537467deff78e1a2d51 (diff)
Make M-x history source using dynamic candidates
* helm-command.el (helm-M-x-read-extended-command): Do it.
Diffstat (limited to 'helm-command.el')
-rw-r--r--helm-command.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/helm-command.el b/helm-command.el
index 45a4c192..4728055d 100644
--- a/helm-command.el
+++ b/helm-command.el
@@ -220,7 +220,10 @@ than the default which is OBARRAY."
helm-move-selection-after-hook))
(sources (and helm-M-x-use-completion-styles
`(,(helm-build-sync-source "Emacs Commands history"
- :candidates (lambda () (or history extended-command-history))
+ :candidates (helm-dynamic-completion
+ (or history extended-command-history)
+ #'commandp)
+ :match-dynamic t
:filtered-candidate-transformer 'helm-M-x-transformer-hist)
,(helm-build-sync-source "Emacs Commands"
:candidates (helm-dynamic-completion