aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorDaiki Ueno2014-11-07 13:16:26 +0900
committerDaiki Ueno2014-11-07 13:16:26 +0900
commitdbae12c5dfd236bc5f5916296659407e50fce7d6 (patch)
tree6b55e988d3ea85aff4bd1fd1ceb1a7da50abe7f2 /lisp
parent10c5eacef055876f2512ae809cc8b9a54fb4b335 (diff)
downloademacs-dbae12c5dfd236bc5f5916296659407e50fce7d6.tar.gz
emacs-dbae12c5dfd236bc5f5916296659407e50fce7d6.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. Backported from trunk.
Diffstat (limited to 'lisp')
-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 b83459503b4..c134e589c30 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-10-18 Alan Mackenzie <acm@muc.de> 62014-10-18 Alan Mackenzie <acm@muc.de>
2 7
3 Check that a "macro" found near point-min isn't a ## operator. 8 Check that a "macro" found near point-min isn't a ## operator.
diff --git a/lisp/epg.el b/lisp/epg.el
index 77181a1a342..4d9bbd2cd6b 100644
--- a/lisp/epg.el
+++ b/lisp/epg.el
@@ -1910,8 +1910,9 @@ This function is for internal use only."
1910 string (match-string 0) 1910 string (match-string 0)
1911 index 0 1911 index 0
1912 field 0) 1912 field 0)
1913 (while (eq index 1913 (while (and (< field (length (car keys)))
1914 (string-match "\\([^:]+\\)?:" string index)) 1914 (eq index
1915 (string-match "\\([^:]+\\)?:" string index)))
1915 (setq index (match-end 0)) 1916 (setq index (match-end 0))
1916 (aset (car keys) field (match-string 1 string)) 1917 (aset (car keys) field (match-string 1 string))
1917 (setq field (1+ field)))) 1918 (setq field (1+ field))))