diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2026-02-17 22:04:34 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2026-02-17 22:04:34 +0100 |
| commit | de61773fc378d40f478f8daf67543a51889ecded (patch) | |
| tree | 5140e193052020252bef2142fa48c29931830322 | |
| parent | 2a89ba755b0459914a44b1ffa793e57f759a5b85 (diff) | |
Begrudgingly stop using wrongly deprecated when-let
| -rw-r--r-- | Makefile | 4 | ||||
| -rw-r--r-- | llama.el | 7 |
2 files changed, 5 insertions, 6 deletions
@@ -16,9 +16,7 @@ LOAD_PATH ?= $(addprefix -L ../,$(DEPS)) LOAD_PATH += -L . EMACS ?= emacs -EMACS_ARGS ?= --eval "(progn \ - (put 'if-let 'byte-obsolete-info nil) \ - (put 'when-let 'byte-obsolete-info nil))" +EMACS_ARGS ?= EMACS_Q_ARG ?= -Q EMACS_BATCH ?= $(EMACS) $(EMACS_Q_ARG) --batch $(EMACS_ARGS) $(LOAD_PATH) @@ -354,9 +354,10 @@ expansion, and the looks of this face should hint at that.") (prog1 t (save-excursion (goto-char (match-beginning 0)) - (when-let ((_(save-match-data (not (nth 8 (syntax-ppss))))) - (expr (ignore-errors - (read-positioning-symbols (current-buffer))))) + (when-let* + ((_(save-match-data (not (nth 8 (syntax-ppss))))) + (expr (ignore-errors + (read-positioning-symbols (current-buffer))))) (put-text-property (match-beginning 0) (point) 'font-lock-multiline t) (llama--fontify (cdr expr) nil nil t))))) |
