diff options
-rw-r--r-- | app-emacs/rnc-mode/files/rnc-mode-1.0.6-flymake.patch | 16 | ||||
-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 |