summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorAndrey Orst <andreyorst@gmail.com>2019-09-02 15:29:25 +0000
committerAndrey Orst <andreyorst@gmail.com>2019-09-02 15:29:25 +0000
commit4ff2e2ac9da81cdc86415687f74ac9a1c94e859f (patch)
tree1a63eabef22838ae46ff24e87d5907f6446eacd0 /elisp
parentd7bcfde6303b420ca76d9364c6e8f2c6827112e6 (diff)
downloadgeiser-guile-4ff2e2ac9da81cdc86415687f74ac9a1c94e859f.tar.gz
geiser-guile-4ff2e2ac9da81cdc86415687f74ac9a1c94e859f.tar.bz2
Set header-line-format only in case when `cond` branch is true
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-repl.el12
1 files changed, 6 insertions, 6 deletions
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."