aboutsummaryrefslogtreecommitdiff
path: root/emacs/guix-pcomplete.el
diff options
context:
space:
mode:
authorAlex Kost <alezost@gmail.com>2015-08-12 15:28:55 +0300
committerAlex Kost <alezost@gmail.com>2015-08-30 18:26:01 +0300
commitc10521e97679c35a40926084e049445cc5053254 (patch)
tree86d9739f72b209064e4b5402e1fa25054e1bffd5 /emacs/guix-pcomplete.el
parent935d079bb75c1144946ac9e9915a2278896a458d (diff)
downloadpatches-c10521e97679c35a40926084e049445cc5053254.tar
patches-c10521e97679c35a40926084e049445cc5053254.tar.gz
emacs: Add and use 'guix-while-search'.
* emacs/guix-utils.el (guix-while-search): New macro. * emacs/guix-pcomplete.el (guix-pcomplete-run-guix-and-search): Use it. * emacs/guix-prettify.el (guix-prettify-decompose-buffer): Likewise.
Diffstat (limited to 'emacs/guix-pcomplete.el')
-rw-r--r--emacs/guix-pcomplete.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/emacs/guix-pcomplete.el b/emacs/guix-pcomplete.el
index 9ec563cf52..0049c94d38 100644
--- a/emacs/guix-pcomplete.el
+++ b/emacs/guix-pcomplete.el
@@ -105,9 +105,8 @@ Return a list of strings matching REGEXP.
GROUP specifies a parenthesized expression used in REGEXP."
(with-temp-buffer
(apply #'guix-pcomplete-run-guix args)
- (goto-char (point-min))
(let (result)
- (while (re-search-forward regexp nil t)
+ (guix-while-search regexp
(push (match-string-no-properties group) result))
(nreverse result))))