diff options
author | Eric Abrahamsen <eric@ericabrahamsen.net> | 2017-02-22 17:26:11 -0800 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2017-02-28 21:57:07 -0500 |
commit | 16e304f38e57a9a31f1468ba6ebcb8a71efd253d (patch) | |
tree | 1776a4427c50020506c2cbcf7612dabbfc27ebe7 /lisp/gnus | |
parent | b7250496bd2d681a7a7f3c958eb3f0047b5c0a22 (diff) | |
download | emacs-16e304f38e57a9a31f1468ba6ebcb8a71efd253d.tar.gz emacs-16e304f38e57a9a31f1468ba6ebcb8a71efd253d.tar.bz2 emacs-16e304f38e57a9a31f1468ba6ebcb8a71efd253d.zip |
Don't use mapconcat with chars in gnus registry marks (Bug#25839)
* lisp/gnus/gnus-registry.el (gnus-registry-article-marks-to-chars):
Instead, use a plain concat, which will create a string out of a list
of characters.
Diffstat (limited to 'lisp/gnus')
-rw-r--r-- | lisp/gnus/gnus-registry.el | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/gnus/gnus-registry.el b/lisp/gnus/gnus-registry.el index f728b191110..51f6459d2f8 100644 --- a/lisp/gnus/gnus-registry.el +++ b/lisp/gnus/gnus-registry.el @@ -968,12 +968,13 @@ Uses `gnus-registry-marks' to find what shortcuts to install." "Show the marks for an article by the :char property." (let* ((id (mail-header-message-id headers)) (marks (when id (gnus-registry-get-id-key id 'mark)))) - (mapconcat (lambda (mark) - (plist-get - (cdr-safe - (assoc mark gnus-registry-marks)) - :char)) - marks ""))) + (concat (delq nil + (mapcar + (lambda (m) + (plist-get + (cdr-safe (assoc m gnus-registry-marks)) + :char)) + marks))))) ;; use like this: ;; (defalias 'gnus-user-format-function-M 'gnus-registry-article-marks-to-names) |