Skip to content

Sage mode inserts a lot of space when return is pressed in Emacs. #52

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

Closed
simurgh9 opened this issue Jul 13, 2020 · 2 comments
Closed

Sage mode inserts a lot of space when return is pressed in Emacs. #52

simurgh9 opened this issue Jul 13, 2020 · 2 comments

Comments

@simurgh9
Copy link

I am not sure what is causing it but each time I press enter this happens,

Screenshot_20200713_033428

@reverland
Copy link

reverland commented Jul 13, 2020

me too..and i'm curious about this now..

FYI

edit /usr/bin/sage, change following functions

# Start an interactive Sage session, this function never returns.
interactive_sage() {
    sage_setup
    exec sage-ipython "$@" --simple-prompt -i
}

https://stackoverflow.com/questions/60534394/ipython-warning-in-emacs-your-terminal-doesnt-support-cursor-position-requests

I think its a bug relate to #48

@simurgh9
Copy link
Author

Yeap! That did the trick. For other readers, run sudo emacs /usr/bin/sage to edit the file. You'll need to change the line exec sage-ipython "$@" -i to exec sage-ipython "$@" --simple-prompt -i as shown in @reverland's reply.

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

No branches or pull requests

2 participants