branch: elpa/eat
commit 64dcbd2c072a601dd9d152324cb4c5632b06741d
Author: Akib Azmain Turja <a...@disroot.org>
Commit: Akib Azmain Turja <a...@disroot.org>

    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 8b17743906..8270f6fb25 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

Reply via email to