Skip to content

Commit

Permalink
Remove unneeded SILENCE-SOME-DEPRECATION
Browse files Browse the repository at this point in the history
This was useful for Emacs 26.0: Emacs 26.1 properly defines when-let
and if-let.
  • Loading branch information
DamienCassou authored and NicolasPetton committed Jun 14, 2019
1 parent 35c4d1b commit 3a657e0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ BATCH = $(EMACSBIN) -Q --batch $(LOAD_PATH) \
--eval "(add-to-list 'package-archives '(\"melpa-stable\" . \"http://stable.melpa.org/packages/\"))" \
--funcall package-initialize

SILENCE-SOME-DEPRECATION = --load subr-x
SILENCE-SOME-DEPRECATION += --eval "(put 'when-let 'byte-obsolete-info nil)"
SILENCE-SOME-DEPRECATION += --eval "(put 'if-let 'byte-obsolete-info nil)"

.PHONY: all clean dependencies check test test-elisp test-javascript lint lint-elisp lint-javascript

all: check
Expand All @@ -38,7 +34,7 @@ check: test lint
test: test-elisp test-javascript

test-elisp:
TRAVIS=true $(BATCH) $(SILENCE-SOME-DEPRECATION) \
TRAVIS=true $(BATCH) \
-l buttercup \
-l test/test-helper.el \
-f buttercup-run-discover
Expand All @@ -50,7 +46,7 @@ lint: lint-elisp lint-javascript

lint-elisp:
# Byte compile all and stop on any warning or error
$(BATCH) $(SILENCE-SOME-DEPRECATION) \
$(BATCH) \
--eval "(setq byte-compile-error-on-warn t)" \
-f batch-byte-compile ${SRCS}

Expand Down

0 comments on commit 3a657e0

Please sign in to comment.