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

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

[elpa] externals/gnorb 840093b 411/449: [gnorb] Don't use string-trim wi


From: Stefan Monnier
Subject: [elpa] externals/gnorb 840093b 411/449: [gnorb] Don't use string-trim with optional args
Date: Fri, 27 Nov 2020 23:16:22 -0500 (EST)

branch: externals/gnorb
commit 840093b90ccf48cbd561dfa7281a58b887e76c7d
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    [gnorb] Don't use string-trim with optional args
    
    * packages/gnorb/gnorb-gnus.el (gnorb-gnus-search-registry):
      Apparently these args aren't accepted in Emacs 25.
---
 gnorb-gnus.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnorb-gnus.el b/gnorb-gnus.el
index 96d660e..398cc0b 100644
--- a/gnorb-gnus.el
+++ b/gnorb-gnus.el
@@ -712,7 +712,8 @@ sender:google.com subject:\"your search results\""
              "\\([[:alpha:]]+\\):\\(\\(?:[^\"[:blank:]]+\\|\"[^\"]+\"\\)\\)"
              (point-at-eol) t)
        (push (cons (intern (match-string 1))
-                   (string-trim (match-string 2) "\"" "\""))
+                   (replace-regexp-in-string "\\`\"\\|\"\\'" ""
+                                             (match-string 2)))
              parsed)))
     (dolist (sym (slot-value gnus-registry-db 'tracked))
       (when (setq term (cdr-safe (assoc sym parsed)))



reply via email to

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