unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#45561: 28.0.50; [PATCH] Duplicated entry in gnus-mime-action-alist
       [not found] <m1r1n6vppa.fsf.ref@yahoo.es>
@ 2020-12-30 23:28 ` Unknown
  2020-12-31  5:00   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Unknown @ 2020-12-30 23:28 UTC (permalink / raw)
  To: 45561

[-- Attachment #1: Type: text/plain, Size: 244 bytes --]


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.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Fix-duplicated-entry-in-gnus-mime-action-alist.patch --]
[-- Type: text/x-patch, Size: 1114 bytes --]

From 72171bfa7e670a2de5c543516c85c4ee2d9a1220 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Mart=C3=ADn?= <mardani29@yahoo.es>
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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#45561: 28.0.50; [PATCH] Duplicated entry in gnus-mime-action-alist
  2020-12-30 23:28 ` bug#45561: 28.0.50; [PATCH] Duplicated entry in gnus-mime-action-alist Unknown
@ 2020-12-31  5:00   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2020-12-31  5:00 UTC (permalink / raw)
  To: Daniel Martín; +Cc: 45561

Daniel Martín <mardani29@yahoo.es> writes:

> 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.

Thanks; applied to Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-31  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <m1r1n6vppa.fsf.ref@yahoo.es>
2020-12-30 23:28 ` bug#45561: 28.0.50; [PATCH] Duplicated entry in gnus-mime-action-alist Unknown
2020-12-31  5:00   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).