From unknown Tue Aug 19 01:09:41 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20675: 24.3; emacsclient cannot talk to emacs Resent-From: Bruce Korb Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 May 2015 18:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20675 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 20675@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.143275020025308 (code B ref -1); Wed, 27 May 2015 18:10:03 +0000 Received: (at submit) by debbugs.gnu.org; 27 May 2015 18:10:00 +0000 Received: from localhost ([127.0.0.1]:58590 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YxfmB-0006a7-Ad for submit@debbugs.gnu.org; Wed, 27 May 2015 14:09:59 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46185) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yxfm9-0006Zv-Pl for submit@debbugs.gnu.org; Wed, 27 May 2015 14:09:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yxfm3-0006va-HM for submit@debbugs.gnu.org; Wed, 27 May 2015 14:09:52 -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.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yxfm3-0006vW-EM for submit@debbugs.gnu.org; Wed, 27 May 2015 14:09:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yxfm2-0001L2-Hh for bug-gnu-emacs@gnu.org; Wed, 27 May 2015 14:09:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yxfm0-0006un-Vq for bug-gnu-emacs@gnu.org; Wed, 27 May 2015 14:09:50 -0400 Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:35951) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yxfm0-0006uN-Pb for bug-gnu-emacs@gnu.org; Wed, 27 May 2015 14:09:48 -0400 Received: by wizk4 with SMTP id k4so120841060wiz.1 for ; Wed, 27 May 2015 11:09:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=jM/ujoau41g9o++yAlErWmBHh1Afnu9Zm0n5su8XMJ8=; b=G5jnYVe7qsxXxX+PlMgYcVcqfYLXm7bAn551NCHWQYc6DH7Fg/ITagD72dgdwxQet+ eqnvoLMF+SfLjCQ+NMGZkQs8SMe/IUgkzCmmnqiOqwDyH1LmcVgT36Z1jHZZ0LSHCKtv XB+zs8EDKagkc3b5ahkF/QhaQ0QZNvTExEymQwti49bEgoFbjjoGmrw0Nqna7nbZTSXP QozGW0ndeeVXJOtF7bh4Ya6QE1qhjc/YjCI6G7kR9oJW8AD5lEq16Auw9HpmN8EbTeu3 FcMPkDzRKJtu4X5VAGoB5fItuTMWWTGHNodvdOtFDQfNhPSkMyaib7Mew+W9KhTzXUNY YJPQ== X-Received: by 10.194.7.97 with SMTP id i1mr54133677wja.107.1432750187510; Wed, 27 May 2015 11:09:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.208.234 with HTTP; Wed, 27 May 2015 11:09:26 -0700 (PDT) From: Bruce Korb Date: Wed, 27 May 2015 11:09:26 -0700 Message-ID: Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.0 (----) From: Bruce Korb To: bug-gnu-emacs@gnu.org Subject: 24.3; emacsclient cannot talk to emacs --text follows this line-- This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgment at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': I have no idea what may have triggered the bug. I am using emacsclient and emacs just fine for quite a while, then all of a sudden: > $ emacsclient cscope.files > emacsclient: can't find socket; have you started the server? > To start the server in Emacs, type "M-x server-start". > emacsclient: No socket or alternate editor. Please use: > > --socket-name > --server-file (or environment variable EMACS_SERVER_FILE) > --alternate-editor (or environment variable ALTERNATE_EDITOR) so I start up another xterm running bash and everything is fine. For a while. Then the same thing happens. I do *NOT* have to restart emacs or even the server code. I have to start another xterm. (Re-exec-ing bash does no good.) So, clearly, something is scrogged in the xterm so that it cannot talk to........... AH HA!! The problem is that I need to redirect TMPDIR to different places for different tasks. So that explainer above might get expanded to include mention of the fact that this directory: ${TMPDIR}/emacs$(id -u) is used for communication. I'd have found the problem long ago. So please consider this an RFE to the above "can't find socket" message. From unknown Tue Aug 19 01:09:41 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20675: 24.3; emacsclient cannot talk to emacs References: In-Reply-To: Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Sep 2019 23:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20675 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Bruce Korb Cc: 20675@debbugs.gnu.org Received: via spool by 20675-submit@debbugs.gnu.org id=B20675.15698008024776 (code B ref 20675); Sun, 29 Sep 2019 23:47:02 +0000 Received: (at 20675) by debbugs.gnu.org; 29 Sep 2019 23:46:42 +0000 Received: from localhost ([127.0.0.1]:56159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEitm-0001Ey-4z for submit@debbugs.gnu.org; Sun, 29 Sep 2019 19:46:42 -0400 Received: from mail-pg1-f170.google.com ([209.85.215.170]:45280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEitj-0001Ee-LS for 20675@debbugs.gnu.org; Sun, 29 Sep 2019 19:46:40 -0400 Received: by mail-pg1-f170.google.com with SMTP id q7so6286316pgi.12 for <20675@debbugs.gnu.org>; Sun, 29 Sep 2019 16:46:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=V3uNXEeio2FitognKU/rL5o7QfvR/FRkbHV1+DzDQms=; b=f/5Pv07pzN/WoBf79xdjOSxOuPBYloTvyHjDuEhiq71L9BsnW/lRI14gihbF2yr8Km Y91o467/p+9Fm8rXoPBXotngXBlrqQVDwHvjhERoqZ+uayO7wq3Bnr6iecBI1H2pEDnW psNpytzEV3fAP95bz/j2Ggt4h7KPxhhWyKv4LikGN7zAIJpfJc6BpofYozGuud9IZhrt XNtw5eYc+n6vHI2cTyRSy0QV3xInG7EOjd6BdJ51Sm4BSVF/hFRgpU+FoArLNuMjRJC6 r7wgzslRjyLx9w6aO102kPmcDO5sn6z/2Kqgd5t2NMV+FrOuhKC9Fl2qBqZaI0PocDUU 4aCg== X-Gm-Message-State: APjAAAXZH2FAPblx9Y5zT/9+rJjqaOL+opymO+hTcMuFUsYzE7ijhooU khOENv4bL+yUzaOLwLIdRyE75jmK6q5kC4Uf6gI= X-Google-Smtp-Source: APXvYqyzPYG1juQ35SGCoVWgz4pBbZxBsdhUmPghVxopsIpDosqru4n+8aQUmEhFD/axG9Ndfk4berwfMtY4Z/MU5U0= X-Received: by 2002:a65:5802:: with SMTP id g2mr15407251pgr.333.1569800793843; Sun, 29 Sep 2019 16:46:33 -0700 (PDT) MIME-Version: 1.0 From: Stefan Kangas Date: Mon, 30 Sep 2019 01:46:22 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) 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.0 (-) Bruce Korb writes: > I have no idea what may have triggered the bug. > I am using emacsclient and emacs just fine for quite a while, > then all of a sudden: > >> $ emacsclient cscope.files >> emacsclient: can't find socket; have you started the server? >> To start the server in Emacs, type "M-x server-start". >> emacsclient: No socket or alternate editor. Please use: >> >> --socket-name >> --server-file (or environment variable EMACS_SERVER_FILE) >> --alternate-editor (or environment variable ALTERNATE_EDITOR) > > so I start up another xterm running bash and everything is fine. > For a while. Then the same thing happens. I do *NOT* have to restart > emacs or even the server code. I have to start another xterm. > (Re-exec-ing bash does no good.) So, clearly, something is scrogged > in the xterm so that it cannot talk to........... > > AH HA!! > > The problem is that I need to redirect TMPDIR to different places for > different tasks. So that explainer above might get expanded to include > mention of the fact that this directory: ${TMPDIR}/emacs$(id -u) > is used for communication. I'd have found the problem long ago. > > So please consider this an RFE to the above "can't find socket" message. Are you saying that you are trying to use emacsclient with a different $TMPDIR than the one you used for the emacs server? Best regards, Stefan Kagas From unknown Tue Aug 19 01:09:41 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20675: 24.3; emacsclient cannot talk to emacs Resent-From: Bruce Korb Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Oct 2019 17:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20675 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Kangas Cc: 20675@debbugs.gnu.org Received: via spool by 20675-submit@debbugs.gnu.org id=B20675.15699511272161 (code B ref 20675); Tue, 01 Oct 2019 17:33:02 +0000 Received: (at 20675) by debbugs.gnu.org; 1 Oct 2019 17:32:07 +0000 Received: from localhost ([127.0.0.1]:34711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFM0M-0000YW-PO for submit@debbugs.gnu.org; Tue, 01 Oct 2019 13:32:07 -0400 Received: from mail-qk1-f178.google.com ([209.85.222.178]:35482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFM0K-0000TA-8r for 20675@debbugs.gnu.org; Tue, 01 Oct 2019 13:32:04 -0400 Received: by mail-qk1-f178.google.com with SMTP id w2so12052681qkf.2 for <20675@debbugs.gnu.org>; Tue, 01 Oct 2019 10:32:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JWxMBWBjAx7uJIMe7MLIeGOyEmLMzq6Sv5WSAI26MAk=; b=jXYrcrQ3Gns5qbeM8ayQzw1kLbG2Qb1+kQf7klkBtQSCVE1qDJai7dvc8BYTa+4w+E yNGisrDPxTD/DdbwiDMmvKr5jmJMdV0nOd7gZRt0KdkvHymZRgppXpYGWKjKbRdMgfEQ diAiCp1heg3zGxii/gOcUmeWj7C8dhIdBHQilI9Q4Doju309U8A4P+PO1Ogz5UkUbK88 2NPs7jtx+MPjPctui6O5gJj0B4PuczhPzKz4MDx02Xix+8toPSFtlTp280NQp8tknH5o ApyvdzM8lCzlFwOGwuEpNPZBRcRiMtJP0ks7VPYcwFfM63vvy+B8JhBlPMPJc7pHjpLZ r3aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JWxMBWBjAx7uJIMe7MLIeGOyEmLMzq6Sv5WSAI26MAk=; b=RW/vU7hDgmf7VweWtPCIMSfj08DHQ1GkB4jfp8OtC7ChRLkHDbp8Ok8brdkhRqbuEi yuHB4r9R22ZSuTtbV2wcu1be72/DxJvYTsJ6NW1FliaTxjuAf/epvLYo2Lx8Xe65FSef JFUYJ3vNZop0E1A284/rf/IgLM4mWssCSw1yab1QWW1Gk8wFx7M4HbwH5xFDw66V2+k1 ZKesYud3CgCJ9sIh9Z4dRhGbFu7xyKD4DFb0FN8EqAGI77nhaJpwHDfVm7Pk18xKtuYd CAF/37SCNJICJhjKsdDOig+FhbKlUBCzatt3b03I/DGjjdVCZMkvew3eBbTgeRh/rz8X yoaA== X-Gm-Message-State: APjAAAVbf1dbIp1kNYUibcKJfw4gnkIbOfTpEMmXHc6QRNsEQ69prSgR lx3ei53QxrARlGAqz66Yf3qmE2uXKO/5RpdI+f4vLuVN X-Google-Smtp-Source: APXvYqzga/+T4Hr5XinsiN+3ockoqsaCOHGZ0rS5W/lKZmMdnmvnQ3gM85Y8sVZUDEbboAqpjJpFmnG/Es57qmP90gQ= X-Received: by 2002:a37:d84:: with SMTP id 126mr6763872qkn.407.1569951118703; Tue, 01 Oct 2019 10:31:58 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bruce Korb Date: Tue, 1 Oct 2019 10:31:22 -0700 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) 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.0 (-) On Sun, Sep 29, 2019 at 4:46 PM Stefan Kangas wrote: > > The problem is that I need to redirect TMPDIR to different places for > > different tasks. So that explainer above might get expanded to include > > mention of the fact that this directory: ${TMPDIR}/emacs$(id -u) > > is used for communication. I'd have found the problem long ago. > > > > So please consider this an RFE to the above "can't find socket" message. > > Are you saying that you are trying to use emacsclient with a different > $TMPDIR than the one you used for the emacs server? What I am attempting to do is to have multiple (two) cscope-s running each talking to a different server. The real issue being that I needed emacs windows tied to a specific invocation of cscope. It seemed the best way to do that was to have multiple servers running since "last active emacs window" is inadequate. Anyway, for me, I retired 6 months after posting this and doubt I'll ever want to run multiple cscopes in parallel ever again. :) From unknown Tue Aug 19 01:09:41 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20675: 24.3; emacsclient cannot talk to emacs Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Oct 2019 18:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20675 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Bruce Korb Cc: 20675@debbugs.gnu.org Received: via spool by 20675-submit@debbugs.gnu.org id=B20675.15699531746131 (code B ref 20675); Tue, 01 Oct 2019 18:07:01 +0000 Received: (at 20675) by debbugs.gnu.org; 1 Oct 2019 18:06:14 +0000 Received: from localhost ([127.0.0.1]:34720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFMXN-0001ao-VG for submit@debbugs.gnu.org; Tue, 01 Oct 2019 14:06:14 -0400 Received: from mail-pl1-f175.google.com ([209.85.214.175]:39617) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFMXI-0001aT-Bj for 20675@debbugs.gnu.org; Tue, 01 Oct 2019 14:06:12 -0400 Received: by mail-pl1-f175.google.com with SMTP id s17so5873262plp.6 for <20675@debbugs.gnu.org>; Tue, 01 Oct 2019 11:06:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3s5lK65pUgs6NZAG7NPswAoLPxpmeokX+KnNbuMwVz0=; b=Ii8tkjysbnc3PAnymgr18xCnO78I02Wteb5fpEMX2/IkSfn1Sz2aMl/A3AJRR/Bgfv QXAfYeqK4YX/WsLjxsJkAVzbE53oj3Yl3CFdFF46Z7qNc895KyPOec2jubnB04/uuX0t CY70456t1ftWZSm4CL9FfZstRi4IU400gsd2NvgG4Urk6qkSfIRVj1NgVVOiPMF0ey2X 6SNJg9GmOTDyVK/oMdPbAEOpF8LZozE+r/hsyhtInQUEgKTnxT18giQ0CTkVCV6+qM5K kefdtaHAI78/EihLQUYKgbrbCAIX4tmoPqAaW0mRh/c9gyFz/+kAuNRHLqqN/yTZL/vz bsig== X-Gm-Message-State: APjAAAX9q+y9mlwxfxTgJUPcdxiNPMQfqlNuytxilw/1c2ZqwwIsMwd4 graX+UX4CYRtUEwVKHS97uvGdBzqCGLMNqVW8norYcr2 X-Google-Smtp-Source: APXvYqwig0WkhI6rPP2nkIFb/pM522YHw+JqkiPz769KxWgo7KsQKosf3FGQJp32MurYuFICwn5eoLmOg8BO82Vpct4= X-Received: by 2002:a17:902:a515:: with SMTP id s21mr28240374plq.259.1569953162299; Tue, 01 Oct 2019 11:06:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Stefan Kangas Date: Tue, 1 Oct 2019 20:05:49 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.3 (/) 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: -0.7 (/) Bruce Korb writes: > > > The problem is that I need to redirect TMPDIR to different places for > > > different tasks. So that explainer above might get expanded to include > > > mention of the fact that this directory: ${TMPDIR}/emacs$(id -u) > > > is used for communication. I'd have found the problem long ago. > > > > > > So please consider this an RFE to the above "can't find socket" message. > > > > Are you saying that you are trying to use emacsclient with a different > > $TMPDIR than the one you used for the emacs server? > > What I am attempting to do is to have multiple (two) cscope-s running > each talking to a different server. The real issue being that I needed > emacs windows tied to a specific invocation of cscope. It seemed the > best way to do that was to have multiple servers running since "last > active emacs window" is inadequate. Anyway, for me, I retired 6 months > after posting this and doubt I'll ever want to run multiple cscopes in > parallel ever again. :) Thanks for reporting back, and I hope you're enjoying your retirement. If I understand correctly, the problem is that there is a mismatch between the $TMPDIR used on the emacs server and on the emacs client. I think that the answer in this case should be: don't change $TMPDIR unless you have to, and if you do, please be careful with how you do it. In other words, I have a hard time seeing how we could do better here. (I also note that we recently started preferring $XDG_RUNTIME_DIR if that's set.) But perhaps we could do something about the documentation. I see that server-socket-dir is documented in the Emacs FAQ, but not at all in the manual. Is that really right? I would have expected it to be the other way around: the FAQ is just the quick-start version, and one would have to read the manual for all the details. Best regards, Stefan Kangas From unknown Tue Aug 19 01:09:41 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20675: 24.3; emacsclient cannot talk to emacs Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Oct 2019 18:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20675 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Kangas Cc: 20675@debbugs.gnu.org, bruce.korb@gmail.com Received: via spool by 20675-submit@debbugs.gnu.org id=B20675.15699552199752 (code B ref 20675); Tue, 01 Oct 2019 18:41:01 +0000 Received: (at 20675) by debbugs.gnu.org; 1 Oct 2019 18:40:19 +0000 Received: from localhost ([127.0.0.1]:34753 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFN4M-0002XE-RV for submit@debbugs.gnu.org; Tue, 01 Oct 2019 14:40:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33509) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFN4L-0002Wy-Ok for 20675@debbugs.gnu.org; Tue, 01 Oct 2019 14:40:18 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iFN4G-0007ZI-BI; Tue, 01 Oct 2019 14:40:12 -0400 Received: from [176.228.60.248] (port=2707 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iFN4D-0001WM-BL; Tue, 01 Oct 2019 14:40:12 -0400 Date: Tue, 01 Oct 2019 21:39:54 +0300 Message-Id: <831rvw9uo5.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from Stefan Kangas on Tue, 1 Oct 2019 20:05:49 +0200) References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) 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: -3.3 (---) > From: Stefan Kangas > Date: Tue, 1 Oct 2019 20:05:49 +0200 > Cc: 20675@debbugs.gnu.org > > I see that server-socket-dir is documented in the Emacs FAQ, but not > at all in the manual. That's because the right way of controlling this is by customizing server-name, not server-socket-dir. See the user manual about server-name. From unknown Tue Aug 19 01:09:41 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20675: 24.3; emacsclient cannot talk to emacs Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Oct 2019 18:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20675 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 20675@debbugs.gnu.org, Bruce Korb Received: via spool by 20675-submit@debbugs.gnu.org id=B20675.156995608911191 (code B ref 20675); Tue, 01 Oct 2019 18:55:01 +0000 Received: (at 20675) by debbugs.gnu.org; 1 Oct 2019 18:54:49 +0000 Received: from localhost ([127.0.0.1]:34765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFNIP-0002uR-2o for submit@debbugs.gnu.org; Tue, 01 Oct 2019 14:54:49 -0400 Received: from mail-pl1-f170.google.com ([209.85.214.170]:40434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFNIO-0002uB-2Z for 20675@debbugs.gnu.org; Tue, 01 Oct 2019 14:54:48 -0400 Received: by mail-pl1-f170.google.com with SMTP id d22so5947522pll.7 for <20675@debbugs.gnu.org>; Tue, 01 Oct 2019 11:54:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=UFaFi8dJi4OerzmxcesMXw6PXkedxTr/UNjpwVnTuME=; b=JBuVuhAj/WKAT8QcyXUZbcikyt3hAkR540AbnM6CCx/zPSIROsub4o1sqHkT6+uv9I qfeakJher+xbWDXzendWfEE86ZGoMUYgpQwnGgmK3T5iMjJk/6QPHXcDzwSrrCpPnN8i Obuk2RyBXLvxFccKS2qtl7TyvtAIrF3Dlan3CnpvSCnWbkrXes6DrWv4uHy7u7W3wKGJ 7Pn3mXf0F8Bu1TGxQICjqF7XeHJ/LPwAwqSkNBeYcTd08mVgOiiqelRx26R1HjD9hf+S OfNscL7e0cQcbFaTElBKnCw8lPCHMnDhcVUfkciWXcu3dS+VBsfkacCNKtFocO8PRj8Q Ieaw== X-Gm-Message-State: APjAAAU/JlvDEleOIiIsvnuWb7gk9tRhhDodqdxmsiaEaYSt+D3fCS1E jwIp5u3+uTSuavRbm/XvBgwZkg3ecHg51U69ayY= X-Google-Smtp-Source: APXvYqzhoxaqW7f07T89iWC3GixdRrakqKWxGGW+3q68CKdRMm3gU2LOE5uRQQWgrcwEQMZ346l76AuUuqjrfteYusE= X-Received: by 2002:a17:902:d88f:: with SMTP id b15mr26327161plz.251.1569956082328; Tue, 01 Oct 2019 11:54:42 -0700 (PDT) MIME-Version: 1.0 References: <831rvw9uo5.fsf@gnu.org> In-Reply-To: <831rvw9uo5.fsf@gnu.org> From: Stefan Kangas Date: Tue, 1 Oct 2019 20:54:31 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) 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: -0.7 (/) Eli Zaretskii writes: > > I see that server-socket-dir is documented in the Emacs FAQ, but not > > at all in the manual. > > That's because the right way of controlling this is by customizing > server-name, not server-socket-dir. See the user manual about > server-name. Right, but then it still seems like the documentation has a problem. For starters, server-socket-dir is extensively documented in the FAQ, while server-name is not at all mentioned. Does that really make sense if we want users to use server-name? >From the FAQ: > Emacs by default creates a Unix domain socket > named =E2=80=98server=E2=80=99 in a well-known directory, typically > =E2=80=98$XDG_RUNTIME_DIR/emacs=E2=80=99 if Emacs is running under an X W= indow > System desktop and =E2=80=98$TMPDIR/emacsUSERID=E2=80=99 otherwise. See = the > variable =E2=80=98server-socket-dir=E2=80=99. Traditionally, Emacs used > =E2=80=98$TMPDIR/emacsUSERID=E2=80=99 even when running under an X deskto= p; if you > prefer this traditional (and less-secure) behavior, you can set the > environment variable =E2=80=98EMACS_SOCKET_NAME=E2=80=99 to > =E2=80=98$TMPDIR/emacsUSERID/server=E2=80=99 before invoking Emacs and > =E2=80=98emacsclient=E2=80=99, although it will be your responsibility to= create > the directory =E2=80=98$TMPDIR/emacsUSERID=E2=80=99 with appropriate owne= rship and > permissions. Perhaps this entire text should be moved to the doc string of the sparsely documented server-socket-dir, with a note that the user should use server-name instead? And the FAQ updated to direct users to use server-name? Best regards, Stefan Kangas From unknown Tue Aug 19 01:09:41 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20675: 24.3; emacsclient cannot talk to emacs Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Oct 2019 19:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20675 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Kangas Cc: 20675@debbugs.gnu.org, bruce.korb@gmail.com Received: via spool by 20675-submit@debbugs.gnu.org id=B20675.156995722113132 (code B ref 20675); Tue, 01 Oct 2019 19:14:01 +0000 Received: (at 20675) by debbugs.gnu.org; 1 Oct 2019 19:13:41 +0000 Received: from localhost ([127.0.0.1]:34787 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFNae-0003Pk-VE for submit@debbugs.gnu.org; Tue, 01 Oct 2019 15:13:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37325) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFNad-0003PW-SJ for 20675@debbugs.gnu.org; Tue, 01 Oct 2019 15:13:40 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39284) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iFNaY-0002VA-OK; Tue, 01 Oct 2019 15:13:34 -0400 Received: from [176.228.60.248] (port=4751 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iFNaV-0003uj-RJ; Tue, 01 Oct 2019 15:13:34 -0400 Date: Tue, 01 Oct 2019 22:13:06 +0300 Message-Id: <83v9t88ekd.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from Stefan Kangas on Tue, 1 Oct 2019 20:54:31 +0200) References: <831rvw9uo5.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) 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: -3.3 (---) > From: Stefan Kangas > Date: Tue, 1 Oct 2019 20:54:31 +0200 > Cc: Bruce Korb , 20675@debbugs.gnu.org > > Eli Zaretskii writes: > > > > I see that server-socket-dir is documented in the Emacs FAQ, but not > > > at all in the manual. > > > > That's because the right way of controlling this is by customizing > > server-name, not server-socket-dir. See the user manual about > > server-name. > > Right, but then it still seems like the documentation has a problem. The FAQ has a problem, yes. Why you looked there instead of the manual is another question ;-) > For starters, server-socket-dir is extensively documented in the FAQ, > while server-name is not at all mentioned. Does that really make > sense if we want users to use server-name? The FAQ is wrong and should be fixed. server-socket-dir is a defvar, whereas server-name is a defcustom, and that speaks volumes regarding which one is user-level variable. > >From the FAQ: > > > Emacs by default creates a Unix domain socket > > named ‘server’ in a well-known directory, typically > > ‘$XDG_RUNTIME_DIR/emacs’ if Emacs is running under an X Window > > System desktop and ‘$TMPDIR/emacsUSERID’ otherwise. See the > > variable ‘server-socket-dir’. Traditionally, Emacs used > > ‘$TMPDIR/emacsUSERID’ even when running under an X desktop; if you > > prefer this traditional (and less-secure) behavior, you can set the > > environment variable ‘EMACS_SOCKET_NAME’ to > > ‘$TMPDIR/emacsUSERID/server’ before invoking Emacs and > > ‘emacsclient’, although it will be your responsibility to create > > the directory ‘$TMPDIR/emacsUSERID’ with appropriate ownership and > > permissions. > > Perhaps this entire text should be moved to the doc string of the > sparsely documented server-socket-dir, with a note that the user > should use server-name instead? And the FAQ updated to direct users > to use server-name? I actually don't understand why do we have this text in the FAQ. The user manual documents this facility clearly enough (AFAIK), so the most the FAQ should do is point to the manual. Or maybe this whole question should be deleted from the FAQ. Does it say something that the manual doesn't? From unknown Tue Aug 19 01:09:41 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20675: 24.3; emacsclient cannot talk to emacs Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Oct 2019 13:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20675 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 20675@debbugs.gnu.org, Bruce Korb Received: via spool by 20675-submit@debbugs.gnu.org id=B20675.157002345621978 (code B ref 20675); Wed, 02 Oct 2019 13:38:02 +0000 Received: (at 20675) by debbugs.gnu.org; 2 Oct 2019 13:37:36 +0000 Received: from localhost ([127.0.0.1]:35722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFeox-0005iQ-PF for submit@debbugs.gnu.org; Wed, 02 Oct 2019 09:37:35 -0400 Received: from mail-pf1-f175.google.com ([209.85.210.175]:35743) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFeov-0005iD-Ur for 20675@debbugs.gnu.org; Wed, 02 Oct 2019 09:37:34 -0400 Received: by mail-pf1-f175.google.com with SMTP id 205so10354501pfw.2 for <20675@debbugs.gnu.org>; Wed, 02 Oct 2019 06:37:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YpMlFsBLAQtMHo15HRVAkgL1hTJu0dLfAGiyXHgGQGk=; b=HejCxgS1ofP0OuJI6bUJT766x5EUMd1cUaTy9ca633TUJkyprlOPlKcUWPaAv4b1+J Aj1KXutlNOR0EaSSExN2M/t7piZFVDq3mLTjVoOc+oxgTgFFBQLX3PNsv+eExnneS5rB VL2iPY1qeTw1DIP67vw8WvEIp858yipVi1CppXjsF4mkWd301IJI8XYhiZTxrDlqCUEm c7Csz1RW8EdD55PknE3d7avRB3Y+ZjVCldUKJnzt5sbcicSLGRnqJp/ViYAHWSshvGhQ RqcjdyIP0FjI92JwGhNwGfPw/2HnR71UnJNXiksm1nivbM0PMH0MZ/vrnru1WPd0iIoX b2bg== X-Gm-Message-State: APjAAAX2O++xMBFcbjVdA5O9yOvBSmgDQhpuWo71ns0/1grutEcxXznm TUm8I2vpbze9Y62+dmujyuAm8DioLphduI6CUL0= X-Google-Smtp-Source: APXvYqxHwwQNofT7jnDLH0njt/nh94DroMQ3jp4bJzjTBWFjR31SXWqLXZEJp56BDVl50Zy6PnkoKoV/BPrLeGsRKPo= X-Received: by 2002:aa7:8750:: with SMTP id g16mr4613978pfo.190.1570023448174; Wed, 02 Oct 2019 06:37:28 -0700 (PDT) MIME-Version: 1.0 References: <831rvw9uo5.fsf@gnu.org> <83v9t88ekd.fsf@gnu.org> In-Reply-To: <83v9t88ekd.fsf@gnu.org> From: Stefan Kangas Date: Wed, 2 Oct 2019 15:37:15 +0200 Message-ID: Content-Type: multipart/mixed; boundary="000000000000eb12ef0593ed9180" X-Spam-Score: 0.3 (/) 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: -0.7 (/) --000000000000eb12ef0593ed9180 Content-Type: text/plain; charset="UTF-8" Eli Zaretskii writes: > > Right, but then it still seems like the documentation has a problem. > > The FAQ has a problem, yes. Why you looked there instead of the > manual is another question ;-) In my defense, I actually looked at both. :-) > I actually don't understand why do we have this text in the FAQ. The > user manual documents this facility clearly enough (AFAIK), so the > most the FAQ should do is point to the manual. Or maybe this whole > question should be deleted from the FAQ. For now, maybe it's enough to just remove the details on server-socket-dir from the FAQ, and add a reference to the manual where users can find the documentation on server-name. Patch attached; WDYT? Best regards, Stefan Kangas --000000000000eb12ef0593ed9180 Content-Type: application/octet-stream; name="0001-Don-t-mention-server-socket-dir-in-FAQ.patch" Content-Disposition: attachment; filename="0001-Don-t-mention-server-socket-dir-in-FAQ.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k19batpr0 RnJvbSA4MTI5MWQwZTg4M2Q0NjE2M2FjMDEwM2I3MzdkNDVmY2I4ZWNhZjU1IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTdGVmYW4gS2FuZ2FzIDxzdGVmYW5rYW5nYXNAZ21haWwuY29t PgpEYXRlOiBXZWQsIDIgT2N0IDIwMTkgMTU6MjU6NTcgKzAyMDAKU3ViamVjdDogW1BBVENIXSBE b24ndCBtZW50aW9uIHNlcnZlci1zb2NrZXQtZGlyIGluIEZBUQoKc2VydmVyLXNvY2tldC1kaXIg aXMgYSBkZWZ2YXIsIGFuZCB1c2VycyBzaG91bGQgdXNlIHRoZSBkZWZjdXN0b20Kc2VydmVyLW5h bWUgaW5zdGVhZC4KCiogZG9jL21pc2MvZWZhcS50ZXhpIChVc2luZyBhbiBhbHJlYWR5IHJ1bm5p bmcgRW1hY3MgcHJvY2Vzcyk6IFJlbW92ZQpkZXRhaWxzIG9uIHNlcnZlci1zb2NrZXQtZGlyLCBy ZWZlciB0byBFbWFjcyBNYW51YWwuICAoQnVnIzIwNjc1KQotLS0KIGRvYy9taXNjL2VmYXEudGV4 aSB8IDE1ICsrLS0tLS0tLS0tLS0tLQogMSBmaWxlIGNoYW5nZWQsIDIgaW5zZXJ0aW9ucygrKSwg MTMgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvZG9jL21pc2MvZWZhcS50ZXhpIGIvZG9jL21p c2MvZWZhcS50ZXhpCmluZGV4IDIxOWFkMjQ4Y2MuLjVhODFmYzAwOTQgMTAwNjQ0Ci0tLSBhL2Rv Yy9taXNjL2VmYXEudGV4aQorKysgYi9kb2MvbWlzYy9lZmFxLnRleGkKQEAgLTE5OTAsMTkgKzE5 OTAsNiBAQCBVc2luZyBhbiBhbHJlYWR5IHJ1bm5pbmcgRW1hY3MgcHJvY2VzcwogKGlmIChAdmFy e3NvbWUgY29uZGl0aW9ucyBhcmUgbWV0fSkgKHNlcnZlci1zdGFydCkpCiBAZW5kIGxpc3AKIAot V2hlbiB0aGlzIGlzIGRvbmUsIEVtYWNzIGJ5IGRlZmF1bHQgY3JlYXRlcyBhIFVuaXggZG9tYWlu IHNvY2tldCBuYW1lZAotQGZpbGV7c2VydmVyfSBpbiBhIHdlbGwta25vd24gZGlyZWN0b3J5LCB0 eXBpY2FsbHkKLUBmaWxleyRYREdfUlVOVElNRV9ESVIvZW1hY3N9IGlmIEVtYWNzIGlzIHJ1bm5p bmcgdW5kZXIgYW4gWCBXaW5kb3cgU3lzdGVtCi1kZXNrdG9wIGFuZCBAZmlsZXskVE1QRElSL2Vt YWNzQHZhcnt1c2VyaWR9fSBvdGhlcndpc2UuICBTZWUgdGhlIHZhcmlhYmxlCi1AY29kZXtzZXJ2 ZXItc29ja2V0LWRpcn0uICBUcmFkaXRpb25hbGx5LCBFbWFjcyB1c2VkCi1AZmlsZXskVE1QRElS L2VtYWNzQHZhcnt1c2VyaWR9fSBldmVuIHdoZW4gcnVubmluZyB1bmRlciBhbiBYIGRlc2t0b3A7 Ci1pZiB5b3UgcHJlZmVyIHRoaXMgdHJhZGl0aW9uYWwgKGFuZCBsZXNzLXNlY3VyZSkgYmVoYXZp b3IsIHlvdQotY2FuIHNldCB0aGUgZW52aXJvbm1lbnQgdmFyaWFibGUgQGVudntFTUFDU19TT0NL RVRfTkFNRX0gdG8KLUBzYW1weyRUTVBESVIvZW1hY3NAdmFye3VzZXJpZH0vc2VydmVyfSBiZWZv cmUgaW52b2tpbmcgRW1hY3MgYW5kCi1Ac2FtcHtlbWFjc2NsaWVudH0sIGFsdGhvdWdoIGl0IHdp bGwgYmUgeW91ciByZXNwb25zaWJpbGl0eSB0byBjcmVhdGUKLXRoZSBkaXJlY3RvcnkgQHNhbXB7 JFRNUERJUi9lbWFjc0B2YXJ7dXNlcmlkfX0gd2l0aCBhcHByb3ByaWF0ZQotb3duZXJzaGlwIGFu ZCBwZXJtaXNzaW9ucy4KLQogVG8gZ2V0IHlvdXIgbmV3cyByZWFkZXIsIG1haWwgcmVhZGVyLCBl dGMuLCB0byBpbnZva2UKIEBzYW1we2VtYWNzY2xpZW50fSwgdHJ5IHNldHRpbmcgdGhlIGVudmly b25tZW50IHZhcmlhYmxlIEBjb2Rle0VESVRPUn0KIChvciBzb21ldGltZXMgQGNvZGV7VklTVUFM fSkgdG8gdGhlIHZhbHVlIEBzYW1we2VtYWNzY2xpZW50fS4gIFlvdSBtYXkKQEAgLTIwNDUsNiAr MjAzMiw4IEBAIFVzaW5nIGFuIGFscmVhZHkgcnVubmluZyBFbWFjcyBwcm9jZXNzCiAKIEBlbmQg aXRlbWl6ZQogCitGb3IgbW9yZSBpbmZvcm1hdGlvbiwgQHhyZWZ7RW1hY3MgU2VydmVyLCwsIGVt YWNzLCBUaGUgR05VIEVtYWNzIE1hbnVhbH0uCisKIEBub2RlIENvbXBpbGVyIGVycm9yIG1lc3Nh Z2VzCiBAc2VjdGlvbiBIb3cgZG8gSSBtYWtlIEVtYWNzIHJlY29nbml6ZSBteSBjb21waWxlcidz IGZ1bm55IGVycm9yIG1lc3NhZ2VzPwogQGNpbmRleCBDb21waWxlciBlcnJvciBtZXNzYWdlcywg cmVjb2duaXppbmcKLS0gCjIuMjMuMAoK --000000000000eb12ef0593ed9180-- From unknown Tue Aug 19 01:09:41 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20675: 24.3; emacsclient cannot talk to emacs Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Oct 2019 15:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20675 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Kangas Cc: 20675@debbugs.gnu.org, bruce.korb@gmail.com Received: via spool by 20675-submit@debbugs.gnu.org id=B20675.15700301692618 (code B ref 20675); Wed, 02 Oct 2019 15:30:02 +0000 Received: (at 20675) by debbugs.gnu.org; 2 Oct 2019 15:29:29 +0000 Received: from localhost ([127.0.0.1]:38188 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFgZF-0000gA-Am for submit@debbugs.gnu.org; Wed, 02 Oct 2019 11:29:29 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFgZD-0000fw-KM for 20675@debbugs.gnu.org; Wed, 02 Oct 2019 11:29:28 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:55945) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iFgZ8-0003vb-7W; Wed, 02 Oct 2019 11:29:22 -0400 Received: from [176.228.60.248] (port=3082 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iFgZ7-0007UN-Ff; Wed, 02 Oct 2019 11:29:21 -0400 Date: Wed, 02 Oct 2019 18:29:03 +0300 Message-Id: <83a7aj88u8.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from Stefan Kangas on Wed, 2 Oct 2019 15:37:15 +0200) References: <831rvw9uo5.fsf@gnu.org> <83v9t88ekd.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) 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: -3.3 (---) > From: Stefan Kangas > Date: Wed, 2 Oct 2019 15:37:15 +0200 > Cc: Bruce Korb , 20675@debbugs.gnu.org > > > I actually don't understand why do we have this text in the FAQ. The > > user manual documents this facility clearly enough (AFAIK), so the > > most the FAQ should do is point to the manual. Or maybe this whole > > question should be deleted from the FAQ. > > For now, maybe it's enough to just remove the details on > server-socket-dir from the FAQ, and add a reference to the manual > where users can find the documentation on server-name. Patch > attached; WDYT? Fine with me, thanks. From unknown Tue Aug 19 01:09:41 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Bruce Korb Subject: bug#20675: closed (Re: bug#20675: 24.3; emacsclient cannot talk to emacs) Message-ID: References: X-Gnu-PR-Message: they-closed 20675 X-Gnu-PR-Package: emacs Reply-To: 20675@debbugs.gnu.org Date: Wed, 02 Oct 2019 15:34:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1570030442-3081-1" This is a multi-part message in MIME format... ------------=_1570030442-3081-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #20675: 24.3; emacsclient cannot talk to emacs which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 20675@debbugs.gnu.org. --=20 20675: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D20675 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1570030442-3081-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 20675-done) by debbugs.gnu.org; 2 Oct 2019 15:33:24 +0000 Received: from localhost ([127.0.0.1]:38193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFgd1-0000mr-VM for submit@debbugs.gnu.org; Wed, 02 Oct 2019 11:33:24 -0400 Received: from mail-pl1-f174.google.com ([209.85.214.174]:45827) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFgd0-0000md-02 for 20675-done@debbugs.gnu.org; Wed, 02 Oct 2019 11:33:22 -0400 Received: by mail-pl1-f174.google.com with SMTP id u12so7176441pls.12 for <20675-done@debbugs.gnu.org>; Wed, 02 Oct 2019 08:33:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=k9V7miNGXmiEzx3xyNdz1LD8VBs3bhjnsSwExW3HGXA=; b=XSojdyJa+8D8grnwu/VMmSbu/LJz4ikOgH5M+CjhUuU7PpdxI8EnC7gyx8p+dOEiFi LoANtjcPKRtKzAkJQZ82sMjJ4Wn5jbMo7Q1aMvSLVwh14CMEszXtpDRNr4hcA796a7mM tXo+TJKu7tQKuZY/7hpNB7pCID/bv8qZUTdzLw1aElrYSs77UAqvL41vLULoaSipMz1g P9GEhr3HBlHkWfp9GF52TdS9QfqxSXfo7C4/Ks6/lX+fR16hHMwJuV918W4xKDooko4X 3IrbCz2owfLgwnJocfun7Cvqz7+R6iphU4aqtItMd6ObSmDlYBkzLjjc/+Gllwfmrblw iPHA== X-Gm-Message-State: APjAAAUgBuciQBLNGuBrzh1X2O3n2/MiEBgRAdjZfnCQZ17qMxuJ+Rwu DrhK9NOIGLVbXIDizQHVUZwHmZ+TEijhANsmklA= X-Google-Smtp-Source: APXvYqzmSm9BO57+g9CsRELFNbwhfKgGS/6appUOUOcUHOBpFfscLtN1B5p1JBicehFhnK4ebaKhyPF7b97HMtpzAwk= X-Received: by 2002:a17:902:a515:: with SMTP id s21mr4428362plq.259.1570030396202; Wed, 02 Oct 2019 08:33:16 -0700 (PDT) MIME-Version: 1.0 References: <831rvw9uo5.fsf@gnu.org> <83v9t88ekd.fsf@gnu.org> <83a7aj88u8.fsf@gnu.org> In-Reply-To: <83a7aj88u8.fsf@gnu.org> From: Stefan Kangas Date: Wed, 2 Oct 2019 17:33:04 +0200 Message-ID: Subject: Re: bug#20675: 24.3; emacsclient cannot talk to emacs To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 20675-done Cc: Bruce Korb , 20675-done@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: -0.8 (/) Eli Zaretskii writes: > Fine with me, thanks. Thanks; pushed as commit 9cd3b50ca8. I see nothing more to do here, so I'm also closing this bug report. Best regards, Stefan Kangas ------------=_1570030442-3081-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 27 May 2015 18:10:00 +0000 Received: from localhost ([127.0.0.1]:58590 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YxfmB-0006a7-Ad for submit@debbugs.gnu.org; Wed, 27 May 2015 14:09:59 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46185) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yxfm9-0006Zv-Pl for submit@debbugs.gnu.org; Wed, 27 May 2015 14:09:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yxfm3-0006va-HM for submit@debbugs.gnu.org; Wed, 27 May 2015 14:09:52 -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.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yxfm3-0006vW-EM for submit@debbugs.gnu.org; Wed, 27 May 2015 14:09:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yxfm2-0001L2-Hh for bug-gnu-emacs@gnu.org; Wed, 27 May 2015 14:09:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yxfm0-0006un-Vq for bug-gnu-emacs@gnu.org; Wed, 27 May 2015 14:09:50 -0400 Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:35951) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yxfm0-0006uN-Pb for bug-gnu-emacs@gnu.org; Wed, 27 May 2015 14:09:48 -0400 Received: by wizk4 with SMTP id k4so120841060wiz.1 for ; Wed, 27 May 2015 11:09:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=jM/ujoau41g9o++yAlErWmBHh1Afnu9Zm0n5su8XMJ8=; b=G5jnYVe7qsxXxX+PlMgYcVcqfYLXm7bAn551NCHWQYc6DH7Fg/ITagD72dgdwxQet+ eqnvoLMF+SfLjCQ+NMGZkQs8SMe/IUgkzCmmnqiOqwDyH1LmcVgT36Z1jHZZ0LSHCKtv XB+zs8EDKagkc3b5ahkF/QhaQ0QZNvTExEymQwti49bEgoFbjjoGmrw0Nqna7nbZTSXP QozGW0ndeeVXJOtF7bh4Ya6QE1qhjc/YjCI6G7kR9oJW8AD5lEq16Auw9HpmN8EbTeu3 FcMPkDzRKJtu4X5VAGoB5fItuTMWWTGHNodvdOtFDQfNhPSkMyaib7Mew+W9KhTzXUNY YJPQ== X-Received: by 10.194.7.97 with SMTP id i1mr54133677wja.107.1432750187510; Wed, 27 May 2015 11:09:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.208.234 with HTTP; Wed, 27 May 2015 11:09:26 -0700 (PDT) From: Bruce Korb Date: Wed, 27 May 2015 11:09:26 -0700 Message-ID: Subject: 24.3; emacsclient cannot talk to emacs To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.0 (----) From: Bruce Korb To: bug-gnu-emacs@gnu.org Subject: 24.3; emacsclient cannot talk to emacs --text follows this line-- This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgment at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': I have no idea what may have triggered the bug. I am using emacsclient and emacs just fine for quite a while, then all of a sudden: > $ emacsclient cscope.files > emacsclient: can't find socket; have you started the server? > To start the server in Emacs, type "M-x server-start". > emacsclient: No socket or alternate editor. Please use: > > --socket-name > --server-file (or environment variable EMACS_SERVER_FILE) > --alternate-editor (or environment variable ALTERNATE_EDITOR) so I start up another xterm running bash and everything is fine. For a while. Then the same thing happens. I do *NOT* have to restart emacs or even the server code. I have to start another xterm. (Re-exec-ing bash does no good.) So, clearly, something is scrogged in the xterm so that it cannot talk to........... AH HA!! The problem is that I need to redirect TMPDIR to different places for different tasks. So that explainer above might get expanded to include mention of the fact that this directory: ${TMPDIR}/emacs$(id -u) is used for communication. I'd have found the problem long ago. So please consider this an RFE to the above "can't find socket" message. ------------=_1570030442-3081-1--