From 84d451a9b42e8725ae72621f03c611358357a184 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 14 Jan 2015 21:10:13 +0900 Subject: [PATCH] Add emacs.el syntax check --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 68c38b2..4317f2c 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ check: test check-syntax: test-syntax tests = test-el -test: $(tests) test-syntax +test: test-syntax $(tests) test_syntaxes = test-syntax-el test-syntax-sh test-syntax: $(test_syntaxes) @@ -110,3 +110,12 @@ test-syntax-sh: $(test_syntax_shs) $(test_syntax_shs): test-syntax-%: % sh -ec 'for sh in $(shrc_loadables); do $$sh -n $<; done' + + +test_syntax_els = test-syntax-emacs.el +test-syntax-el: $(test_syntax_els) +.PHONY: $(test_syntax_els) + +$(test_syntax_els): test-syntax-%: % + $(emacs) -q --debug-init --batch \ + --eval '(with-temp-buffer(emacs-lisp-mode)(insert-file-contents "$<")(check-parens))' --kill