summaryrefslogtreecommitdiff
path: root/helm-elisp-package.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2015-10-07 08:24:28 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2015-10-07 08:24:28 +0200
commited1a6893f5e838f6b6e109b54c6ae9e88437c90f (patch)
treed77f316c94a08f0d4288b8c2a584efd15a487e65 /helm-elisp-package.el
parentb57cf95666e9227e0a249708153f54ad85a2f68a (diff)
Build regexp source in command and use helm--maybe-build-source.
* helm-elisp-package.el (helm-list-elisp-packages): Do it. * helm-regexp.el (helm-source-regexp): Do it. (helm-regexp): Do it.
Diffstat (limited to 'helm-elisp-package.el')
-rw-r--r--helm-elisp-package.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/helm-elisp-package.el b/helm-elisp-package.el
index 55d6b323..15871d80 100644
--- a/helm-elisp-package.el
+++ b/helm-elisp-package.el
@@ -361,9 +361,8 @@
"Preconfigured helm for listing and handling emacs packages."
(interactive "P")
(when arg (setq helm-el-package--initialized-p nil))
- (unless helm-source-list-el-package
- (setq helm-source-list-el-package
- (helm-make-source "list packages" 'helm-list-el-package-source)))
+ (helm--maybe-build-source 'helm-source-list-el-package
+ (helm-make-source "list packages" 'helm-list-el-package-source))
(helm :sources 'helm-source-list-el-package
:buffer "*helm list packages*"))