diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2017-03-28 15:50:06 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2017-03-28 15:50:06 +0200 |
commit | 9a83715eb2a5df03ae42242fd6ec9e1d2b182dcc (patch) | |
tree | 98c7fcfd2924fba355b338a2f1be06f15a71de0f /helm.el | |
parent | 4475f9267bc9d663628d786207a4368e2d87d118 (diff) |
Update helm-search-match-part docstring.
* helm.el (helm-search-match-part): Do it, no code change.
Diffstat (limited to 'helm.el')
-rw-r--r-- | helm.el | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -4867,12 +4867,12 @@ use `search', `get-line' and `match-part' attributes." and collect cand)))))) (defun helm-search-match-part (candidate pattern) - "Match PATTERN only on part of CANDIDATE returned by MATCH-PART-FN. + "Match PATTERN only on match-part property value of CANDIDATE. + Because `helm-search-match-part' maybe called even if unspecified -in source (negation), MATCH-PART-FN default to `identity' -to match whole candidate. -When using fuzzy matching and/or negation (i.e \"!\"), -this function is always called on whole candidate." +in source (negation or fuzzy), the part to match fallback to the whole +candidate even if match-part haven't been computed by match-part-fn +and stored in the match-part property." (let ((part (or (get-text-property 0 'match-part candidate) candidate)) (fuzzy-regexp (cadr (gethash 'helm-pattern helm--fuzzy-regexp-cache))) |