From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Boruch Baum Newsgroups: gmane.emacs.bugs Subject: bug#33219: 25.2; crontab -e doesn't connect to existing emacs daemon Date: Thu, 1 Nov 2018 13:31:52 -0400 Message-ID: <20181101173151.ubeernxl7xtt5dbx@E15-2016.optimum.net> References: <20181031214432.mpreomzpovm4zo5j@E15-2016.optimum.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1541093479 31177 195.159.176.226 (1 Nov 2018 17:31:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 1 Nov 2018 17:31:19 +0000 (UTC) User-Agent: NeoMutt/20180716 Cc: 33219@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 01 18:31:15 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gIGoH-0007rb-9P for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Nov 2018 18:31:09 +0100 Original-Received: from localhost ([::1]:43219 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIGqN-0000t5-K2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Nov 2018 13:33:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIGqB-0000rX-Hi for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 13:33:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIGq6-0007t8-Eh for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 13:33:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54465) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gIGq6-0007su-9V for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 13:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gIGq5-0006xU-VR for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 13:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Boruch Baum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Nov 2018 17:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33219 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33219-submit@debbugs.gnu.org id=B33219.154109352826669 (code B ref 33219); Thu, 01 Nov 2018 17:33:01 +0000 Original-Received: (at 33219) by debbugs.gnu.org; 1 Nov 2018 17:32:08 +0000 Original-Received: from localhost ([127.0.0.1]:58719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gIGpE-0006w5-35 for submit@debbugs.gnu.org; Thu, 01 Nov 2018 13:32:08 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:39555) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gIGpB-0006vO-Rp for 33219@debbugs.gnu.org; Thu, 01 Nov 2018 13:32:06 -0400 Original-Received: from E15-2016.optimum.net ([108.6.168.221]) by mail.gmx.com (mrgmx001 [212.227.17.184]) with ESMTPSA (Nemesis) id 0MKHMk-1gIpJt2y0c-001g0q; Thu, 01 Nov 2018 18:31:58 +0100 Original-Received: from E15-2016.optimum.net ([108.6.168.221]) by mail.gmx.com (mrgmx001 [212.227.17.184]) with ESMTPSA (Nemesis) id 0MKHMk-1gIpJt2y0c-001g0q; Thu, 01 Nov 2018 18:31:58 +0100 Content-Disposition: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pbBEzNJ6b76VryPmMvU1r410dLZzBGtLUho+gjO7CsNEB05lB0ZQOAQi X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:151898 Archived-At: On 2018-11-01 12:25, Glenn Morris wrote: > 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.,, Yep. Just quote the variable, and apply backslashes to the internal quotes. > > > 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. That is at least part of the issue of this report. In my case, TMPDIR _is_ set to /tmp/user/$UID, yet the emacsclient still reports that it was unable to find the socket file. > > > 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. Well, it is emacsclient that is reporting that it can not operate as expected when called by a core *nix utility. Think of the alternative: if I file a report against 'crontab', those guys will correctly tell me that they just use the $EDITOR value, that emacsclient _is_ being launched, and the error happens within emacsclient. > > 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 -- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0