From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#9909: emacsclient -a "" -s server-name does not start/connect to named server Date: Sun, 30 Oct 2011 18:35:49 -0400 Message-ID: References: <20111030135757.GC9907@shi.workgroup> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1320014165 4719 80.91.229.12 (30 Oct 2011 22:36:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 30 Oct 2011 22:36:05 +0000 (UTC) Cc: 9909@debbugs.gnu.org To: Gregor Zattler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 30 23:35:59 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RKdyx-0006Wj-B8 for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Oct 2011 23:35:59 +0100 Original-Received: from localhost ([::1]:55035 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKdyw-0001Cd-FR for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Oct 2011 18:35:58 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKdyt-0001CV-5n for bug-gnu-emacs@gnu.org; Sun, 30 Oct 2011 18:35:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RKdys-0004Vl-5U for bug-gnu-emacs@gnu.org; Sun, 30 Oct 2011 18:35:55 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53437) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKdys-0004Vf-2k for bug-gnu-emacs@gnu.org; Sun, 30 Oct 2011 18:35:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RKe0v-0007tD-LR for bug-gnu-emacs@gnu.org; Sun, 30 Oct 2011 18:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dan Nicolaescu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 Oct 2011 22:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9909 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9909-submit@debbugs.gnu.org id=B9909.132001428030321 (code B ref 9909); Sun, 30 Oct 2011 22:38:01 +0000 Original-Received: (at 9909) by debbugs.gnu.org; 30 Oct 2011 22:38:00 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RKe0u-0007sz-A4 for submit@debbugs.gnu.org; Sun, 30 Oct 2011 18:38:00 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RKe0s-0007ss-5V for 9909@debbugs.gnu.org; Sun, 30 Oct 2011 18:37:59 -0400 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RKdyn-00018A-QP; Sun, 30 Oct 2011 18:35:49 -0400 In-Reply-To: <20111030135757.GC9907@shi.workgroup> (Gregor Zattler's message of "Sun, 30 Oct 2011 14:57:57 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 30 Oct 2011 18:38:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:53334 Archived-At: Gregor Zattler 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.