File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -352,19 +352,16 @@ Prefix argument AND-GO means switch to the Clojure buffer afterwards."
352
352
(end-of-defun )
353
353
(let ((end (point )) (case-fold-search t ))
354
354
(beginning-of-defun )
355
- (inf-clojure-eval-region (point ) end)))
356
- (if and-go (inf-clojure-switch-to-repl t )))
355
+ (inf-clojure-eval-region (point ) end and-go))))
357
356
358
357
(defun inf-clojure-eval-buffer (&optional and-go )
359
358
" Send the current buffer to the inferior Clojure process.
360
359
Prefix argument AND-GO means switch to the Clojure buffer afterwards."
361
360
(interactive " P" )
362
361
(save-excursion
363
- (end-of-buffer )
364
- (let ((end (point )) (case-fold-search t ))
365
- (beginning-of-buffer )
366
- (inf-clojure-eval-region (point ) end)))
367
- (if and-go (inf-clojure-switch-to-repl t )))
362
+ (widen )
363
+ (let ((case-fold-search t ))
364
+ (inf-clojure-eval-region (point-min ) (point-max ) and-go))))
368
365
369
366
(defun inf-clojure-eval-last-sexp (&optional and-go )
370
367
" Send the previous sexp to the inferior Clojure process.
You can’t perform that action at this time.
0 commit comments