branch: externals/gnorb
commit 840093b90ccf48cbd561dfa7281a58b887e76c7d
Author: Eric Abrahamsen <[email protected]>
Commit: Stefan Monnier <[email protected]>

    [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