aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaiki Ueno2014-11-07 11:31:12 +0900
committerDaiki Ueno2014-11-07 11:31:12 +0900
commit135a9f4b5aead507c030fb7e3e8ad13aaa91f403 (patch)
tree57ebb5414d9344bec3150dc58a47378ebbf9d775
parent55ea575e131ff6295e64abaa7e766073e3a9b4d1 (diff)
downloademacs-135a9f4b5aead507c030fb7e3e8ad13aaa91f403.tar.gz
emacs-135a9f4b5aead507c030fb7e3e8ad13aaa91f403.zip
epg: Adjust to GnuPG 2.1 key listing change
* epg.el (epg--list-keys-1): Ignore fields after the 15th field (bug#18979). Reported by Hideki Saito.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/epg.el5
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1e447d446db..d2eda896295 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12014-11-07 Daiki Ueno <ueno@gnu.org>
2
3 * epg.el (epg--list-keys-1): Ignore fields after the 15th field
4 (bug#18979). Reported by Hideki Saito.
5
12014-11-06 Daiki Ueno <ueno@gnu.org> 62014-11-06 Daiki Ueno <ueno@gnu.org>
2 7
3 * emacs-lisp/package.el (package--display-verify-error): New function. 8 * emacs-lisp/package.el (package--display-verify-error): New function.
diff --git a/lisp/epg.el b/lisp/epg.el
index 0c74531d7b8..e4d8c1e1a02 100644
--- a/lisp/epg.el
+++ b/lisp/epg.el
@@ -1278,8 +1278,9 @@ callback data (if any)."
1278 string (match-string 0) 1278 string (match-string 0)
1279 index 0 1279 index 0
1280 field 0) 1280 field 0)
1281 (while (eq index 1281 (while (and (< field (length (car keys)))
1282 (string-match "\\([^:]+\\)?:" string index)) 1282 (eq index
1283 (string-match "\\([^:]+\\)?:" string index)))
1283 (setq index (match-end 0)) 1284 (setq index (match-end 0))
1284 (aset (car keys) field (match-string 1 string)) 1285 (aset (car keys) field (match-string 1 string))
1285 (setq field (1+ field)))) 1286 (setq field (1+ field))))