Permalink
Browse files

* helm.el: Add comments, no code--change.

  • Loading branch information...
1 parent 41f8337 commit 4978e39ecc8c7b907f77fa23cba8daa1d318939f @thierryvolpiatto thierryvolpiatto committed Jan 7, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 helm.el
View
@@ -2217,17 +2217,23 @@ and `helm-pattern'."
matches))
(defun helm-compute-matches (source)
+ "Start computing candidates in SOURCE."
(save-current-buffer
(let ((matchfns (helm-match-functions source))
(helm-source-name (assoc-default 'name source))
(limit (helm-candidate-number-limit source))
(helm-pattern (helm-process-pattern-transformer
helm-pattern source)))
+ ;; If source have a `filtered-candidate-transformer' attr
+ ;; Filter candidates with this func, otherwise just compute
+ ;; candidates.
(helm-process-filtered-candidate-transformer
(if (or (equal helm-pattern "")
(equal matchfns '(identity)))
+ ;; Compute all candidates up to LIMIT.
(helm-take-first-elements
(helm-get-cached-candidates source) limit)
+ ;; Compute candidates according to pattern with their match fns.
(helm-match-from-candidates
(helm-get-cached-candidates source) matchfns limit source))
source))))

0 comments on commit 4978e39

Please sign in to comment.