Fix interactive `plantuml-set-exec-mode`

Fixes #97
This commit is contained in:
Carlo Sciolla 2019-08-03 15:47:00 +02:00
parent e9c8e76ff2
commit 15ced4ae26
No known key found for this signature in database
GPG Key ID: BA5D71E6F3C580C1
1 changed files with 7 additions and 7 deletions

View File

@ -165,13 +165,13 @@
"Set the execution mode MODE for PlantUML."
(interactive (let* ((completion-ignore-case t)
(supported-modes '("jar" "server")))
(completing-read (format "Exec mode [%s]: " plantuml-exec-mode)
supported-modes
nil
t
nil
nil
plantuml-exec-mode)))
(list (completing-read (format "Exec mode [%s]: " plantuml-exec-mode)
supported-modes
nil
t
nil
nil
plantuml-exec-mode))))
(if (member mode '("jar" "server"))
(setq plantuml-exec-mode (intern mode))
(error (concat "Unsupported mode:" mode))))