[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/cider 76b5f602aa 2/7: Add optional face argument to eval o
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/cider 76b5f602aa 2/7: Add optional face argument to eval overlays |
Date: |
Fri, 11 Feb 2022 03:58:05 -0500 (EST) |
branch: elpa/cider
commit 76b5f602aa64c63ce480b511c3966040b224801f
Author: yuhan0 <qythium@gmail.com>
Commit: Bozhidar Batsov <bozhidar@batsov.dev>
Add optional face argument to eval overlays
---
cider-overlays.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/cider-overlays.el b/cider-overlays.el
index 84954e3f0e..577dd3c445 100644
--- a/cider-overlays.el
+++ b/cider-overlays.el
@@ -262,9 +262,11 @@ overlay."
;;; Displaying eval result
-(defun cider--display-interactive-eval-result (value &optional point)
+(defun cider--display-interactive-eval-result (value &optional point
overlay-face)
"Display the result VALUE of an interactive eval operation.
VALUE is syntax-highlighted and displayed in the echo area.
+OVERLAY-FACE is the face applied to the overlay, which defaults to
+`cider-result-overlay-face' if nil.
If POINT and `cider-use-overlays' are non-nil, it is also displayed in an
overlay at the end of the line containing POINT.
Note that, while POINT can be a number, it's preferable to be a marker, as
@@ -276,7 +278,8 @@ focused."
(used-overlay (when (and point cider-use-overlays)
(cider--make-result-overlay font-value
:where point
- :duration cider-eval-result-duration))))
+ :duration cider-eval-result-duration
+ :prepend-face (or overlay-face
'cider-result-overlay-face)))))
(message
"%s"
(propertize (format "%s%s" cider-eval-result-prefix font-value)
- [nongnu] elpa/cider updated (e8b582e1f2 -> f3309c3886), ELPA Syncer, 2022/02/11
- [nongnu] elpa/cider 50020cb2e4 1/7: Force default face on eval result overlays, ELPA Syncer, 2022/02/11
- [nongnu] elpa/cider 222b3085a6 5/7: Print eval errors into multiline comment output, ELPA Syncer, 2022/02/11
- [nongnu] elpa/cider 20a69c76a5 6/7: Update changelog, ELPA Syncer, 2022/02/11
- [nongnu] elpa/cider 76b5f602aa 2/7: Add optional face argument to eval overlays,
ELPA Syncer <=
- [nongnu] elpa/cider 0a12a11c93 4/7: Display interactive overlays in eval-up-to-point functions, ELPA Syncer, 2022/02/11
- [nongnu] elpa/cider 59aac64262 3/7: Display interactive eval errors as overlays, ELPA Syncer, 2022/02/11
- [nongnu] elpa/cider f3309c3886 7/7: [Docs] describe effect of cider-show-error-buffer, ELPA Syncer, 2022/02/11