diff options
author | Alex Kost <alezost@gmail.com> | 2016-04-10 14:05:00 +0300 |
---|---|---|
committer | Alex Kost <alezost@gmail.com> | 2016-04-10 14:05:00 +0300 |
commit | 76ef0bed8ee99ea0050240e4474fde3845826d96 (patch) | |
tree | fe093ef839dc4fcc76ed1360e279a5a28eea7eef | |
parent | 7626c49bde93463e2a509ac31f8dbc8feed3d973 (diff) | |
download | geiser-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'.
-rw-r--r-- | elisp/geiser-connection.el | 21 |
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: |