-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Update to JLine 2.14.6 for better Emacs integration #6478
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
ping @fommil |
This version of Jline fixes three things for Emacs, which means all the special handling of emacs can be removed from scala-code. The things fixed in Jline 2.14.6 are: - ANSI colors are now enabled for Emacs. - Terminal echo is now disabled for Emacs. - History is enabled for all dump terminals.
7e167cc
to
3e597e7
Compare
assignment to 2.12.6 milestone is tentative, we need to consider whether it's sufficiently safe |
the only thing I could imagine that this might impact is ammonite... could somebody maybe manually check it against this build? |
The changes between jline-2.14.5 and jline-2.14.6 are really small and can be summarized as:
Two of the changes change public interfaces of classes, but only by adding new constructors. To my knowledge that will not break anything, except some very twisted reflective thing that is expecting only one constructor. |
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.
Thanks! With one small change, I'm happy to include this in 2.12.6.
@@ -28,9 +28,6 @@ object Properties extends scala.util.PropertiesTrait { | |||
// a newline so as not to break the user's terminal) | |||
def shellInterruptedString = scalaPropOrElse("shell.interrupted", f":quit$lineSeparator") | |||
|
|||
// derived values | |||
def isEmacsShell = propOrEmpty("env.emacs") != "" |
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.
This may be used elsewhere. Juuuuust to be remain on the safe side, let's deprecate instead of removing.
Added the review request as a separate commit, can be squash merged. |
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.
Thanks!
This version of Jline fixes three things for Emacs, which means all
the special handling of emacs can be removed from scala-code.
The things fixed in Jline 2.14.6 are:
This PR should be cherry-picked or merged also to the 2.11 and 2.13 branches.