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 --- lib/eos/jao-eshell-here.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/eos/jao-eshell-here.el') diff --git a/lib/eos/jao-eshell-here.el b/lib/eos/jao-eshell-here.el index 54d58f0..ad7805f 100644 --- a/lib/eos/jao-eshell-here.el +++ b/lib/eos/jao-eshell-here.el @@ -1,6 +1,6 @@ ;;; jao-eshell-here.el --- Easy opening of eshell buffers -*- lexical-binding: t; -*- -;; Copyright (C) 2021, 2023 jao +;; Copyright (C) 2021, 2023, 2024 jao ;; Author: jao ;; Keywords: eshell @@ -33,8 +33,8 @@ "Value to use for `display-buffer-alist' when displaying the eshell buffer.") (defun jao-eshell-here--find-window (b) - (when-let (w (seq-find (lambda (w) (eq (window-buffer w) b)) - (window-list))) + (when-let* ((w (seq-find (lambda (w) (eq (window-buffer w) b)) + (window-list)))) (select-window w))) (defun jao-eshell-here--frame-buffer (&optional b) -- cgit v1.2.3