summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorAlex Kost <alezost@gmail.com>2016-04-10 14:05:00 +0300
committerAlex Kost <alezost@gmail.com>2016-04-10 14:05:00 +0300
commit76ef0bed8ee99ea0050240e4474fde3845826d96 (patch)
treefe093ef839dc4fcc76ed1360e279a5a28eea7eef /elisp
parent7626c49bde93463e2a509ac31f8dbc8feed3d973 (diff)
downloadgeiser-guile-76ef0bed8ee99ea0050240e4474fde3845826d96.tar.gz
geiser-guile-76ef0bed8ee99ea0050240e4474fde3845826d96.tar.bz2
Remove double call in 'geiser-con--connection-add-request'
Avoid calling 'geiser-con--request-string' twice by wrapping it into 'let'.
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-connection.el21
1 files changed, 11 insertions, 10 deletions
diff --git a/elisp/geiser-connection.el b/elisp/geiser-connection.el
index e466cd3..675fb25 100644
--- a/elisp/geiser-connection.el
+++ b/elisp/geiser-connection.el
@@ -228,16 +228,17 @@
(geiser-con--connection-completed con req)))
(defun geiser-con--connection-add-request (c r)
- (geiser-log--info "REQUEST: <%s>: %s"
- (geiser-con--request-id r)
- (geiser-con--request-string r))
- (geiser-con--connection-activate c)
- (tq-enqueue (geiser-con--connection-tq c)
- (concat (geiser-con--request-string r) "\n")
- (geiser-con--connection-eot c)
- r
- 'geiser-con--process-completed-request
- t))
+ (let ((rstr (geiser-con--request-string r)))
+ (geiser-log--info "REQUEST: <%s>: %s"
+ (geiser-con--request-id r)
+ rstr)
+ (geiser-con--connection-activate c)
+ (tq-enqueue (geiser-con--connection-tq c)
+ (concat rstr "\n")
+ (geiser-con--connection-eot c)
+ r
+ 'geiser-con--process-completed-request
+ t)))
;;; Message sending interface: