[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-clojure 7aa0299 062/313: Refactoring
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-clojure 7aa0299 062/313: Refactoring |
Date: |
Wed, 11 Aug 2021 09:59:47 -0400 (EDT) |
branch: elpa/inf-clojure
commit 7aa02995c79aa53d3adf399bd3324d42a549616d
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Syohei YOSHIDA <syohex@gmail.com>
Refactoring
- Pass and-go parameter to inf-clojure-eval-region
- Use point-min and point-max instead of beginning-of-buffer and
end-of-buffer
---
inf-clojure.el | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/inf-clojure.el b/inf-clojure.el
index e6bdc7f..e48132d 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -352,19 +352,16 @@ Prefix argument AND-GO means switch to the Clojure buffer
afterwards."
(end-of-defun)
(let ((end (point)) (case-fold-search t))
(beginning-of-defun)
- (inf-clojure-eval-region (point) end)))
- (if and-go (inf-clojure-switch-to-repl t)))
+ (inf-clojure-eval-region (point) end and-go))))
(defun inf-clojure-eval-buffer (&optional and-go)
"Send the current buffer to the inferior Clojure process.
Prefix argument AND-GO means switch to the Clojure buffer afterwards."
(interactive "P")
(save-excursion
- (end-of-buffer)
- (let ((end (point)) (case-fold-search t))
- (beginning-of-buffer)
- (inf-clojure-eval-region (point) end)))
- (if and-go (inf-clojure-switch-to-repl t)))
+ (widen)
+ (let ((case-fold-search t))
+ (inf-clojure-eval-region (point-min) (point-max) and-go))))
(defun inf-clojure-eval-last-sexp (&optional and-go)
"Send the previous sexp to the inferior Clojure process.
- [nongnu] elpa/inf-clojure e10ac48 132/313: Improve string sanitation and arglists response parsing, (continued)
- [nongnu] elpa/inf-clojure e10ac48 132/313: Improve string sanitation and arglists response parsing, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 4e80276 126/313: [Fix #56] Add special handling for Planck REPLS (#66), ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 582601e 134/313: Fix missing inf-clojure-set-ns-form-lumo, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 6bd986d 146/313: Fix typo in docstring, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 339093c 056/313: Replace multiple newlines by single one or add one, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 78d2ab2 034/313: Add a command for clearing the REPL buffer, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure c9f2f63 036/313: Fix eval defun keybinding, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 75f6fab 039/313: Update copyright years, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 8594a58 042/313: Add new-line mark after inf-clojure-arglist-command, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure d2bedf9 048/313: Fix the installation instructions in the Elisp snippet, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 7aa0299 062/313: Refactoring,
ELPA Syncer <=
- [nongnu] elpa/inf-clojure 64263f7 045/313: Fix a typo, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 8247c43 067/313: Add ElDoc info to README, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 6758a31 069/313: Fix for older Emacs, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 0a7c61b 079/313: Fix a docstring, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 0259801 080/313: Kill a trailing space, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 63c2f9e 082/313: Add possibility to customize more vars, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure d9e4400 087/313: Tweak the README a bit, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 117d8cb 090/313: Bump the clojure-mode and Emacs deps, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure e12db12 091/313: Fix prompt being included in input history, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure e6a4ef3 093/313: Add some handy GitHub templates to improve the contribution process, ELPA Syncer, 2021/08/11