]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/gnus/mm-uu.el (mm-uu-type-alist): Add markdown-diff/-emacs-sources
authorJuri Linkov <juri@linkov.net>
Fri, 24 Sep 2021 06:44:47 +0000 (09:44 +0300)
committerJuri Linkov <juri@linkov.net>
Fri, 24 Sep 2021 06:44:47 +0000 (09:44 +0300)
(Bug#50763)

lisp/gnus/mm-uu.el

index 494221adeecccb75bd941e07753b2b84be5ac361..a52613a092c9aa9cbe1cbdd5a157b968e33fc6ab 100644 (file)
@@ -145,6 +145,14 @@ This can be either \"inline\" or \"attachment\".")
      ,#'mm-uu-pgp-key-extract
      ,#'mm-uu-gpg-key-skip-to-last
      nil)
+    (markdown-emacs-sources
+     "^```\\(?:elisp\\|emacs-lisp\\|\n(\\)"
+     "^```$"
+     ,#'mm-uu-emacs-sources-extract)
+    (markdown-diff ;; this should be higher than `git-format-patch'
+     "^```\\(?:diff\\|patch\\|\ndiff --git \\)"
+     "^```$"
+     ,#'mm-uu-diff-extract)
     (emacs-sources
      "^;;;?[ \t]*[^ \t]+\\.el[ \t]*--"
      "^;;;?[ \t]*\\([^ \t]+\\.el\\)[ \t]+ends here"