From 4ff2e2ac9da81cdc86415687f74ac9a1c94e859f Mon Sep 17 00:00:00 2001 From: Andrey Orst Date: Mon, 2 Sep 2019 15:29:25 +0000 Subject: Set header-line-format only in case when `cond` branch is true --- elisp/geiser-repl.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'elisp') diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el index 014fb74..c589ab3 100644 --- a/elisp/geiser-repl.el +++ b/elisp/geiser-repl.el @@ -384,14 +384,14 @@ module command as a string") (defun geiser-repl--save-remote-data (address) (setq geiser-repl--address address) - (setq header-line-format - (cond ((consp address) + (cond ((consp address) + (setq header-line-format (format "Host: %s Port: %s" (geiser-repl--host) - (geiser-repl--port))) - ((stringp address) - (format "Socket: %s" address)) - (t nil)))) + (geiser-repl--port)))) + ((stringp address) + (setq header-line-format + (format "Socket: %s" address))))) (defun geiser-repl--fontify-output-region (beg end) "Apply highlighting to a REPL output region." -- cgit v1.2.3