diff --git a/helm-command.el b/helm-command.el index 56d0118de..634d899aa 100644 --- a/helm-command.el +++ b/helm-command.el @@ -38,12 +38,6 @@ :group 'helm-command :type 'boolean) -(defcustom helm-M-x-default-sort-fn #'helm-M-x-fuzzy-sort-candidates - "Default sort function for `helm-M-x' with fuzzy matching. - -It should sort against REAL value of candidates." - :group 'helm-command - :type 'function) ;;; Faces ;; @@ -178,9 +172,6 @@ fuzzy matching is running its own sort function with a different algorithm." (universal-argument--mode))) (put 'helm-M-x-universal-argument 'helm-only t) -(defun helm-M-x-fuzzy-sort-candidates (candidates _source) - (helm-fuzzy-matching-default-sort-fn-1 candidates t)) - (defun helm-M-x-persistent-action (candidate) (helm-elisp--persistent-help candidate 'helm-describe-function)) @@ -215,8 +206,7 @@ Arg COLLECTION should be an `obarray' but can be any object suitable for `try-completion'. Arg PREDICATE is a function that default to `commandp' see also `try-completion'. Arg HISTORY default to `extended-command-history'." - (let* ((helm-fuzzy-sort-fn helm-M-x-default-sort-fn) - (helm--mode-line-display-prefarg t) + (let* ((helm--mode-line-display-prefarg t) (tm (run-at-time 1 0.1 'helm-M-x--notify-prefix-arg)) (minibuffer-completion-confirm t) (pred (or predicate #'commandp))