From: Lars Ingebrigtsen <larsi@gnus.org>
To: Live System User <nyc4bos@aol.com>
Cc: 23202@debbugs.gnu.org
Subject: bug#23202: 24.5; emacsclient confusing server connection message
Date: Mon, 29 Jul 2019 00:35:20 +0200 [thread overview]
Message-ID: <874l35aitz.fsf@mouse.gnus.org> (raw)
In-Reply-To: <87h9fjzl0d.fsf@aol.com> (Live System User's message of "Sat, 02 Apr 2016 18:46:58 -0400")
Live System User <nyc4bos@aol.com> 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<UID>/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
next prev parent reply other threads:[~2019-07-28 22:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-02 22:46 bug#23202: 24.5; emacsclient confusing server connection message Live System User
2019-07-28 22:35 ` Lars Ingebrigtsen [this message]
2019-11-06 0:45 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874l35aitz.fsf@mouse.gnus.org \
--to=larsi@gnus.org \
--cc=23202@debbugs.gnu.org \
--cc=nyc4bos@aol.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).