From da9d39c94760548746369161ec13d96934a8d5e0 Mon Sep 17 00:00:00 2001 From: Carlo Sciolla Date: Sat, 19 Aug 2017 19:20:04 +0200 Subject: [PATCH] #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. --- .travis.yml | 2 -- Makefile | 2 +- plantuml-mode.el | 5 +++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 38393d5..6ca85a0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,5 +9,3 @@ before_install: script: - emacs --version - make test - - mkdir "$(cask package-directory)/../testing" - - emacs -q --batch --load test/resources/init.el diff --git a/Makefile b/Makefile index de3bd5a..e03d2a2 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,6 @@ install: clean: rm -Rf .emacs.d - rm -Rf ${CASK_DIR}/../testing + rm -Rf .cask .PHONY: all test unit ecukes install diff --git a/plantuml-mode.el b/plantuml-mode.el index e24b1ca..eb75426 100644 --- a/plantuml-mode.el +++ b/plantuml-mode.el @@ -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.")