From unknown Sat Aug 16 00:32:32 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#33219 <33219@debbugs.gnu.org> To: bug#33219 <33219@debbugs.gnu.org> Subject: Status: 25.2; crontab -e doesn't connect to existing emacs daemon Reply-To: bug#33219 <33219@debbugs.gnu.org> Date: Sat, 16 Aug 2025 07:32:32 +0000 retitle 33219 25.2; crontab -e doesn't connect to existing emacs daemon reassign 33219 emacs submitter 33219 Boruch Baum severity 33219 minor tag 33219 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 31 17:44:52 2018 Received: (at submit) by debbugs.gnu.org; 31 Oct 2018 21:44:52 +0000 Received: from localhost ([127.0.0.1]:57524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHyIG-0007g3-B3 for submit@debbugs.gnu.org; Wed, 31 Oct 2018 17:44:52 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHyIF-0007fo-CS for submit@debbugs.gnu.org; Wed, 31 Oct 2018 17:44:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHyI9-00042b-FP for submit@debbugs.gnu.org; Wed, 31 Oct 2018 17:44:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35774) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gHyI9-00042V-BK for submit@debbugs.gnu.org; Wed, 31 Oct 2018 17:44:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHyI8-0008GW-BQ for bug-gnu-emacs@gnu.org; Wed, 31 Oct 2018 17:44:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHyI4-00040q-At for bug-gnu-emacs@gnu.org; Wed, 31 Oct 2018 17:44:44 -0400 Received: from mout.gmx.net ([212.227.15.15]:33039) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHyI3-0003zV-30 for bug-gnu-emacs@gnu.org; Wed, 31 Oct 2018 17:44:40 -0400 Received: from E15-2016.optimum.net ([108.6.168.221]) by mail.gmx.com (mrgmx003 [212.227.17.184]) with ESMTPSA (Nemesis) id 0MH0eg-1gLnmr1yLq-00Dn5j for ; Wed, 31 Oct 2018 22:44:35 +0100 Received: from E15-2016.optimum.net ([108.6.168.221]) by mail.gmx.com (mrgmx003 [212.227.17.184]) with ESMTPSA (Nemesis) id 0MH0eg-1gLnmr1yLq-00Dn5j for ; Wed, 31 Oct 2018 22:44:35 +0100 Date: Wed, 31 Oct 2018 17:44:32 -0400 From: Boruch Baum To: Emacs Bug Reporting Subject: 25.2; crontab -e doesn't connect to existing emacs daemon Message-ID: <20181031214432.mpreomzpovm4zo5j@E15-2016.optimum.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20180716 X-Provags-ID: V03:K1:0fALT+KswDDKWD4pLslodgBguk+n9CJ4eocFfyTldg3dew5NiW6 +rPmL8KCT6llt11K1bhFIofEuh5hgCW/MFlWQDnLcmoNdeVE+u1vaaGGBNxryYkVBXnBORP MnNF7C9Qbnqf6NiC8EgILW/hCSbe/mSANVGMSvC63zf6cTlMve2/9jNIkXwFyOnpLNi79WR pxmd/pXCWAb06TYiTcIAg== X-UI-Out-Filterresults: notjunk:1;V01:K0:YB6mRKNHaHU=:dipGDWkRJHaH0SvQYr4Y5M 8BFkVRrTFMaHTXb8pbZMetMOYnXX7BMqbiJtbNqvcoC4o3WPF3lYRts3TWoZCD1xS527O+/va g92ov3Z4D639A5d+R/wb2N4MD1TD/o6mj1zW5uF4f9bKJfDuzRY/jYOw8xeob3w9cSbmROujO XrFDKkpDze6WCSXAyQaBmJ5/1CKMdQv9IqpAfzcgPu1GRWG0KYhJDTfoWNDTfZdzqAAgIBiPE z5vxjYlVShE91+RKScIL4ZOEI9VXYoam9orC2rcvdh7CXOSy+M+RBegujwG+g7CHgTnV6lBgK /gZ2Qb0aZdZNun8gOlG8+ny0LFJpCbLeWe9TBj4pTifNl9D3S3pd5KwWUs02m8UEtfqVnJZkF TEID+tLX3REMEceNCRJrnmhI7nyQJn59vsiRAlNjFOjVQDDZ1byNJhVi6RstmTWTPdoJ/+iwZ h+ZmqUievY37XQYPOXLa92OuZHewZ0MDlB2QEHO/x/cTiBBn0B7q9BZac/lWZqBk6P0YWEiVn pKFWtw9JUa1mMe6ND3fGjfENQ0Huy9oLfvo5sGix+bqGZuG3Vz3p5zpewrMeThr4TmFG+P+pk eIBUZunvLrTkuA1L2r41nJ5T9ONB4boa1lSM9HCEVbfV3K2RSP5FzkB2dMMZjBGq2YazX3mcc n13hZeK5DaVuQV4fJQvsHLJD/0YGqej52wEZAWKfgDloVIiDg6ssqFW87xMZop510ZKfRCwz6 htBKJ17bMq7TdMWoUruNvj6pgMmZP2iwn4X+A633LVYjLfNwaIVGpGbq+EfNTovntzZ3w6E56 peZw9Eb6dqO1L+BiFkhJ5fthdUawg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.1 (-----) When running 'crontab -e' with $EDITOR set to emacsclient -nw -c --alternate-editor="" 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 which in this case the emacsclient binary isn't finding or looking for. 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. A work-around has been to define: export EDITOR="$HOME/.local/bin/emacsclient_wrapper" alias emacs="emacsclient_wrapper " #!/bin/sh # emacsclient_wrapper SOCKET_FILE="$(lsof -c emacs -u $USER | grep -m1 -o "[^[:blank:]]\+server")" [ -z "$SOCKET_FILE" ] \ && emacsclient -nw -c --alternate-editor="" $@ \ || emacsclient -nw -c --alternate-editor="" -s "$SOCKET_FILE" $@ In GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-08-26, modified by Debian built on x86-csail-01 System Description: Devuan GNU/Linux 2.0.0 (ascii) Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs-7bZ65w/emacs-25.2+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix -- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0 From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 01 12:25:51 2018 Received: (at 33219) by debbugs.gnu.org; 1 Nov 2018 16:25:51 +0000 Received: from localhost ([127.0.0.1]:58688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gIFn5-0001Eh-2Y for submit@debbugs.gnu.org; Thu, 01 Nov 2018 12:25:51 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gIFn2-0001ET-TR for 33219@debbugs.gnu.org; Thu, 01 Nov 2018 12:25:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIFmt-0006Pd-FE for 33219@debbugs.gnu.org; Thu, 01 Nov 2018 12:25:41 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIFmn-00067I-OI; Thu, 01 Nov 2018 12:25:33 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1gIFmn-0001xt-1H; Thu, 01 Nov 2018 12:25:33 -0400 From: Glenn Morris To: Boruch Baum Subject: Re: bug#33219: 25.2; crontab -e doesn't connect to existing emacs daemon References: <20181031214432.mpreomzpovm4zo5j@E15-2016.optimum.net> X-Spook: Gas Transportation security Juarez Nerve agent X-Ran: \.(NR5(BDJMx)pP]ie%H)5R!?8* (Boruch Baum's message of "Wed, 31 Oct 2018 17:44:32 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33219 Cc: 33219@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 01 13:32:08 2018 Received: (at 33219) by debbugs.gnu.org; 1 Nov 2018 17:32:08 +0000 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 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 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 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 Date: Thu, 1 Nov 2018 13:31:52 -0400 From: Boruch Baum To: Glenn Morris Subject: Re: bug#33219: 25.2; crontab -e doesn't connect to existing emacs daemon Message-ID: <20181101173151.ubeernxl7xtt5dbx@E15-2016.optimum.net> References: <20181031214432.mpreomzpovm4zo5j@E15-2016.optimum.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Provags-ID: V03:K1:dNBFQ28HtC2Ej37RsljzB0RfTxqynhDuAuVv08jDM/Zw7dZD2eJ VMFBtJubHI2Hy65sAP+Mf8MKOYWR/BwHk24ED++y8B2D32uBj8BBkOVoPzPNFIGhQnTqyZS GQ4hClMJt/O+RGFIgyfD26v7DAZBJe4xekwehCh6Ji1j0sr2Q52ka+fn2tiB9Glicp7oJc1 AGRxHHcWUNFUoTo+CucKQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V01:K0:b8E/uJ5Mkqc=:Lci+nsj5Zn+SKdCpxMwOMd HX9X4n4oWhgIUMcB8kVq3sxK4GLBExOB+AS/ekyI6Ka+CYZ1q/AXmcTKB+LQqOsTMOusrtbwu zmlIq7uPM+F++piq5KDGjROlRnQ/uDtNWrDsEMH4XqzG+lfMcFEIpnef/iDjZGGL3RxrqM6mj GuGUahqR+xUcD3xmqkzFms1zyVWrv3qQ3G74Ot/ZfDnJ+Kvu0Wfe1OtaBUrfygo85eJBIqKB0 tDlBMRn/IFt2yGHUFWV5iNi8SkGvtu6K266MWZxZxasx8oZt+xMft5llDVBixlrkKGEKPb/RP sLKNe7zta2IFKGBx9dVneyBtPxJgIT1U10Pgw40M7GnZTKJpA2KiWpa74xnJVPNyW4Fc11q1e a+awYiX2xW8LKCw+B1RVJDYibDqZpGN40by1GgT2NQ3wyUTW0r3G+dq684NRbGfAeH0FLJef5 6w/OVyyYR8xZVhh4aEmzXjtuTJw1f3UNxC2SBdFvsw6PAclmZkoqS8ZChtxgftAO/tiFEwmEg Oj0WYiWA8aPgw4lNobIb667As5ao9BrSKiPz60Owjd1IuFtO3fjYYNrwDRNGq0YTOD2zh7eND p0tNGb+YUn8R8s7JlUE5xpQYWgHe1QXhSdiEThuKW4p4iv4QyvBjhuEdG2DHvRnGEF3TjLdE6 ahXZ24Ff3yvQoCrpDrQ+RYMlVP9JjjaaKHClywdC9hjur2Kk9m+v5N6w6TqdFGQ7Wfxc3INx/ VGXGIg8nQxbh3tGfpbBEzNJ6b76VryPmMvU1r410dLZzBGtLUho+gjO7CsNEB05lB0ZQOAQij hEvQAJUSokwBWjsl5fn5UP+bFLckA== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33219 Cc: 33219@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 27 00:56:40 2018 Received: (at 33219) by debbugs.gnu.org; 27 Nov 2018 05:56:40 +0000 Received: from localhost ([127.0.0.1]:50357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gRWMR-0003jU-Ve for submit@debbugs.gnu.org; Tue, 27 Nov 2018 00:56:40 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46393) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gRWMQ-0003jI-8r for 33219@debbugs.gnu.org; Tue, 27 Nov 2018 00:56:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRWMK-0007Tu-2i for 33219@debbugs.gnu.org; Tue, 27 Nov 2018 00:56:32 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37154) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRWMH-0007TW-Hz; Tue, 27 Nov 2018 00:56:29 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1gRWMH-0002M9-By; Tue, 27 Nov 2018 00:56:29 -0500 From: Glenn Morris To: Boruch Baum Subject: Re: bug#33219: 25.2; crontab -e doesn't connect to existing emacs daemon References: <20181031214432.mpreomzpovm4zo5j@E15-2016.optimum.net> <20181101173151.ubeernxl7xtt5dbx@E15-2016.optimum.net> X-Spook: Blackout Facility 9/11 Legion of Doom CESID Failure New X-Ran: 8De';\Kf0X9^)h`R[)@f({2Jjo"m4(M5\Tkfq{EBOfI8qOT"$}sMDp++|NBv%87usD(V\9 X-Hue: blue X-Debbugs-No-Ack: yes X-Attribution: GM Date: Tue, 27 Nov 2018 00:56:29 -0500 In-Reply-To: <20181101173151.ubeernxl7xtt5dbx@E15-2016.optimum.net> (Boruch Baum's message of "Thu, 1 Nov 2018 13:31:52 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33219 Cc: 33219@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Boruch Baum wrote: >> > 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. I'm saying that you need to investigate why crontab and mutt behave differently. For example, perhaps "crontab -e" does not pass TMPDIR to the spawned editor: https://bugs.debian.org/19237 I verified by doing: M-: (getenv "TMPDIR") in the Emacs spawned by crontab that this is indeed the case. So yes, I think it is a crontab issue. From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 27 15:46:52 2018 Received: (at 33219) by debbugs.gnu.org; 27 Nov 2018 20:46:52 +0000 Received: from localhost ([127.0.0.1]:52550 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gRkFr-0005bX-O9 for submit@debbugs.gnu.org; Tue, 27 Nov 2018 15:46:52 -0500 Received: from mout.gmx.net ([212.227.15.15]:36427) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gRkFm-0005bH-GG for 33219@debbugs.gnu.org; Tue, 27 Nov 2018 15:46:46 -0500 Received: from E15-2016.optimum.net ([108.6.168.221]) by mail.gmx.com (mrgmx003 [212.227.17.184]) with ESMTPSA (Nemesis) id 0Ld1CS-1fjZnL2sK0-00iCCm; Tue, 27 Nov 2018 21:46:32 +0100 Date: Tue, 27 Nov 2018 15:46:26 -0500 From: Boruch Baum To: 19237@bugs.debian.org Subject: crontab -e doesn't connect to existing emacs daemon Message-ID: <20181127204626.y6nolrrzwu5xupkj@E15-2016.optimum.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20180716 X-Provags-ID: V03:K1:/xSXVPJ06vfcG2N/4JGwv/8YMOuadOrejbWUnWZE3MdtC1LnDJG BwbE88JFjYWIOGFXMjLZtara4ENlGgccrFm4xXhr8i6FtVr+Pa+km3ka/GKmsax1Gzmmweq hay+z7Xku6qqPM6j/gnQ3EdAZqxk9tpf0zkWBeXBLZZkvQF6UBmVA6k5ixJ5L2F23aYrpL8 TQK2Vy9SsPf99ZdO749xA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:zCAYIVNeWQM=:z1z53n501kepF6z41W79aY RcIZVqQGBkj6CXaxREW4zw+uXIRe/HWlam+JgORhcIPPO5lTiWjiLneT+Axzk4EsMyiJZtL6Q SZY+js/rRl/W1iFSNLtzZciDF8ev04V/2dmy3Zdbc4YVyU14IGK2ijEwXXBi65FqJQ2hkJ8nf n2RAyqcUpAoOc8nN4ZQvdhWHDCf/rrYpIaCaYpHuOxldylSxV11wjyyUIdKbGa/l1FAzczbCX 34IK4G8j/a6q5Y+1l3GsxEpXzwzKiMMJcdXzUIG9zaA2PDci6wkZxt8ePN6t6Byi5QWHcvM33 vuxnfRaj5/aYxTcWI7Aa624a5jM3JeaPqMRubvdRR4Gz4tCrOrpShdUACHwz7ignN3Gd9wdFu GV9pk18PJuGJphIGN3eVr+IhxU+TlyLnDYUMvESNd19v/ChlzkF206GsNLfxIZ/Hjnl06Dsze UCHruoQmgp2akD0yfo/zD8ZBNmvkNcWYldv6ffKi8GPRJk0qqtV37wIMPGE+YkVWC8GvPTE4s nBATncaCK041TichJQG8XvxyF3QHO874iFWwACyuJ/Aj4oUer6BZLV39qpRW15cpvw/+r3hGG c4rUpOAIFDIkTttLoKhCMb18zKJRcjq1QsW1T22HVfoqEcS53AHPcFNgZqCaR/ElLQXlVZCOj NSAFUWeIiAKMs3szNzY1feuOyv05fgx9SYQ5UbQXlL1fpXsVpcJmUKmXCv+bvUdKsGlqbv3bK IMoJy6oP1Giqq63dSnwZdOLw+PuIyqe5Des4oJltfjnVWTBM57uBDhI5HEOOM82c54CrvWbna V1wDOuqt8BfjckMqQf1bL1L87v/mZn/i/5j4f6F0aDLHzxBvEBAvSU5MmiKE+iwCD2mAWWEsb 9XdWSJU52PLLEQGnoHFx8p5VH8Tqz22tyngNyz3j0= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33219 Cc: 33219@debbugs.gnu.org, Glenn Morris X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Recent correspondence for a consequent GNU emacs bug report: ----- Forwarded message from Glenn Morris ----- Date: Tue, 27 Nov 2018 00:56:29 -0500 From: Glenn Morris To: Boruch Baum Cc: 33219@debbugs.gnu.org Subject: Re: bug#33219: 25.2; crontab -e doesn't connect to existing emacs daemon User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) >> Boruch Baum wrote (10/31/2018): >> > 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. I'm saying that you need to investigate why crontab and mutt behave differently. For example, perhaps "crontab -e" does not pass TMPDIR to the spawned editor: https://bugs.debian.org/19237 I verified by doing: M-: (getenv "TMPDIR") in the Emacs spawned by crontab that this is indeed the case. So yes, I think it is a crontab issue. ----- End forwarded message ----- -- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0 From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 27 15:47:45 2018 Received: (at 33219) by debbugs.gnu.org; 27 Nov 2018 20:47:45 +0000 Received: from localhost ([127.0.0.1]:52554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gRkGm-0005d4-Qw for submit@debbugs.gnu.org; Tue, 27 Nov 2018 15:47:45 -0500 Received: from mout.gmx.net ([212.227.15.18]:59407) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gRkGl-0005cs-FL for 33219@debbugs.gnu.org; Tue, 27 Nov 2018 15:47:44 -0500 Received: from E15-2016.optimum.net ([108.6.168.221]) by mail.gmx.com (mrgmx003 [212.227.17.184]) with ESMTPSA (Nemesis) id 0MN1C4-1gL9d30Ma8-006bPv; Tue, 27 Nov 2018 21:47:37 +0100 Date: Tue, 27 Nov 2018 15:47:34 -0500 From: Boruch Baum To: Glenn Morris Subject: Re: bug#33219: 25.2; crontab -e doesn't connect to existing emacs daemon Message-ID: <20181127204734.z2lbq7jnwi6pihxj@E15-2016.optimum.net> References: <20181031214432.mpreomzpovm4zo5j@E15-2016.optimum.net> <20181101173151.ubeernxl7xtt5dbx@E15-2016.optimum.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Provags-ID: V03:K1:ifJHv6HeMiEMQxbloDHrL7nlEq8qbfBfolyNCRWh6wlaF1ArJkU h+/yGuIGKPqmHFNZvNbFf8Wu0D8d4Mczbe9MLuXSEuY7qS4/rj0imdb8U+D11mMnKbSYqxH iA9kGaePPQxAXgjDi0FfES7czoHOkU41JaDHCKXpkkxuzOnNJwF73K4EhpC8bGWbBwNe9Xf y4gDZrX+rWhYGjjXtfdLg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:TiGRx1j+0CA=:w/uadCuzN0xXePnDmBx8Hn OAAEq4JEvZoTHoCWGTwYsGOprlcC2G2wJkocc6VqlOklY3CsH3Bsya13sEp4vKRDFYTwfXmJr Yje+VCCVMerHJnfkpT/m9pzYTEJTggrqnaZdxXd4bIrDQ6SWv8FjVnEy/F6JJYyLNeJemEuq4 0x8zhobbIfzMlVlV+ouZ3FZMJeUjPmEuT9Qc+HUNUDLvhRV5wGkk8koE2eyo122NF7i+vUySh 2iapMBtxElb+Bt54vqTBgqQvgwDA9ng6tIo46unbZyvNLbBbOOsjcWMPlwh3QW8B+vvb40Xig NSTtJFCT+qsZI7oGTOFUz8eYQVDgR76QkuCxdKJaeXLm8eazETMYu46GP5oPMxRxsxDJPzkZj DctOlxXWNlDQhmtZOI1AxixIFcf0cqIT7X06WnlW4uuVHiiPrR+J/kVNh4NO26ffewI3HemE6 zC5NUXZ4krYQ6rODcE/E2dmb7LlqUOEJDK+Z5QqcUhdEfYiygmA/NKmYfwM84FiY9Nj4nc4qM CmsQiLEZwaTJOqZjqERGi4oX2AvYl8fulOSVvaFusx4kMTbePLWacaXIXl0PFQSoKEhA46fBA NnM69rnJx83DKTayhpAKfkFZH2QbEJZ103k2BfwcOSo1Ud9AHc15r1YiFJruRBxrsQYs6vkyj U2UAI5VWcnbfs+P72fAORmBEiWcxt5EqR2L5CxeDC1Rp+OGuNAoI6JSRSKwBV5ayUjvGV2K12 /oKxSNC1ecZCmHSXqEb0j1P5r0/pTP7kYbM+29fMwNm7idu89mo7emqGIIDwSZOlqbaRtmCiG +k8lGxH91mN8dD/CKI+DXHpxMEYcXvg+x2PdpX6Ds/D7vNBwi1dCw+C7PQHuu23L3gZN7kZyn Obv3FiBLQ1uaN9u9q2nIOMDdEUvz2HQDGhDhaB8JC28Di4q772ADs5MPqPovRL X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33219 Cc: 33219@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Thanks for pointing out the bug; I've forwarded your mail to that bug thread. On 2018-11-27 00:56, Glenn Morris wrote: > Boruch Baum wrote: > > >> > 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. > > I'm saying that you need to investigate why crontab and mutt behave > differently. > > For example, perhaps "crontab -e" does not pass TMPDIR to the spawned editor: > https://bugs.debian.org/19237 > > I verified by doing: > M-: (getenv "TMPDIR") > in the Emacs spawned by crontab that this is indeed the case. > > So yes, I think it is a crontab issue. -- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0 From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 28 15:11:11 2018 Received: (at 33219) by debbugs.gnu.org; 28 Nov 2018 20:11:11 +0000 Received: from localhost ([127.0.0.1]:53815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gS6Ax-0007qp-7Z for submit@debbugs.gnu.org; Wed, 28 Nov 2018 15:11:11 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59976) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gS6Aw-0007qb-9Z for 33219@debbugs.gnu.org; Wed, 28 Nov 2018 15:11:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gS6Ap-0001IL-TY for 33219@debbugs.gnu.org; Wed, 28 Nov 2018 15:11:04 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50458) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gS6An-0001A2-GP; Wed, 28 Nov 2018 15:11:01 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1gS6An-0002Jr-DV; Wed, 28 Nov 2018 15:11:01 -0500 From: Glenn Morris To: Boruch Baum Subject: Re: bug#33219: 25.2; crontab -e doesn't connect to existing emacs daemon References: <20181031214432.mpreomzpovm4zo5j@E15-2016.optimum.net> <20181101173151.ubeernxl7xtt5dbx@E15-2016.optimum.net> <20181127204734.z2lbq7jnwi6pihxj@E15-2016.optimum.net> X-Spook: Hazardous material incident Roswell Cocaine cypherpunk X-Ran: no%)RS]!K8y"__PwL)HGvA>L]aKrZ'-2@&|qcy(%Se*0:#^L"]cmPyDNX~$X08xm(~DX1A X-Hue: yellow X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 28 Nov 2018 15:11:01 -0500 In-Reply-To: <20181127204734.z2lbq7jnwi6pihxj@E15-2016.optimum.net> (Boruch Baum's message of "Tue, 27 Nov 2018 15:47:34 -0500") Message-ID: <0m4lc13qui.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33219 Cc: 33219@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Boruch Baum wrote: > Thanks for pointing out the bug; I've forwarded your mail to that bug thread. I look forward to the spam from Debian's unobfuscated posting of emails. :( I will close the Emacs report since it is not an Emacs issue. As I said earlier EMACS_SOCKET_NAME will exists in future versions, though I did not check if it is just TMPDIR that crontab does not pass on. From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 28 15:11:21 2018 Received: (at control) by debbugs.gnu.org; 28 Nov 2018 20:11:21 +0000 Received: from localhost ([127.0.0.1]:53818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gS6B7-0007rC-Fe for submit@debbugs.gnu.org; Wed, 28 Nov 2018 15:11:21 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gS6B5-0007qz-Uj for control@debbugs.gnu.org; Wed, 28 Nov 2018 15:11:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gS6B0-0001rm-DY for control@debbugs.gnu.org; Wed, 28 Nov 2018 15:11:14 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50479) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gS6B0-0001rg-B2 for control@debbugs.gnu.org; Wed, 28 Nov 2018 15:11:14 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1gS6B0-0002Lo-9W for control@debbugs.gnu.org; Wed, 28 Nov 2018 15:11:14 -0500 Subject: control message for bug 33219 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Wed, 28 Nov 2018 15:11:14 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) tag 33219 notabug close 33219 From unknown Sat Aug 16 00:32:32 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 27 Dec 2018 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator