From 64dcbd2c072a601dd9d152324cb4c5632b06741d Mon Sep 17 00:00:00 2001 From: Akib Azmain Turja Date: Mon, 3 Jul 2023 19:48:35 +0600 Subject: [PATCH] Fix recursive load error * eat.el (eat-semi-char-non-bound-keys) (eat-eshell-semi-char-non-bound-keys): Let-bind 'after-load-alist' and 'after-load-functions' before reloading Eat. --- eat.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/eat.el b/eat.el index 8b17743..8270f6f 100644 --- a/eat.el +++ b/eat.el @@ -221,7 +221,9 @@ make the changes effective." (when (and (not eat--being-loaded) (boundp 'eat-semi-char-mode-map)) (eat-update-semi-char-mode-map) - (eat-reload))) + (let ((after-load-alist nil) + (after-load-functions nil)) + (eat-reload)))) :group 'eat-ui) (defcustom eat-eshell-semi-char-non-bound-keys @@ -267,7 +269,9 @@ Eat to make the changes effective." (when (and (not eat--being-loaded) (boundp 'eat-eshell-semi-char-mode-map)) (eat-eshell-update-semi-char-mode-map) - (eat-reload))) + (let ((after-load-alist nil) + (after-load-functions nil)) + (eat-reload)))) :group 'eat-eshell) (defcustom eat-enable-directory-tracking t