app-emacs/mic-paren: Fix byte-compilation and runtime errors

Update to EAPI 8. Update HOMEPAGE.

Signed-off-by: Ulrich Müller <ulm@gentoo.org>
This commit is contained in:
Ulrich Müller
2023-10-06 21:21:15 +02:00
parent 7a21f1330e
commit a80d3ecc77
3 changed files with 48 additions and 3 deletions
@@ -0,0 +1,11 @@
--- a/mic-paren.el
+++ b/mic-paren.el
@@ -332,6 +332,8 @@
(defvar mic-paren-version "3.15"
"Version of mic-paren.")
+(require 'cl-lib)
+
;;; ======================================================================
;; Compatibility stuff
;; BLOB to make custom stuff work even without customize
@@ -0,0 +1,29 @@
--- a/mic-paren.el
+++ b/mic-paren.el
@@ -619,7 +619,7 @@
Do NOT set this variable directly but use
`paren-toggle-matching-quoted-paren' to activate/deactivate/toggle this
feature! The best method is to do this in a mode hook, e.g.:
-\(add-hook \'LaTeX-mode-hook
+\(add-hook \\='LaTeX-mode-hook
\(function \(lambda \(\)
\(paren-toggle-matching-quoted-paren 1\)\)\)\)")
@@ -633,7 +633,7 @@
Do NOT set this variable directly but use
`paren-toggle-matching-paired-delimiter' to activate/deactivate/toggle
this feature! The best method is to do this in a mode hook, e.g.:
-\(add-hook \'LaTeX-mode-hook
+\(add-hook \\='LaTeX-mode-hook
\(function \(lambda \(\)
\(paren-toggle-matching-paired-delimiter 1\)\)\)\)")
@@ -666,7 +666,7 @@
Do NOT set this variable directly but use `paren-toggle-open-paren-context'
to change the value of this option! The best method is to do this in a
mode hook, e.g.:
-\(add-hook \'c-common-mode-hook
+\(add-hook \\='c-common-mode-hook
\(function \(lambda \(\)
\(paren-toggle-open-paren-context 1\)\)\)\)")
@@ -1,12 +1,12 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit elisp
DESCRIPTION="Advanced highlighting of matching parentheses"
HOMEPAGE="https://www.gnuvola.org/software/j/mic-paren/
HOMEPAGE="https://web.archive.org/web/20211016050703/https://www.gnuvola.org/software/j/mic-paren/
https://www.emacswiki.org/emacs/MicParen"
# taken from http://www.gnuvola.org/software/j/mic-paren/mic-paren.el
SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.el.xz"
@@ -15,4 +15,9 @@ LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
PATCHES=(
"${FILESDIR}"/${P}-quoting.patch
"${FILESDIR}"/${P}-cl-lib.patch
)
SITEFILE="50${PN}-gentoo.el"