all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dan Nicolaescu <dann@gnu.org>
To: Gregor Zattler <telegrap@gmx.net>
Cc: 9909@debbugs.gnu.org
Subject: bug#9909: emacsclient -a "" -s server-name does not start/connect to named server
Date: Sun, 30 Oct 2011 18:35:49 -0400	[thread overview]
Message-ID: <yxqty6qf6pm.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <20111030135757.GC9907@shi.workgroup> (Gregor Zattler's message of "Sun, 30 Oct 2011 14:57:57 +0100")

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.





  reply	other threads:[~2011-10-30 22:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2012-11-03  9:01 ` Chong Yidong

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yxqty6qf6pm.fsf@fencepost.gnu.org \
    --to=dann@gnu.org \
    --cc=9909@debbugs.gnu.org \
    --cc=telegrap@gmx.net \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.