FS#67627 - [emacs] emacsclient 27.1-2 fails to run
Attached to Project:
Arch Linux
Opened by Eric W. Bates (ericx) - Tuesday, 18 August 2020, 12:54 GMT
Last edited by Jürgen Hötzel (juergen) - Sunday, 30 July 2023, 13:12 GMT
Opened by Eric W. Bates (ericx) - Tuesday, 18 August 2020, 12:54 GMT
Last edited by Jürgen Hötzel (juergen) - Sunday, 30 July 2023, 13:12 GMT
|
Details
Description:
Something is wrong with the variable space containing the socket-name in emacsclient. The default value for the string: /run/user/[uid]/emacs/server results in the error: # emacsclient -c -n emacsclient: socket-name /run/user/1000/emacs/server... too long [Exit 1 ] Attempting to shorten the socket-name does not help: # emacsclient -c -n --socket /tmp/e emacsclient: socket-name /tmp/e... too long [Exit 1 ] Additional info: * emacs version 27.1-2 Steps to reproduce: run: export ALTERNATE_EDITOR='' emacsclient -c -n |
This task depends upon
I have tried to reproduce this, but following your instructions does indeed work for me without issues.
I wonder if you have been bitten by this change¹:
*** When run by root, emacsclient no longer connects to non-root sockets.
(Instead you can use Tramp methods to run root commands in a non-root Emacs.)
The reported error by your `emacsclient` does not match, though :-/
Just to clarify: are you running `emacsclient` as root, but with an environment that points to the user with uid 1000?
If so, could you perhaps try `sudo -i` to make the environment match root's before running `emacsclient`?
Hope that it helps, fellow emacser.
[1]: https://www.gnu.org/savannah-checkouts/gnu/emacs/news/NEWS.27.1 > emacsclient
Thank you.
Do you consider this issue solved? If so, I would suggest that you request its closure.
Thanks!