diff --git a/clojure-repl.el b/clojure-repl.el index 83815ad..e60f788 100644 --- a/clojure-repl.el +++ b/clojure-repl.el @@ -4,7 +4,7 @@ ;; Author: Valery Kocubinsky ;; URL: https://github.com/vkocubinsky/clojure-repl -;; Version: 0.3.0 +;; Version: 0.4.0 ;; Package-Requires: ((emacs "30.1") (clojure-mode "5.23.0")) ;; Keywords: clojure, languages, processes, lisp @@ -616,15 +616,16 @@ process buffer for a list of commands.)" (defun clojure-repl--auto-load () - (when (not (and (clojure-repl-smart-auto-load) (clojure-repl--the-same-ns-p))) - (when (and clojure-repl-auto-load (derived-mode-p 'clojure-mode)) + (when (and clojure-repl-auto-load (derived-mode-p 'clojure-mode) + (not (and clojure-repl-smart-auto-load (clojure-repl--the-same-ns-p))) + ) (save-excursion (let* ((proc (clojure-repl--repl-process)) (ns (clojure-find-ns))) (unless ns (user-error "No namespace found in current buffer")) (clojure-repl--eval-text proc (format clojure-repl-auto-load-command ns (if clojure-repl-auto-repl "true" "false")) t))) -))) +)) (defun clojure-repl-eval-region () "Execute region."