From 76ef0bed8ee99ea0050240e4474fde3845826d96 Mon Sep 17 00:00:00 2001 From: Alex Kost Date: Sun, 10 Apr 2016 14:05:00 +0300 Subject: Remove double call in 'geiser-con--connection-add-request' Avoid calling 'geiser-con--request-string' twice by wrapping it into 'let'. --- elisp/geiser-connection.el | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'elisp') 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: -- cgit v1.2.3