aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2023-01-05 17:48:22 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2023-01-05 17:48:38 +0100
commit74cd8a2f2bcc348e60011d57d2389719d83dba3a (patch)
treeeacfb30eb20d4ddf34018ff1aa375a83d1f54dbd
parent3319f22ec1bd45e0f139bb55caeb869e2e39b71d (diff)
fdroid.el: Remove unnecessary rx constructs
-rw-r--r--fdroid.el14
1 files changed, 7 insertions, 7 deletions
diff --git a/fdroid.el b/fdroid.el
index 3c28bb6..8830530 100644
--- a/fdroid.el
+++ b/fdroid.el
@@ -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)