#51 Evaluate the `plantuml-java-args` defcustom at compile time

`defcustom`s are not executed at byte-compile time. Wrapping the
`defcustom` in an `eval-and-compile` form does the trick.
This commit is contained in:
Carlo Sciolla 2017-08-19 19:20:04 +02:00
parent 5c57f05086
commit da9d39c947
No known key found for this signature in database
GPG Key ID: BA5D71E6F3C580C1
3 changed files with 4 additions and 5 deletions

View File

@ -9,5 +9,3 @@ before_install:
script:
- emacs --version
- make test
- mkdir "$(cask package-directory)/../testing"
- emacs -q --batch --load test/resources/init.el

View File

@ -18,6 +18,6 @@ install:
clean:
rm -Rf .emacs.d
rm -Rf ${CASK_DIR}/../testing
rm -Rf .cask
.PHONY: all test unit ecukes install

View File

@ -77,8 +77,9 @@
(defcustom plantuml-java-command "java"
"The java command used to execute PlantUML.")
(defcustom plantuml-java-args '("-Djava.awt.headless=true" "-jar")
"The parameters passed to `plantuml-java-command' when executing PlantUML.")
(eval-and-compile
(defcustom plantuml-java-args '("-Djava.awt.headless=true" "-jar")
"The parameters passed to `plantuml-java-command' when executing PlantUML."))
(defcustom plantuml-suppress-deprecation-warning t
"To silence the deprecation warning when `puml-mode' is found upon loading.")