GNU bug report logs - #33219
25.2; crontab -e doesn't connect to existing emacs daemon

Previous Next

Package: emacs;

Reported by: Boruch Baum <boruch_baum <at> gmx.com>

Date: Wed, 31 Oct 2018 21:45:02 UTC

Severity: minor

Tags: notabug

Found in version 25.2

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 33219 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Boruch Baum <boruch_baum <at> gmx.com>
Cc: 33219 <at> debbugs.gnu.org
Subject: Re: bug#33219: 25.2;
 crontab -e doesn't connect to existing emacs daemon
Date: Thu, 01 Nov 2018 12:25:32 -0400
Boruch Baum wrote:

> When running 'crontab -e' with $EDITOR set to
>
>   emacsclient -nw -c --alternate-editor=""

I'm never sure whether EDITOR allows program name plus arguments,
separated by whitespace.,,

> emacsclient issues an error that it had failed to locate the emacs
> daemon socket file, so it spawns a new emacs daemon. On this
> distribution (Devuan Ascii/Ceres, a derviative of Debian 9 without
> systemd), the socket file is located at:
>
>   /tmp/user/${UID}/emacs${UID}/server

emacsclient looks in TMPDIR/emacs${UID}/server, or /tmp if TMPDIR is unset.
Is TMPDIR set to /tmp/user/${UID} ?
Otherwise I would not expect this to work.

> However, in other uses of emacsclient via $EDITOR (eg. mutt, newbeuter,
> w3m) the client does find the socket file and does connect to the
> existing daemon.

Then I'm confused as to how this is supposed to be an Emacs issue.

> A work-around has been to define:
>
>   export EDITOR="$HOME/.local/bin/emacsclient_wrapper"

Future emacsclient will respect the EMACS_SOCKET_NAME environment variable;
ref http://lists.gnu.org/r/emacs-diffs/2018-10/msg00191.html




This bug report was last modified 6 years and 231 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.