@@ -304,10 +304,10 @@ Note that, while POINT can be a number, it's preferable to be a marker, as
304
304
that will better handle some corner cases where the original buffer is not
305
305
focused."
306
306
(cl-assert (symbolp value-type)) ; ; We assert because for avoiding confusion with the optional args.
307
- (let* ((font-value (if cider-result-use-clojure-font-lock
307
+ (let* ((value (string-trim-right value))
308
+ (font-value (if cider-result-use-clojure-font-lock
308
309
(cider-font-lock-as-clojure value)
309
310
value))
310
- (font-value (string-trim-right font-value))
311
311
(used-overlay (when (and point
312
312
cider-use-overlays
313
313
(if (equal 'error value-type)
@@ -316,10 +316,15 @@ focused."
316
316
(cider--make-result-overlay font-value
317
317
:where point
318
318
:duration cider-eval-result-duration
319
- :prepend-face (or overlay-face 'cider-result-overlay-face )))))
319
+ :prepend-face (or overlay-face 'cider-result-overlay-face ))))
320
+ (msg (format " %s%s " cider-eval-result-prefix value))
321
+ (max-msg-length (* (floor (max-mini-window-lines)) (frame-width )))
322
+ (msg (if (> (string-width msg) max-msg-length)
323
+ (format " %s ..." (substring msg 0 (- max-msg-length 3 )))
324
+ msg)))
320
325
(message
321
326
" %s"
322
- (propertize ( format " %s%s " cider-eval-result-prefix font-value)
327
+ (propertize msg
323
328
; ; The following hides the message from the echo-area, but
324
329
; ; displays it in the Messages buffer. We only hide the message
325
330
; ; if the user wants to AND if the overlay succeeded.
0 commit comments