[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-clojure 7b377a4 013/313: Drop redundant function
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-clojure 7b377a4 013/313: Drop redundant function |
Date: |
Wed, 11 Aug 2021 09:59:37 -0400 (EDT) |
branch: elpa/inf-clojure
commit 7b377a457f02e0943c67bd06face4dae120cb66a
Author: Bozhidar Batsov <bozhidar@tradeo.com>
Commit: Bozhidar Batsov <bozhidar@tradeo.com>
Drop redundant function
---
inf-clojure.el | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/inf-clojure.el b/inf-clojure.el
index 0831070..3a0f3c1 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -287,24 +287,16 @@ Prefix argument means switch to the Clojure buffer
afterwards."
"Send the string to the inferior Clojure process to be executed."
(comint-send-string (inf-clojure-proc) (concat string "\n")))
-(defun clojure-do-defun (do-string do-region)
+(defun clojure-eval-defun (&optional and-go)
"Send the current defun to the inferior Clojure process.
-The actually processing is done by `do-string' and `do-region'
- which determine whether the code is compiled before evaluation.
-DEFVAR forms reset the variables to the init values."
+Prefix argument means switch to the Clojure buffer afterwards."
+ (interactive "P")
(save-excursion
(end-of-defun)
(skip-chars-backward " \t\n\r\f") ; Makes allegro happy
(let ((end (point)) (case-fold-search t))
(beginning-of-defun)
- (funcall do-region (point) end))))
-
-(defun clojure-eval-defun (&optional and-go)
- "Send the current defun to the inferior Clojure process.
-DEFVAR forms reset the variables to the init values.
-Prefix argument means switch to the Clojure buffer afterwards."
- (interactive "P")
- (clojure-do-defun 'clojure-eval-string 'clojure-eval-region)
+ (clojure-eval-region (point) end)))
(if and-go (switch-to-clojure t)))
(defun clojure-eval-last-sexp (&optional and-go)
- [nongnu] elpa/inf-clojure 4721b8c 011/313: Fix a docstring, (continued)
- [nongnu] elpa/inf-clojure 4721b8c 011/313: Fix a docstring, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 25aee78 006/313: Use clojure-mode-variables instead of lisp-mode-variables, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure c66c08f 003/313: Use lexical binding, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 1f6f949 019/313: Add command inf-clojure-set-ns, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure ca57a86 020/313: [Fix #3] Remove automatic addition of inf-clojure-minor-mode to clojure-mode-hook, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 7272678 007/313: clojure -> Clojure, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 1392907 015/313: Add command clojure-show-ns-vars, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 1dfc5f7 023/313: Depend of clojure-mode 4.0, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 5debecc 024/313: Release 1.0, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure b61efe1 008/313: Make the completion command customizable, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 7b377a4 013/313: Drop redundant function,
ELPA Syncer <=
- [nongnu] elpa/inf-clojure f65ce48 021/313: Enable completion in inf-clojure-minor-mode, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 7b9e0d1 029/313: Code style, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure ef8c830 030/313: Use #' where appropriate, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure b897bb8 031/313: Show arglist in the minibuffer for better usability, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 89035ee 033/313: Merge pull request #9 from mavbozo/ms-windows-hang, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure dd2b4fc 038/313: Code style, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 898a319 041/313: Improve the README a bit, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure ff20773 044/313: Release 1.2.0, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 0652692 012/313: Preprocess the output from interactive commands, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 85d3d41 014/313: Extract a chomp helper, ELPA Syncer, 2021/08/11