Only WARN if ~/Development/Sandbox/puml-mode is actually loaded

This commit is contained in:
Carlo Sciolla 2016-10-14 15:50:29 +02:00
parent 6851409597
commit a15849e4ae
1 changed files with 3 additions and 2 deletions

View File

@ -308,8 +308,9 @@ Shortcuts Command Name
(defun puml-deprecation-warning ()
"Warns the user about the deprecation of the `puml-mode' project."
(display-warning :warning
"`puml-mode' is now deprecated and no longer updated, you should move your configuration to use `plantuml-mode'. See https://github.com/sytac/plantuml-mode."))
(if (featurep 'puml-mode)
(display-warning :warning
"`puml-mode' is now deprecated and no longer updated, you should move your configuration to use `plantuml-mode'. See https://github.com/sytac/plantuml-mode.")))
(add-hook 'puml-mode-hook 'puml-deprecation-warning)