From bf6ec4c076361a86ebf4e0c8959b10f15b2e9323 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KARASZI=20Istv=C3=A1n?= Date: Tue, 22 Sep 2026 19:46:22 +0200 Subject: [PATCH] Guard the evil key binding with fboundp The byte-compiler reads fboundp, so the declare-function is not necessary. --- magit-standup.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/magit-standup.el b/magit-standup.el index 9f1547d..847f710 100644 --- a/magit-standup.el +++ b/magit-standup.el @@ -43,8 +43,6 @@ (require 'magit) (require 'transient) -(declare-function evil-local-set-key "evil-core" (state key def)) - (defgroup magit-standup nil "Collect recent git commits for standup notes." :group 'magit @@ -271,7 +269,8 @@ REPO-COMMITS is an alist as returned by `magit-standup--gather'." (goto-char (point-min)) (org-mode) (read-only-mode 1) - (when (bound-and-true-p evil-mode) + (when (and (bound-and-true-p evil-mode) + (fboundp 'evil-local-set-key)) (evil-local-set-key 'normal "q" #'magit-standup-quit))) (pop-to-buffer buf)))