summaryrefslogtreecommitdiff
path: root/helm-locate.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2014-05-04 08:07:42 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2014-05-04 08:07:42 +0200
commit6464a446a72ab018586f713deb63f5af464a1a80 (patch)
tree09372731677127fbce263c15681b43dd4214ec17 /helm-locate.el
parent775950db4705ef2310bb1d6d316bfb8f1d01b53b (diff)
* helm-locate.el: Remove pattern transformer (#498).
Diffstat (limited to 'helm-locate.el')
-rw-r--r--helm-locate.el12
1 files changed, 0 insertions, 12 deletions
diff --git a/helm-locate.el b/helm-locate.el
index e97da4f8..6f4ca40b 100644
--- a/helm-locate.el
+++ b/helm-locate.el
@@ -254,22 +254,10 @@ See also `helm-locate'."
(helm-log "Error: Locate %s"
(replace-regexp-in-string "\n" "" event))))))))
-(defun helm-locate-pattern-transformer (pattern)
- "Replace spaces in PATTERN with \".*\".
-Don't affect space at end of PATTERN preceding a possible locate option.
-Do nothing when `helm-locate-command' is 'es'."
- (if (and (string-match
- " " (replace-regexp-in-string
- " -[a-z]\\'" "" pattern))
- (not (string-match-p "\\`es" helm-locate-command)))
- (replace-match ".*" nil t pattern)
- pattern))
-
(defvar helm-source-locate
`((name . "Locate")
(init . helm-locate-set-command)
(candidates-process . helm-locate-init)
- (pattern-transformer . helm-locate-pattern-transformer)
(type . file)
(requires-pattern . 3)
(history . ,'helm-file-name-history)