-
Notifications
You must be signed in to change notification settings - Fork 348
support ANSI colours in the compilation buffer #1608
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
oh, and there is also a missing regex to catch failed tasty tests as warnings... but I'll do that as a follow up. |
The build failed for flakiness reasons unrelated to my proposed change:
|
@purcell the |
LOL, just the only person occasionally looking at this in recent months, afaict. I've no bandwidth to fix up the build process currently, but the change looks reasonable. I only wonder why we wouldn't just unconditionally handle ANSI colours: I'm not convinced we need a new flag var. |
@purcell hehe, I know the score. Re new var, I just didn't want to break anybody's workflow. I plan on following up with a change to make it the default if I get say 10 reports of it working. |
haskell-compile.el
Outdated
(point))) | ||
|
||
(when haskell-compile-color | ||
(read-only-mode -1) |
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.
Here, I believe you can let-bind inhibit-read-only
IIRC.
haskell-compile.el
Outdated
@@ -62,6 +63,11 @@ The `%s' placeholder is replaced by the current buffer's filename." | |||
:group 'haskell-compile | |||
:type 'boolean) | |||
|
|||
(defcustom haskell-compile-color nil |
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.
Since you're talking about a follow-up change later, let's just be bold and do this unconditionally.
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.
ok, will do!
@purcell changes applied and eyeballed that it works. |
Sweet, thanks! |
For example, when tasty is called with
--color=always
// @feuerbachDisabled by default to avoid any performance impact, but perhaps we can do a test cycle and if people like it maybe turn it on by default?
BTW, I think there is a bug in Emacs... I had to use
(point-max)
but the docs said(point)
should work.