unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Basil L. Contovounesios" <contovob@tcd.ie>
To: 35236@debbugs.gnu.org, Lars Ingebrigtsen <larsi@gnus.org>
Subject: bug#35236: 27.0.50; Make application/x-patch inlinable
Date: Tue, 07 May 2019 18:16:23 +0100	[thread overview]
Message-ID: <87bm0e2niw.fsf@tcd.ie> (raw)
In-Reply-To: <87r2a8qkcu.fsf@tcd.ie> (Basil L. Contovounesios's message of "Thu, 11 Apr 2019 22:53:53 +0100")

"Basil L. Contovounesios" <contovob@tcd.ie> writes:

> "Basil L. Contovounesios" <contovob@tcd.ie> writes:
>
>> Patch to follow.
>
> Here it is:
>
> From 543c4cf9099abee5ece33c3200d48962e52cde30 Mon Sep 17 00:00:00 2001
> From: "Basil L. Contovounesios" <contovob@tcd.ie>
> Date: Thu, 11 Apr 2019 14:42:20 +0100
> Subject: [PATCH] Make application/x-patch inlinable in mm-decode.el
>
> * lisp/gnus/mm-decode.el (mm-inline-media-tests, mm-inlined-types):
> Include application/x-patch as a synonym of text/x-patch and
> text/x-diff. (bug#35236)
> ---
>  lisp/gnus/mm-decode.el | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el
> index 3f255419e7..93b57706f8 100644
> --- a/lisp/gnus/mm-decode.el
> +++ b/lisp/gnus/mm-decode.el
> @@ -236,6 +236,7 @@ mm-inline-media-tests
>      ("text/x-patch" mm-display-patch-inline identity)
>      ;; In case mime.types uses x-diff (as does Debian's mime-support-3.40).
>      ("text/x-diff" mm-display-patch-inline identity)
> +    ("application/x-patch" mm-display-patch-inline identity)
>      ("application/emacs-lisp" mm-display-elisp-inline identity)
>      ("application/x-emacs-lisp" mm-display-elisp-inline identity)
>      ("application/x-shellscript" mm-display-shell-script-inline identity)
> @@ -303,8 +304,9 @@ mm-inline-media-tests
>  
>  (defcustom mm-inlined-types
>    '("image/.*" "text/.*" "message/delivery-status" "message/rfc822"
> -    "message/partial" "message/external-body" "application/emacs-lisp"
> -    "application/x-emacs-lisp"
> +    "message/partial" "message/external-body"
> +    "application/x-patch"
> +    "application/emacs-lisp" "application/x-emacs-lisp"
>      "application/pgp-signature" "application/x-pkcs7-signature"
>      "application/pkcs7-signature" "application/x-pkcs7-mime"
>      "application/pkcs7-mime"
> -- 
> 2.20.1
>
>
> WDYT?

The suggested change seems harmless enough to me, so I intend to push it
to master within the next week if there are no objections before then.

Thanks,

-- 
Basil





  reply	other threads:[~2019-05-07 17:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-11 21:48 bug#35236: 27.0.50; Make application/x-patch inlinable Basil L. Contovounesios
2019-04-11 21:53 ` Basil L. Contovounesios
2019-05-07 17:16   ` Basil L. Contovounesios [this message]
2019-05-12 11:44     ` Basil L. Contovounesios

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bm0e2niw.fsf@tcd.ie \
    --to=contovob@tcd.ie \
    --cc=35236@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).