From dbad9650f5b63ad3cc15e9a1e14da9190600e24c Mon Sep 17 00:00:00 2001 From: morioka Date: Wed, 6 May 1998 10:57:54 +0000 Subject: [PATCH] (mime-type/subtype-string): New function (moved from semi/mime-parse.el). --- mime-def.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mime-def.el b/mime-def.el index 779c984..8e40b08 100644 --- a/mime-def.el +++ b/mime-def.el @@ -99,6 +99,17 @@ "][" quoted-printable-hex-chars "]")) +;;; @ utility +;;; + +(defsubst mime-type/subtype-string (type &optional subtype) + "Return type/subtype string from TYPE and SUBTYPE." + (if type + (if subtype + (format "%s/%s" type subtype) + (format "%s" type)))) + + ;;; @ end ;;; -- 1.7.10.4