summaryrefslogtreecommitdiff
path: root/cider-repl.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2016-04-27 20:31:46 -0300
committerArtur Malabarba <bruce.connor.am@gmail.com>2016-04-27 20:31:46 -0300
commita8002918117c2d699a47ffaa922a08b6adc358f0 (patch)
treed828773a76df7102ba21c178349d230963f52c44 /cider-repl.el
parent2bee5904066e18ce3ae165b2f90a611acb1a1e3d (diff)
Improve the warning buttons
Diffstat (limited to 'cider-repl.el')
-rw-r--r--cider-repl.el9
1 files changed, 4 insertions, 5 deletions
diff --git a/cider-repl.el b/cider-repl.el
index b514b9c0..f774a758 100644
--- a/cider-repl.el
+++ b/cider-repl.el
@@ -565,12 +565,11 @@ If BOL is non-nil insert at the beginning of line."
"Emit a warning to the REPL and link to the online manual.
SECTION-ID is the section to link to. The link is added on the last line.
FORMAT is a format string to compile with ARGS and display on the REPL."
- (let ((message (split-string (apply #'format format args) "\n")))
+ (let ((message (apply #'format format args)))
(cider-repl-emit-interactive-stderr
- (concat "WARNING: "
- (mapconcat #'identity (butlast message) "\n ")
- (when (cdr message) "\n ")
- (cider--manual-button (car (last message)) section-id)))))
+ (concat "WARNING: " message "\n "
+ (cider--manual-button "More information" section-id)
+ "."))))
(defun cider-repl--emit-output (buffer string face &optional bol)
"Using BUFFER, emit STRING font-locked with FACE.