branch: externals/jinx
commit d4c67d28578e0493f90786a1bf0c5fb4cf12ba82
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>

    Fix jinx-mode reentrancy issue
---
 jinx.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/jinx.el b/jinx.el
index 140cd5fb5a..b70fb20333 100644
--- a/jinx.el
+++ b/jinx.el
@@ -1056,7 +1056,10 @@ This command dispatches to the following commands:
       (jinx-mode -1)))
    (jinx-mode
     (jinx--load-module)
-    (let ((enable-local-variables :safe) (enable-local-eval nil))
+    (cl-letf* ((enable-local-variables :safe)
+               (enable-local-eval nil)
+               ;; Fix reentrancy problem (gh:minad/jinx#158)
+               ((symbol-function #'jinx-mode) #'ignore))
       (hack-local-variables 'ignore-mode))
     (jinx--get-org-language)
     (setq jinx--exclude-regexp

Reply via email to