Skip to content

Commit

Permalink
Undeprecate if-let and when-let
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Nov 2, 2024
1 parent cd4bb2b commit d1bee48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions borg.mk
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ EMACS_EXTRA ?=
.FORCE:

SILENCIO += --eval "(progn (require 'gv) (put 'buffer-substring 'byte-obsolete-generalized-variable nil))"
SILENCIO += --eval "(progn \
(put 'if-let 'byte-obsolete-info nil) \
(put 'when-let 'byte-obsolete-info nil))"
SILENCIO += --eval "(define-advice message (:around (fn format &rest args) silencio)\
(unless (or (equal format \"Not registering prefix \\\"%s\\\" from %s. Affects: %S\")\
(ignore-errors (string-match-p \"Scraping files for\" (car args))))\
Expand Down
4 changes: 3 additions & 1 deletion default.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ VERSION ?= $(shell test -e $(TOP).git && git describe --tags --abbrev=0 | cut -c
REVDESC := $(shell test -e $(TOP).git && git describe --tags)

EMACS ?= emacs
EMACS_ARGS ?=
EMACS_ARGS ?= --eval "(progn \
(put 'if-let 'byte-obsolete-info nil) \
(put 'when-let 'byte-obsolete-info nil))"

LOAD_PATH ?= $(addprefix -L ../,$(DEPS))
LOAD_PATH += -L .
Expand Down

0 comments on commit d1bee48

Please sign in to comment.