diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2015-10-07 08:14:20 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2015-10-07 08:14:20 +0200 |
commit | b57cf95666e9227e0a249708153f54ad85a2f68a (patch) | |
tree | 867dcec4303c30f892c54c450288a770dcb7cbe0 | |
parent | 1c9f85a483ad20f087809cc5d205f16b33a7da61 (diff) |
Use helm--maybe-build-source in moccur.
-rw-r--r-- | helm-regexp.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/helm-regexp.el b/helm-regexp.el index d9890abc..d4aa2ae2 100644 --- a/helm-regexp.el +++ b/helm-regexp.el @@ -392,9 +392,8 @@ Same as `helm-moccur-goto-line' but go in new frame." (buffer-name (current-buffer)) (remove helm-current-buffer buffers)) buffers))) - (unless helm-source-moccur - (setq helm-source-moccur - (helm-make-source "Moccur" 'helm-source-multi-occur))) + (helm--maybe-build-source 'helm-source-moccur + (helm-make-source "Moccur" 'helm-source-multi-occur)) (helm-attrset 'moccur-buffers bufs helm-source-moccur) (helm-set-local-variable 'helm-multi-occur-buffer-list bufs) (helm-set-local-variable |