From 4308710de811e3b4e2fb47f9024439df03e96b90 Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 7 Nov 2024 18:01:13 +0000 Subject: {if,when}-let deprecation in emacs 31 --- attic/elisp/misc.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'attic/elisp/misc.el') diff --git a/attic/elisp/misc.el b/attic/elisp/misc.el index 2f1bcb0..4cae427 100644 --- a/attic/elisp/misc.el +++ b/attic/elisp/misc.el @@ -25,7 +25,7 @@ ;; (defun jao-erlang-compile (arg) ;; (interactive "P") ;; (save-some-buffers) - ;; (when-let ((mname (jao-erlang-current-module))) + ;; (when-let* ((mname (jao-erlang-current-module))) ;; (with-current-buffer (jao-vterm-repl) ;; (vterm-send-string (format "c(%s).\n" mname)) ;; (sit-for 0) @@ -600,7 +600,7 @@ ;;; eldoc for magit status/log buffers (defun jao-magit-eldoc-for-commit (_callback) - (when-let ((commit (magit-commit-at-point))) + (when-let* ((commit (magit-commit-at-point))) (with-temp-buffer (magit-git-insert "show" "--format=format:%an <%ae>, %ar" @@ -908,7 +908,7 @@ (res (funcall fn))) (while (and res tags) (setq res (seq-intersection res (funcall fn)))) (unless res (user-error "No notes found")) - (when-let (f (completing-read "Select file: " (mapcar #'car res))) + (when-let* ((f (completing-read "Select file: " (mapcar #'car res)))) (find-file (cadr (assoc f res)))))) (defun jao-sway-run-or-focus-tidal () -- cgit v1.2.3