emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/cider ef87c71c34 2/2: Honor `cider-result-overlay-position


From: ELPA Syncer
Subject: [nongnu] elpa/cider ef87c71c34 2/2: Honor `cider-result-overlay-position`
Date: Mon, 6 Nov 2023 15:59:15 -0500 (EST)

branch: elpa/cider
commit ef87c71c34c8ddd0b61e4b8db948969eb28af018
Author: vemv <vemv@users.noreply.github.com>
Commit: Bozhidar Batsov <bozhidar@batsov.dev>

    Honor `cider-result-overlay-position`
---
 cider-eval.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cider-eval.el b/cider-eval.el
index d928908a65..fc99c5ab43 100644
--- a/cider-eval.el
+++ b/cider-eval.el
@@ -958,7 +958,8 @@ Optional argument DONE-HANDLER lambda will be run once load 
is complete."
                                             ;; 2.- Calculate the overlay 
position, which is the point (per the previous jump),
                                             ;;     and then end-of-line (for 
ensuring the overlay will be rendered properly):
                                             (end (save-excursion
-                                                   (end-of-line)
+                                                   (when (equal 
cider-result-overlay-position 'at-eol)
+                                                     (end-of-line))
                                                    (point))))
                                        (cider--maybe-display-error-as-overlay 
phase err end))))
                                  (lambda (buffer)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]