branch: externals/jinx
commit 8432ec301d62d5acf4558cd5ac5d518be7808af2
Author: Daniel Mendler <m...@daniel-mendler.de>
Commit: Daniel Mendler <m...@daniel-mendler.de>

    Fix: Ensure that `eval' local variable enabling `jinx-mode' works
    
    ;; -*- eval: (jinx-mode 1); -*-
---
 CHANGELOG.org | 1 +
 jinx.el       | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.org b/CHANGELOG.org
index 0e91f63a5b..8ae8db2156 100644
--- a/CHANGELOG.org
+++ b/CHANGELOG.org
@@ -6,6 +6,7 @@
 
 - Bugfix: ~jinx-correct~ - Make sure that words are saved without text 
properties
   in the file-local variable ~jinx-local-words~.
+- Bugfix: Ensure that ~eval~ local variable enabling ~jinx-mode~ works.
 - ~jinx-correct~: If a region is marked, call ~jinx-correct-all~ and restrict
   corrections to the marked region.
 - ~jinx-exclude-faces~, ~jinx-include-faces~, ~jinx-exclude-regexps~: Support 
mode
diff --git a/jinx.el b/jinx.el
index b379b76e1c..aea3d1b388 100644
--- a/jinx.el
+++ b/jinx.el
@@ -1037,7 +1037,7 @@ This command dispatches to the following commands:
       (jinx-mode -1)))
    (jinx-mode
     (jinx--load-module)
-    (let ((enable-local-variables :safe))
+    (let ((enable-local-variables :safe) (enable-local-eval nil))
       (hack-local-variables 'ignore-mode))
     (jinx--get-org-language)
     (setq jinx--exclude-regexp

Reply via email to