diff options
author | Miguel Ángel Moreno <mail@migalmoreno.com> | 2023-01-05 17:48:22 +0100 |
---|---|---|
committer | Miguel Ángel Moreno <mail@migalmoreno.com> | 2023-01-05 17:48:38 +0100 |
commit | 74cd8a2f2bcc348e60011d57d2389719d83dba3a (patch) | |
tree | eacfb30eb20d4ddf34018ff1aa375a83d1f54dbd | |
parent | 3319f22ec1bd45e0f139bb55caeb869e2e39b71d (diff) |
fdroid.el: Remove unnecessary rx constructs
-rw-r--r-- | fdroid.el | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1,6 +1,6 @@ ;;; fdroid.el --- An Emacs interface to F-Droid -*- lexical-binding: t; -*- -;;; Copyright ©2022 conses <contact@conses.eu> +;; Copyright ©2022 conses <contact@conses.eu> ;; Author: conses <contact@conses.eu> ;; Version: 0.1.0 @@ -62,7 +62,7 @@ Then, run BODY in the context of the result, and show MESSAGE after completion." (erase-buffer) (call-process fdroid-program nil t nil "devices") (goto-char (point-min)) - (if (or (re-search-forward (rx (: bol (+ alphanumeric) " - " (+ any))) (point-at-eol) t) + (if (or (re-search-forward (rx bol (+ alphanumeric) " - " (+ any)) (point-at-eol) t) fdroid-sans-device) (let ((process (make-process :name "fdroid.el" @@ -95,11 +95,11 @@ Optionally, filter packages by KEYWORDS and return a list of matching results." (apply #'call-process fdroid-program nil t nil command) (goto-char (point-min)) (while (not (eobp)) - (when (re-search-forward (rx (: bol (group (+ (or alpha punct))) - (+ blank) - (or "- " (group (* anychar))) - " - " (group (+ any)) - "\n" (+ blank) (group (+ any)))) + (when (re-search-forward (rx bol (group (+ (or alpha punct))) + (+ blank) + (or "- " (group (* anychar))) + " - " (group (+ any)) + "\n" (+ blank) (group (+ any))) (point-at-eol 2) t) (puthash (match-string 1) (list :name (match-string 2) |