app-emacs/mldonkey: Fix byte-compilation with Emacs 26.
authorUlrich Müller <ulm@gentoo.org>
Wed, 14 Feb 2018 21:26:11 +0000 (22:26 +0100)
committerUlrich Müller <ulm@gentoo.org>
Wed, 14 Feb 2018 21:27:08 +0000 (22:27 +0100)
Closes: https://bugs.gentoo.org/647638
Package-Manager: Portage-2.3.24, Repoman-2.3.6

app-emacs/mldonkey/files/mldonkey-0.0.4b-emacs-26.patch [new file with mode: 0644]
app-emacs/mldonkey/mldonkey-0.0.4b-r1.ebuild

diff --git a/app-emacs/mldonkey/files/mldonkey-0.0.4b-emacs-26.patch b/app-emacs/mldonkey/files/mldonkey-0.0.4b-emacs-26.patch
new file mode 100644 (file)
index 0000000..0548fd9
--- /dev/null
@@ -0,0 +1,14 @@
+Fix byte compilation with Emacs 26.
+https://bugs.gentoo.org/647638
+
+--- mldonkey-el-0.0.4b-orig/mldonkey-vd.el
++++ mldonkey-el-0.0.4b/mldonkey-vd.el
+@@ -801,7 +801,7 @@
+     (insert "\n")))
+ 
+ 
+-(defun mldonkey-vd-insert (&optional ignore-1 &optional ignore-2)
++(defun mldonkey-vd-insert (&optional ignore-1 ignore-2)
+ 
+   "Insert the table with the downloads in the MlDonkey buffer."
+ 
index 7f128b35f900bd0173512472cd0cf10eeb397b00..5c38394b6e958ac6b33f17828e0810eb3cc7e541 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=4
@@ -16,7 +16,7 @@ SLOT="0"
 KEYWORDS="amd64 ppc x86"
 
 S="${WORKDIR}/${MY_P}"
-ELISP_PATCHES="${P}-vd.patch"
+ELISP_PATCHES="${P}-vd.patch ${P}-emacs-26.patch"
 SITEFILE="50${PN}-gentoo.el"
 
 src_compile() {