From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#23202: 24.5; emacsclient confusing server connection message Date: Mon, 29 Jul 2019 00:35:20 +0200 Message-ID: <874l35aitz.fsf@mouse.gnus.org> References: <87h9fjzl0d.fsf@aol.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="250757"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 23202@debbugs.gnu.org To: Live System User Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 29 00:36:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hrrlx-00131t-S2 for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Jul 2019 00:36:09 +0200 Original-Received: from localhost ([::1]:47060 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrrlw-00079E-GG for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Jul 2019 18:36:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49840) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrrls-00078s-0B for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2019 18:36:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hrrlq-0001cn-RI for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2019 18:36:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38471) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hrrlq-0001ce-MQ for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2019 18:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hrrlq-0002gG-HH for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2019 18:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Jul 2019 22:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23202 X-GNU-PR-Package: emacs Original-Received: via spool by 23202-submit@debbugs.gnu.org id=B23202.156435332710236 (code B ref 23202); Sun, 28 Jul 2019 22:36:02 +0000 Original-Received: (at 23202) by debbugs.gnu.org; 28 Jul 2019 22:35:27 +0000 Original-Received: from localhost ([127.0.0.1]:47291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrrlG-0002f2-KS for submit@debbugs.gnu.org; Sun, 28 Jul 2019 18:35:26 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:34180) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrrlF-0002es-GM for 23202@debbugs.gnu.org; Sun, 28 Jul 2019 18:35:26 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hrrlA-0000r0-Q4; Mon, 29 Jul 2019 00:35:23 +0200 In-Reply-To: <87h9fjzl0d.fsf@aol.com> (Live System User's message of "Sat, 02 Apr 2016 18:46:58 -0400") 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: 209.51.188.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:163994 Archived-At: Live System User writes: > Now, when invoking emacsclient, I get the following message: > > $ emacsclient +12:2 ~/.emacs > emacsclient: can't find socket; have you started the server? > To start the server in Emacs, type "M-x server-start". > Waiting for Emacs... > > > Even though I get this message, apparently. emacsclient does find the > network socket and brings up the "~/.emacs" file in an emacs window. > > In Emacs, invoking `(list-processes)' yields: > > server listen -- -- (network server on local) > server <127.... open -- -- (network connection to 127.0.0.1) > > > .% *Process List* 166 Process Menu > * .emacs 73761 Emacs-Lisp ~/.emacs > % *GNU Emacs* 858 Fundamental > *scratch* 191 Lisp Interaction > %* *Messages* 2285 Messages > > > So why give a warning message of "can't find socket" if the connection is > subsequentially successful (the server *was* started) and it gets its > connection information from the server file, even though the server file > is not an actual "socket"? > > Could it be that invoking emacsclient, by default, first looks for the > server socket file in /tmp/emacs/server ? And then falls back to > the ~/.emacs.d/server/server server file if that socket doesn't > exists? > > But because of the default precedence. it doesn't determine whether a > server actually doesn't exists before emitting the warning? (I'm going through old Emacs bug reports that haven't received any response.) I'm unable to reproduce this in Emacs 27. Are you still seeing this behaviour? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no