Subject: 28.0.50; [PATCH] Duplicated entry in gnus-mime-action-alist

From: Daniel Martín <[email-masked]>
Date: Thu, 31 Dec 2020 00:28:33 +0100

When you press "." (`gnus-mime-action-on-part') on a MIME part in an
Article buffer in Gnus, the "Toggle display" action is duplicated.  The
second entry should be "View as charset" instead.

The attached patch corrects the problem.  Thanks.

>From 72171bfa7e670a2de5c543516c85c4ee2d9a1220 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Mart=C3=ADn?= <[email-masked]>
Date: Thu, 31 Dec 2020 00:18:07 +0100
Subject: [PATCH] Fix duplicated entry in gnus-mime-action-alist

* lisp/gnus/gnus-art.el (gnus-mime-action-alist): Remove duplicated
"toggle display" entry and call the appropriate function for the "view
as charset" action.
---
 lisp/gnus/gnus-art.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 79d4d9087f..a8a9092f43 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -1061,7 +1061,7 @@ gnus-mime-action-alist
     ("view the part" . gnus-mime-view-part)
     ("pipe to command" . gnus-mime-pipe-part)
     ("toggle display" . gnus-article-press-button)
-    ("toggle display" . gnus-article-view-part-as-charset)
+    ("view as charset" . gnus-mime-view-part-as-charset)
     ("view as type" . gnus-mime-view-part-as-type)
     ("view internally" . gnus-mime-view-part-internally)
     ("view externally" . gnus-mime-view-part-externally))
-- 
2.28.0