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
Cannot make commits when Emacs is running in a terminal #786
Comments
On Tue, 20 Aug 2013 10:40:27 -0700, Christopher Wellons notifications@github.com wrote:
Works here, both from X using DISPLAY='' and from a TTY, running However I could trigger the issue in two cases:
You don't happen to be using such a configuration? Peace Pieter |
It turns out it was due a similar configuration. I had EDITOR set to |
… new frame When `magit-git-editor' is set to t, *only* use the value of $GIT_EDITOR or $EDITOR when we're sure that it will launch emacsclient(1) *without* trying to open a new frame. Fixes magit#786. Signed-off-by: Pieter Praet <pieter@praet.org>
On Wed, 21 Aug 2013 19:11:29 -0700, Christopher Wellons notifications@github.com wrote:
Hmm, so it blows up when emacsclient(1) tries to open a new frame. When running Would you be so kind as to give the patches in #792 a spin? Thanks! Peace Pieter |
@praet Thanks, your git-editor-tty-fix branch fixes it for me. But I see it was rejected for the moment. |
I think my fix in #797 is better. Could you please try that too. |
On Thu, 22 Aug 2013 18:44:59 -0700, Christopher Wellons notifications@github.com wrote:
Yeah, #797 is a much better overall solution for the emacsclient(1)-related stuff. Peace Pieter |
Maybe this was recent intentional change, but magit is now trying to launch a separate editor for entering commit messages rather than accept it in a buffer like before. This completely fails in a non-gui environment and many other setups.
To demonstrate, run this in the magit source repository:
Try to make a commit and magit attempts to launch a terminal version of emacsclient within Emacs, which fails:
Edit: I see now that #675 and 6142abf is what lead to this new behavior. As it stands right now, magit no longer supports terminal Emacs.
The text was updated successfully, but these errors were encountered: