diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2013-03-24 15:49:16 +0100 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2013-03-24 15:49:16 +0100 |
commit | 613485a4791027e7871c90a687feeec6e26ddb3c (patch) | |
tree | 6fb4d4823b7f1fafb38a783b7903249957f68cfb /helm-apt.el | |
parent | 4b1edb5bb9bb916cfd0f67d9d7c96472c2b8e705 (diff) |
* helm-apt.el (helm-apt-init): Fix, faster.
Diffstat (limited to 'helm-apt.el')
-rw-r--r-- | helm-apt.el | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/helm-apt.el b/helm-apt.el index 99097dc9..cd2a61ff 100644 --- a/helm-apt.el +++ b/helm-apt.el @@ -103,14 +103,14 @@ (loop for i in (split-string (buffer-string) "\n" t) for p = (split-string i) collect (cons (car p) (cadr p))))) - (setq helm-apt-all-packages - (with-current-buffer - (helm-candidate-buffer - (get-buffer-create (format "*helm-apt*"))) - (erase-buffer) - (call-process-shell-command - (format helm-apt-search-command query) - nil (current-buffer)))) + (helm-init-candidates-in-buffer + 'global + (setq helm-apt-all-packages + (with-temp-buffer + (call-process-shell-command + (format helm-apt-search-command query) + nil (current-buffer)) + (buffer-string)))) (message "Loading package list done") (sit-for 0.5)))) |