aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/epg-config.el6
-rw-r--r--lisp/subr.el2
2 files changed, 3 insertions, 5 deletions
diff --git a/lisp/epg-config.el b/lisp/epg-config.el
index 4a9cc7744cb..54328290c8f 100644
--- a/lisp/epg-config.el
+++ b/lisp/epg-config.el
@@ -148,11 +148,7 @@ Otherwise, it tries the programs listed in the entry until the
148version requirement is met." 148version requirement is met."
149 (unless program-alist 149 (unless program-alist
150 (setq program-alist epg-config--program-alist)) 150 (setq program-alist epg-config--program-alist))
151 (let ((entry (assq protocol program-alist)) 151 (let ((entry (assq protocol program-alist)))
152 ;; In many gnupg distributions (especially on Windows), the
153 ;; version string is "gpg (GnuPG) 2.2.15-unknown" or the like.
154 (version-regexp-alist (cons '("^[-._+ ]?unknown$" . -4)
155 version-regexp-alist)))
156 (unless entry 152 (unless entry
157 (error "Unknown protocol %S" protocol)) 153 (error "Unknown protocol %S" protocol))
158 (cl-destructuring-bind (symbol . alist) 154 (cl-destructuring-bind (symbol . alist)
diff --git a/lisp/subr.el b/lisp/subr.el
index e50a52e2f53..76b0e4b3944 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -5325,6 +5325,8 @@ Usually the separator is \".\", but it can be any other string.")
5325 ("^[-._+]$" . -4) 5325 ("^[-._+]$" . -4)
5326 ;; treat "1.2.3-CVS" as snapshot release 5326 ;; treat "1.2.3-CVS" as snapshot release
5327 ("^[-._+ ]?\\(cvs\\|git\\|bzr\\|svn\\|hg\\|darcs\\)$" . -4) 5327 ("^[-._+ ]?\\(cvs\\|git\\|bzr\\|svn\\|hg\\|darcs\\)$" . -4)
5328 ;; treat "-unknown" the same as snapshots.
5329 ("^[-._+ ]?unknown$" . -4)
5328 ("^[-._+ ]?alpha$" . -3) 5330 ("^[-._+ ]?alpha$" . -3)
5329 ("^[-._+ ]?beta$" . -2) 5331 ("^[-._+ ]?beta$" . -2)
5330 ("^[-._+ ]?\\(pre\\|rc\\)$" . -1)) 5332 ("^[-._+ ]?\\(pre\\|rc\\)$" . -1))