-
Notifications
You must be signed in to change notification settings - Fork 16
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
Emacslient closes whenever i call sudo-edit #21
Comments
I can't reproduce this; can you give full instructions on how to reproduce starting from a clean (-q) emacs server? |
emacs-26.1 --daemon -q does now trigger the undesired behavior described in my first post. The same goes for emacs with my whole init.el file commented out. (I'm running the stable emacs from the Arch Linux repos btw, I don't remember whether I had this problem on macOS as well, but I could check) |
Disregard my previous comment, running |
Possibly something in your .emacs?
…On Tue, Oct 16, 2018 at 4:19 AM Rijnder Wever ***@***.***> wrote:
Disregard my previous comment, running emacs-26.1 --daemon -q and then
manually loading sudo-edit.el seems to work now. Nevertheless, commenting
my whole init.el still displays problematic behavior when invoking M-x
sudo-edit. @nflath <https://github.com/nflath> any ideas?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAC2817pmrcPAWUrZMIKC8dldbzQcLaTks5ulcCqgaJpZM4WgAVD>
.
|
Same problem here. It seems to close if opening in a terminal, but just hangs if on a separate frame. All instances hang, but C-g brings it back. Any thoughts? |
I also still experience this. If I find the time, I'll try nflaths suggestion and see if something in my global .emacs folder is causing the problem, as I already established that the problem seems to persist when commenting out all of my init.el (probably not, given that it is not super populated). @someonewithpc does the problem still persist when you comment out all of your init.el and then load sudo-edit manually? As a work around, I now generally use this function/alias function E
env SUDO_EDITOR="emacsclient -t -a emacs" sudoedit $argv
end (fish syntax, but conversion to bash should be trivial) |
I can reproduce this with no
Some variants that might help shed light on what’s going on:
|
I think the problem is with the function
|
I run emacs as a server, and running
sudo-edit
closes emacs whenever I run it. It doesn't crash or alter emacs in anyway, it's only that I'm back at my shell and have to rerun my emacs command. I can then edit the files as a sudo user like normal.The text was updated successfully, but these errors were encountered: