diff options
author | jao <jao@gnu.org> | 2024-11-07 18:01:13 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2024-11-07 18:01:13 +0000 |
commit | 4308710de811e3b4e2fb47f9024439df03e96b90 (patch) | |
tree | fb719224f99c57d6b2b9b0bd4257208f7d038dc4 /attic/elisp/misc.el | |
parent | 5efb9fee7e72c8c514d08940e98f7eb24b90c374 (diff) | |
download | elibs-4308710de811e3b4e2fb47f9024439df03e96b90.tar.gz elibs-4308710de811e3b4e2fb47f9024439df03e96b90.tar.bz2 |
{if,when}-let deprecation in emacs 31
Diffstat (limited to 'attic/elisp/misc.el')
-rw-r--r-- | attic/elisp/misc.el | 6 |
1 files changed, 3 insertions, 3 deletions
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 () |