aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/test-emacs.sh
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2020-02-17 16:42:21 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2020-02-17 16:50:45 +0100
commitedbd054bbe3e36ac5f2957ee498fcfd35389351b (patch)
tree410c108ef596e0ab1536a48fda4f659c9478aa34 /.emacs.d/test-emacs.sh
parent9c7a4dafba5ca5fa9d241dc5ef836de9633c12c1 (diff)
downloaddotfiles-edbd054bbe3e36ac5f2957ee498fcfd35389351b.tar.gz
dotfiles-edbd054bbe3e36ac5f2957ee498fcfd35389351b.zip
emacs: fix for stdlib-changes on elisp-lint
Apparently elisp-lint also requires that stupid `stdlib-changes' file. Let's make it happen for this tool too. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to '.emacs.d/test-emacs.sh')
-rwxr-xr-x.emacs.d/test-emacs.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/.emacs.d/test-emacs.sh b/.emacs.d/test-emacs.sh
index 12a8b70..a8d3d88 100755
--- a/.emacs.d/test-emacs.sh
+++ b/.emacs.d/test-emacs.sh
@@ -18,20 +18,21 @@ LOAD_PATH="-L $(readlink -f -- vendor)"
# shellcheck disable=SC2039
pushd .
+
for i in . lisp; do
cd "$i"
# shellcheck disable=SC2010
# shellcheck disable=SC2035
files="$(ls *.el | grep -v 'custom.el' | grep -v 'abbrevs.el' | grep -v 'lisp-autoloads.el' | grep -v '.emacs.d-autoloads.el' | grep -v 'soria-theme.el' | xargs)"
- # shellcheck disable=SC2086
- ${EMACS:=emacs} -Q --batch ${LOAD_PATH} -l elisp-lint.el -f elisp-lint-files-batch $files
-
# God knows why this is needed, but `package-lint` bails otherwise...
mkdir -p vendor/data
echo "()" > vendor/data/stdlib-changes
# shellcheck disable=SC2086
+ ${EMACS:=emacs} -Q --batch ${LOAD_PATH} -l elisp-lint.el -f elisp-lint-files-batch $files
+
+ # shellcheck disable=SC2086
${EMACS:=emacs} -Q --batch ${LOAD_PATH} -l package-lint.el -f package-lint-batch-and-exit $files
done