commit: b2a923db3e453eb671bf71125f228a46b1c86ebc
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 23 09:21:45 2024 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Wed Oct 23 09:22:54 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2a923db
app-emacs/rnc-mode: Suppress warning about missing jing
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
app-emacs/rnc-mode/files/rnc-mode-1.0.6-flymake.patch | 16 +++++++++++++++-
...rnc-mode-1.0.6-r1.ebuild => rnc-mode-1.0.6-r2.ebuild} | 0
2 files changed, 15 insertions(+), 1 deletion(-)
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
similarity index 100%
rename from app-emacs/rnc-mode/rnc-mode-1.0.6-r1.ebuild
rename to app-emacs/rnc-mode/rnc-mode-1.0.6-r2.ebuild