Skip to content
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

Work around bug in eshell's preoutput-filter code. #8635

Closed
wants to merge 1 commit into from

Conversation

Stebalien
Copy link
Contributor

@Stebalien Stebalien commented Apr 5, 2017

Eshell doesn't call preoutput-filter functions in the context of the eshell buffer. This breaks the xterm color filtering when the eshell buffer is updated when the eshell buffer is not currently focused.

I intend to submit this fix upstream when I get a chance but an advice fixes it for now. The other fix is to move the xterm color filter to a output-filter function (instead of preoutput-filter) but those operate on strings that have already been inserted into the buffer.

Eshell doesn't call preoutput-filter functions in the context of the eshell
buffer. This breaks the xterm color filtering when the eshell buffer is updated
when it's not currently focused.

I intend on submitting this fix upstream when I get a chance but an advice fixes
it for now. The other fix is to move the xterm color filter to a
output-filter function (instead of preoutput-filter) but those operate on
strings that have already been inserted into the buffer.
@syl20bnr syl20bnr self-assigned this Apr 10, 2017
@syl20bnr
Copy link
Owner

Thank you ! 👍
Cherry-picked into develop branch, you can safely delete your branch.

@syl20bnr syl20bnr closed this Apr 10, 2017
@syl20bnr syl20bnr removed the Merged label Apr 10, 2017
@kini
Copy link
Contributor

kini commented Apr 28, 2017

The define-advice macro doesn't seem to exist in Emacs 24. Does this work on Emacs 24.4, which according to the spacemacs README is the earliest currently supported Emacs version?

Stebalien added a commit to Stebalien/spacemacs that referenced this pull request Apr 29, 2017
@Stebalien
Copy link
Contributor Author

@kini sigh... #8831

@Stebalien Stebalien deleted the fix-eshell-color branch April 29, 2017 22:56
syl20bnr pushed a commit that referenced this pull request May 4, 2017
CodingSolo pushed a commit to CodingSolo/spacemacs that referenced this pull request Oct 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants