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

    jinx--save-dir: Do not switch to .dir-locals.el (Fix #236)
    
    Note that the file .dir-locals.el is not saved automatically.
---
 jinx.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/jinx.el b/jinx.el
index e97a50b8c2..4545060047 100644
--- a/jinx.el
+++ b/jinx.el
@@ -957,7 +957,8 @@ action KEY."
                      (declare-function project-root "project")
                      (project-root proj))
                    default-directory)))
-          (add-dir-local-variable nil 'jinx-dir-local-words 
jinx-dir-local-words)))
+          (save-window-excursion
+            (add-dir-local-variable nil 'jinx-dir-local-words 
jinx-dir-local-words))))
     (list key word "Directory")))
 
 (defun jinx--save-session (save key word)

Reply via email to