-
-
Notifications
You must be signed in to change notification settings - Fork 649
[Fix #1452] Fix broken ANSI coloring in the repl #1455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
(ansi-color-apply-on-region pos (point-max))))) | ||
(ansi-color-apply-on-region pos (point-max)) | ||
|
||
;; Workaround for https://github.com/clojure-emacs/cider/issues/1452 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd add more of the explanation of why this is needed here.
Apart from my small remarks the code looks OK to me. @Malabarba you're our resident overlays expert - any feedback from you? |
What does
The overlay code looks solid. But I must say I didn't understand why the modification-hook used by ansi-color isn't enough. Shouldn't it also be triggered whenever insert-behind-hook is triggered? |
@bbatsov Thank you for the review! I'll fix them later.
Just returns nil.
I tested the behavior with the following snippet: (with-temp-buffer
(insert "foo")
(let ((ov (make-overlay 1 4)))
(overlay-put ov 'modification-hooks
(list (lambda (ov &rest args)
(message "hook %s" args))))
(message "ov %s" ov)
(goto-char 4)
(insert-before-markers "a")
(message "ov %s" ov))) In this case, the hook is never called even though the overlay has been extended (tested with 24.4/24.5). The manual says Curiously, the comments in |
I'm sorry I'm late. The test has been failed, but this seems not to be due to my modification. |
Seems you'll have to rebase this branch on top of the current |
Done |
@Malabarba are you happy with the current state of the patch? |
Yes. Sorry for the delay. |
@rfkm Rebase this and I'll have it merged. |
Rebased. Thanks :-) |
[Fix #1452] Fix broken ANSI coloring in the repl
👍 |
(Temporary?) fix for #1452