emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/consult-hoogle 57204c6324 6/7: Remove unneeded form fro


From: ELPA Syncer
Subject: [elpa] externals/consult-hoogle 57204c6324 6/7: Remove unneeded form from regexp
Date: Mon, 5 Feb 2024 18:57:36 -0500 (EST)

branch: externals/consult-hoogle
commit 57204c6324118a46d98ec73b542bf24bd19a7862
Author: Rahguzar <rahguzar@zohomail.eu>
Commit: Rahguzar <rahguzar@zohomail.eu>

    Remove unneeded form from regexp
    
    From Philip Kaludercic's review
---
 consult-hoogle.el | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/consult-hoogle.el b/consult-hoogle.el
index c9e289f959..ed08981388 100644
--- a/consult-hoogle.el
+++ b/consult-hoogle.el
@@ -346,11 +346,10 @@ With positive prefix ARG only clear restrictions. With 
negative prefix
 only clear exclusions."
   (interactive (list (when current-prefix-arg
                        (prefix-numeric-value current-prefix-arg))))
-  (let* ((restriction-rx (rx-to-string `(: ,(if (not arg)
-                                                '(or "+" "-")
-                                              (if (> arg 0) "+" "-"))
-                                         (0+ (not space))
-                                         (or (1+ space) eos)))))
+  (let ((restriction-rx (rx-to-string `(: ,(if (not arg)
+                                               '(or "+" "-")
+                                             (if (> arg 0) "+" "-"))
+                                        (0+ (not space))))))
     (consult-hoogle--modify-async-input
      (lambda (match) (replace-regexp-in-string restriction-rx "" match)))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]