summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2024-10-23 11:21:45 +0200
committerUlrich Müller <ulm@gentoo.org>2024-10-23 11:22:54 +0200
commitb2a923db3e453eb671bf71125f228a46b1c86ebc (patch)
tree3b6fa5f1369e5a346950454d0a8910d87ac30f70 /app-emacs
parentgui-libs/egl-wayland: drop 1.1.16 (diff)
downloadgentoo-b2a923db3e453eb671bf71125f228a46b1c86ebc.tar.gz
gentoo-b2a923db3e453eb671bf71125f228a46b1c86ebc.tar.bz2
gentoo-b2a923db3e453eb671bf71125f228a46b1c86ebc.zip
app-emacs/rnc-mode: Suppress warning about missing jing
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'app-emacs')
-rw-r--r--app-emacs/rnc-mode/files/rnc-mode-1.0.6-flymake.patch16
-rw-r--r--app-emacs/rnc-mode/rnc-mode-1.0.6-r2.ebuild (renamed from app-emacs/rnc-mode/rnc-mode-1.0.6-r1.ebuild)0
2 files changed, 15 insertions, 1 deletions
diff --git a/app-emacs/rnc-mode/files/rnc-mode-1.0.6-flymake.patch b/app-emacs/rnc-mode/files/rnc-mode-1.0.6-flymake.patch
index 6904a063c682..641fc7fb56fb 100644
--- a/app-emacs/rnc-mode/files/rnc-mode-1.0.6-flymake.patch
+++ b/app-emacs/rnc-mode/files/rnc-mode-1.0.6-flymake.patch
@@ -1,4 +1,5 @@
-Update function and variable names that are obsolete since Emacs 26
+Update function and variable names that are obsolete since Emacs 26.
+Don't try to configure flymake without a jing jar file.
--- rnc-mode-1.0.6/rnc-mode.el
+++ rnc-mode-1.0.6/rnc-mode.el
@@ -28,3 +29,16 @@ Update function and variable names that are obsolete since Emacs 26
(message "RNC flymake not enabled because the Jing jar could not be found")))
;;; Imenu support
+@@ -329,8 +329,9 @@
+ (modify-syntax-entry ?_ "w " rnc-syntax-table)
+ (set-syntax-table rnc-syntax-table))
+
+- (rnc-configure-flymake)
+- (when rnc-enable-flymake
+- (flymake-mode))
++ (when rnc-jing-jar-file
++ (rnc-configure-flymake)
++ (when rnc-enable-flymake
++ (flymake-mode)))
+ (when rnc-enable-imenu
+ (rnc-configure-imenu))
diff --git a/app-emacs/rnc-mode/rnc-mode-1.0.6-r1.ebuild b/app-emacs/rnc-mode/rnc-mode-1.0.6-r2.ebuild
index 820aaf70cc00..820aaf70cc00 100644
--- a/app-emacs/rnc-mode/rnc-mode-1.0.6-r1.ebuild
+++ b/app-emacs/rnc-mode/rnc-mode-1.0.6-r2.ebuild