Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/markdown-mode/files/, app-emacs/markdown-mode/
Date: Sun, 29 May 2016 13:32:21
Message-Id: 1464528730.725bcc657fc026420b7e851cdc4163784889f36d.graaff@gentoo
1 commit: 725bcc657fc026420b7e851cdc4163784889f36d
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 29 13:31:46 2016 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun May 29 13:32:10 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=725bcc65
7
8 app-emacs/markdown-mode: add 2.1
9
10 Backport upstream patch to not add .text to auto-mode-alist.
11
12 Add auto-mode-alist entries for .md and .markdown in site-init.
13
14 Package-Manager: portage-2.2.28
15
16 app-emacs/markdown-mode/Manifest | 1 +
17 .../markdown-mode/files/50markdown-mode-gentoo.el | 2 ++
18 .../files/markdown-mode-2.1-text-auto-mode.patch | 23 ++++++++++++++++++++++
19 app-emacs/markdown-mode/markdown-mode-2.1.ebuild | 23 ++++++++++++++++++++++
20 4 files changed, 49 insertions(+)
21
22 diff --git a/app-emacs/markdown-mode/Manifest b/app-emacs/markdown-mode/Manifest
23 index 1a40b45..1b6968a 100644
24 --- a/app-emacs/markdown-mode/Manifest
25 +++ b/app-emacs/markdown-mode/Manifest
26 @@ -1,2 +1,3 @@
27 DIST markdown-mode-1.8.1.el.xz 18152 SHA256 865d83162cfb39ee06a2e46b3d586e71d144d360e8f2f1cdf72bdb5923ededc0 SHA512 1e679a409fa5a7f6f622e4a554d74ea1820ba1e82eb77d3ce6b33d5494350232a2b165c9f002a076d4ce97138584381938d5c2ccac4161131ffba82da5091946 WHIRLPOOL b8b05f9b8ffa1db6c20fda46e6058fb7b05ba64f9bd921ae310d274c4be0887c29ab180cbd984c1ea21020be4e8af619a91e4a8c0a8a33d280298ba9cfbec162
28 DIST markdown-mode-2.0.el.xz 39508 SHA256 a24f06f4aa2f1d4847e045a54c25c73f503ed89c0f8954b934b2b6c658357819 SHA512 eaad1561c5a84f47cd07318f0c80454d28a59becc0372453ec1412511879335a5717d1531895fe969c5d2fe7a4aac5a9e55ee727dcee621ba203737ca9182f3d WHIRLPOOL 14d15b9ad20c1f857e99056fbfd5c2305a7ba579a8210a73d10806589e201e5e881a33b49ea31277fe354c2bb8cdab090811c8c27aca64811248596927c82994
29 +DIST markdown-mode-2.1.el.xz 50484 SHA256 c4b4fb632d1354ea5ed6d8500a85326c05e24d0343cc4fd5d54860f70dc67022 SHA512 3f0d68b03408281e49c9dbf4d26b8c1f766aa675efea6789b13722c7b1d831af35d3ea30ac071be00242279bca31d04fe92a28b901698fe2072d4504d9901253 WHIRLPOOL 909b542f6523b47bae8b27445b3d8fc0f82a6fe6867e16b471c68f067fbc4f7918f482b0e373ea0b5d0763bbf5b0275e15427ac76007a6329b3aa8dfcebebdeb
30
31 diff --git a/app-emacs/markdown-mode/files/50markdown-mode-gentoo.el b/app-emacs/markdown-mode/files/50markdown-mode-gentoo.el
32 index 6a83e60..fb4a5cb 100644
33 --- a/app-emacs/markdown-mode/files/50markdown-mode-gentoo.el
34 +++ b/app-emacs/markdown-mode/files/50markdown-mode-gentoo.el
35 @@ -1,3 +1,5 @@
36 (add-to-list 'load-path "@SITELISP@")
37 (autoload 'markdown-mode "markdown-mode"
38 "Major mode for editing Markdown files" t)
39 +(add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode))
40 +(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
41
42 diff --git a/app-emacs/markdown-mode/files/markdown-mode-2.1-text-auto-mode.patch b/app-emacs/markdown-mode/files/markdown-mode-2.1-text-auto-mode.patch
43 new file mode 100644
44 index 0000000..91449c6
45 --- /dev/null
46 +++ b/app-emacs/markdown-mode/files/markdown-mode-2.1-text-auto-mode.patch
47 @@ -0,0 +1,23 @@
48 +From a70e74e0eedb436c4126ac69b0beaa4ab848b78e Mon Sep 17 00:00:00 2001
49 +From: Steve Purcell <steve@×××××××××.com>
50 +Date: Mon, 14 Mar 2016 09:18:16 +1300
51 +Subject: Remove autoload for .text
52 +
53 +While .md and .markdown are clearly markdown files, the handling of .text is not a choice that markdown-mode should be making on the user's behalf without any opportunity to prevent it.
54 +
55 +diff --git a/markdown-mode.el b/markdown-mode.el
56 +index b7a32cc..978e040 100644
57 +--- a/markdown-mode.el
58 ++++ b/markdown-mode.el
59 +@@ -6634,8 +6634,6 @@ BEG and END are the limits of scanned region."
60 + ;;;###autoload
61 + (add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode))
62 + ;;;###autoload
63 +-(add-to-list 'auto-mode-alist '("\\.text\\'" . markdown-mode))
64 +-;;;###autoload
65 + (add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
66 +
67 +
68 +--
69 +cgit v0.10.2
70 +
71
72 diff --git a/app-emacs/markdown-mode/markdown-mode-2.1.ebuild b/app-emacs/markdown-mode/markdown-mode-2.1.ebuild
73 new file mode 100644
74 index 0000000..27708554
75 --- /dev/null
76 +++ b/app-emacs/markdown-mode/markdown-mode-2.1.ebuild
77 @@ -0,0 +1,23 @@
78 +# Copyright 1999-2016 Gentoo Foundation
79 +# Distributed under the terms of the GNU General Public License v2
80 +# $Id$
81 +
82 +EAPI=5
83 +
84 +inherit elisp
85 +
86 +DESCRIPTION="Major mode for editing Markdown-formatted text files"
87 +HOMEPAGE="http://jblevins.org/projects/markdown-mode/"
88 +# Cannot use this url because its hash differ about every five minutes
89 +# SRC_URI="http://jblevins.org/git/${PN}.git/snapshot/${P}.tar.gz"
90 +SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.el.xz"
91 +
92 +LICENSE="GPL-2+"
93 +SLOT="0"
94 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
95 +
96 +RDEPEND="|| ( dev-python/markdown2 dev-python/markdown )"
97 +
98 +SITEFILE="50${PN}-gentoo.el"
99 +
100 +ELISP_PATCHES=( ${P}-text-auto-mode.patch )