Commit 16e304f3 authored by Eric Abrahamsen's avatar Eric Abrahamsen Committed by Noam Postavsky
Browse files

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.
parent b7250496
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment