* bug#9909: emacsclient -a "" -s server-name does not start/connect to named server
@ 2011-10-30 13:57 Gregor Zattler
2011-10-30 22:35 ` Dan Nicolaescu
2012-11-03 9:01 ` Chong Yidong
0 siblings, 2 replies; 3+ messages in thread
From: Gregor Zattler @ 2011-10-30 13:57 UTC (permalink / raw)
To: 9909
Hi emacs developers,
emacsclient -a ""
starts a new server if there is none before and connects to it.
I would expect that emacsclient -a "" -s my-server-name behaves the
same but starts a server with server-name my-server-name and connects
to this specific emacs server.
But
emacsclient.emacs-snapshot -a "" -s my-server-name
does not start a server but instead says:
emacsclient.emacs-snapshot: can't find socket; have you started the
server?
To start the server in Emacs, type "M-x server-start".
Error: Could not start the Emacs daemon
ps (1) shows no emacs server
while
emacsclient.emacs23 -a "" -s my-server-name
starts a server but is not able to connect and says at the end of the
output:
Starting Emacs daemon.
Emacs daemon should have started, trying to connect again
emacsclient.emacs23: can't find socket; have you started the server?
To start the server in Emacs, type "M-x server-start".
Error: Cannot connect even after starting the Emacs daemon
ps (1) shows
emacs --daemon=????t)????d)??
Thank you for developing Emacs, gregor
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#9909: emacsclient -a "" -s server-name does not start/connect to named server
2011-10-30 13:57 bug#9909: emacsclient -a "" -s server-name does not start/connect to named server Gregor Zattler
@ 2011-10-30 22:35 ` Dan Nicolaescu
2012-11-03 9:01 ` Chong Yidong
1 sibling, 0 replies; 3+ messages in thread
From: Dan Nicolaescu @ 2011-10-30 22:35 UTC (permalink / raw)
To: Gregor Zattler; +Cc: 9909
Gregor Zattler <telegrap@gmx.net> writes:
> Hi emacs developers,
>
> emacsclient -a ""
> starts a new server if there is none before and connects to it.
>
> I would expect that emacsclient -a "" -s my-server-name behaves the
> same but starts a server with server-name my-server-name and connects
> to this specific emacs server.
>
> But
>
> emacsclient.emacs-snapshot -a "" -s my-server-name
> does not start a server but instead says:
> emacsclient.emacs-snapshot: can't find socket; have you started the
> server?
> To start the server in Emacs, type "M-x server-start".
> Error: Could not start the Emacs daemon
>
> ps (1) shows no emacs server
>
>
> while
>
> emacsclient.emacs23 -a "" -s my-server-name
> starts a server but is not able to connect and says at the end of the
> output:
>
> Starting Emacs daemon.
> Emacs daemon should have started, trying to connect again
> emacsclient.emacs23: can't find socket; have you started the server?
> To start the server in Emacs, type "M-x server-start".
> Error: Cannot connect even after starting the Emacs daemon
>
>
> ps (1) shows
> emacs --daemon=????t)????d)??
This regressions seems to have been introduced by change 105655.
In set_local_socket the value of socket_name is destroyed in case of
failing to connect to the server. That value is needed for starting the
daemon.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#9909: emacsclient -a "" -s server-name does not start/connect to named server
2011-10-30 13:57 bug#9909: emacsclient -a "" -s server-name does not start/connect to named server Gregor Zattler
2011-10-30 22:35 ` Dan Nicolaescu
@ 2012-11-03 9:01 ` Chong Yidong
1 sibling, 0 replies; 3+ messages in thread
From: Chong Yidong @ 2012-11-03 9:01 UTC (permalink / raw)
To: Gregor Zattler; +Cc: 9909
Gregor Zattler <telegrap@gmx.net> writes:
> emacsclient -a ""
> starts a new server if there is none before and connects to it.
>
> I would expect that emacsclient -a "" -s my-server-name behaves the
> same but starts a server with server-name my-server-name and connects
> to this specific emacs server.
>
> emacsclient.emacs-snapshot -a "" -s my-server-name
> does not start a server but instead says:
> emacsclient.emacs-snapshot: can't find socket; have you started the
> server?
> To start the server in Emacs, type "M-x server-start".
> Error: Could not start the Emacs daemon
I could not reproduce this bug with the latest bzr checkout, nor with
Emacs 24.1 and 24.2. I think it's been fixed in the meantime; could you
check it it still fails with you?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-11-03 9:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-30 13:57 bug#9909: emacsclient -a "" -s server-name does not start/connect to named server Gregor Zattler
2011-10-30 22:35 ` Dan Nicolaescu
2012-11-03 9:01 ` Chong Yidong
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).