summary refs log tree commit diff
path: root/emacs/guix-pcomplete.el
diff options
context:
space:
mode:
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))))