From df46435ba988db5573a5e27458b76d4c0d7286ee Mon Sep 17 00:00:00 2001 From: Carlo Sciolla Date: Fri, 14 Oct 2016 21:27:20 +0200 Subject: [PATCH] #26 Removed warning from init --- plantuml-mode.el | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/plantuml-mode.el b/plantuml-mode.el index 65bcad9..a9d5c50 100644 --- a/plantuml-mode.el +++ b/plantuml-mode.el @@ -122,7 +122,6 @@ (defun plantuml-init () "Initialize the keywords or builtins from the cmdline language output." - (display-warning :warning "`plantuml-mode' is deprecated in favor of `plantuml-mode', make sure to update your configuration") (unless (file-exists-p plantuml-jar-path) (error "Could not find plantuml.jar at %s" plantuml-jar-path)) (with-temp-buffer @@ -348,5 +347,15 @@ Shortcuts Command Name ; Run hooks: (run-mode-hooks 'plantuml-mode-hook)) +(defun plantuml-deprecation-warning () + "Warns the user about the deprecation of the `puml-mode' project." + (if (featurep 'puml-mode) + (display-warning :warning + "`puml-mode' is now deprecated and no longer updated, but it's still present in your system.\ +You should move your configuration to use `plantuml-mode'. See https://github.com/sytac/plantuml-mode. \ +See more at https://github.com/skuro/puml-mode/issues/26"))) + +(add-hook 'plantuml-mode-hook 'plantuml-deprecation-warning) + (provide 'plantuml-mode) ;;; plantuml-mode.el ends here