From unknown Mon Aug 18 21:49:32 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9909: emacsclient -a "" -s server-name does not start/connect to named server Resent-From: Gregor Zattler Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 Oct 2011 19:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9909 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 9909@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.132000146411752 (code B ref -1); Sun, 30 Oct 2011 19:05:01 +0000 Received: (at submit) by debbugs.gnu.org; 30 Oct 2011 19:04:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RKagB-00033V-AF for submit@debbugs.gnu.org; Sun, 30 Oct 2011 15:04:23 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RKVwE-0004aC-Ox for submit@debbugs.gnu.org; Sun, 30 Oct 2011 10:00:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RKVuB-00070L-8u for submit@debbugs.gnu.org; Sun, 30 Oct 2011 09:58:32 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:59653) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKVuB-0006zY-7F for submit@debbugs.gnu.org; Sun, 30 Oct 2011 09:58:31 -0400 Received: from eggs.gnu.org ([140.186.70.92]:43780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKVuA-0002rl-64 for bug-gnu-emacs@gnu.org; Sun, 30 Oct 2011 09:58:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RKVu8-0006tM-Vh for bug-gnu-emacs@gnu.org; Sun, 30 Oct 2011 09:58:30 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:44283) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RKVu8-0006rY-DP for bug-gnu-emacs@gnu.org; Sun, 30 Oct 2011 09:58:28 -0400 Received: (qmail invoked by alias); 30 Oct 2011 13:58:22 -0000 Received: from p54BE1CD9.dip.t-dialin.net (EHLO shi.workgroup) [84.190.28.217] by mail.gmx.net (mp002) with SMTP; 30 Oct 2011 14:58:22 +0100 X-Authenticated: #19296480 X-Provags-ID: V01U2FsdGVkX183fypRdeY3i/KnQWXp4/BrtkLY16M7LBbNparSC3 bN+rO+5np+qBzY Received: from grfz by shi.workgroup with local (Exim 4.77) (envelope-from ) id 1RKVtx-0003Xy-RU; Sun, 30 Oct 2011 14:58:17 +0100 Date: Sun, 30 Oct 2011 14:57:57 +0100 From: Gregor Zattler Message-ID: <20111030135757.GC9907@shi.workgroup> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Mailman-Approved-At: Sun, 30 Oct 2011 15:04:21 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) 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 From unknown Mon Aug 18 21:49:32 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9909: emacsclient -a "" -s server-name does not start/connect to named server 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: To: Gregor Zattler Cc: 9909@debbugs.gnu.org Received: via spool by 9909-submit@debbugs.gnu.org id=B9909.132001428030321 (code B ref 9909); Sun, 30 Oct 2011 22:38:01 +0000 Received: (at 9909) by debbugs.gnu.org; 30 Oct 2011 22:38:00 +0000 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 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 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 From: Dan Nicolaescu References: <20111030135757.GC9907@shi.workgroup> Date: 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") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.5 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) 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. From unknown Mon Aug 18 21:49:32 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9909: emacsclient -a "" -s server-name does not start/connect to named server Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Nov 2012 09:05: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: To: Gregor Zattler Cc: 9909@debbugs.gnu.org Received: via spool by 9909-submit@debbugs.gnu.org id=B9909.135193344324596 (code B ref 9909); Sat, 03 Nov 2012 09:05:01 +0000 Received: (at 9909) by debbugs.gnu.org; 3 Nov 2012 09:04:03 +0000 Received: from localhost ([127.0.0.1]:46657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TUZe7-0006Of-0a for submit@debbugs.gnu.org; Sat, 03 Nov 2012 05:04:03 -0400 Received: from mail-pb0-f44.google.com ([209.85.160.44]:41968) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TUZe4-0006OF-Fe for 9909@debbugs.gnu.org; Sat, 03 Nov 2012 05:04:01 -0400 Received: by mail-pb0-f44.google.com with SMTP id ro8so2922747pbb.3 for <9909@debbugs.gnu.org>; Sat, 03 Nov 2012 02:01:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=TRH6NuJXXJV7L1lyn02jvfrLtmg3e3wLdd2DkBXZe4w=; b=cDmBAMkCSa5Arui4t6ZcCMd/xo5J2lgSzeP7i5nvRRoakzdPD8X6+ZiGMXK2Nx93Xt DGdKuYDjx5AhmU0T60snOQDMmjJkmU98fSsszyZudgjGMmivB6gYjdob6+7U59iTlI1C HGgAplOkqQtA73kWR48F6sTrac+lwW1SokUuJ+OyTGrzUo0AwaQE+a17mcvK65srd271 7vb2aDzo5LCmdx6WZO4HFgbaktQId2qkF43eLAOhCRwUEiF/abX9hSo3+dW74IB/Qu+S WQrp9LEtP9fDEJI6FEogy7DOitoxbVx0yC5pscvowOqr+1iijCze7PbrDGXhqbK8/mQg Gnqw== Received: by 10.66.85.40 with SMTP id e8mr12341834paz.64.1351933266653; Sat, 03 Nov 2012 02:01:06 -0700 (PDT) Received: from ulysses (cm198.gamma83.maxonline.com.sg. [202.156.83.198]) by mx.google.com with ESMTPS id gl9sm7111393pbc.51.2012.11.03.02.01.03 (version=SSLv3 cipher=OTHER); Sat, 03 Nov 2012 02:01:05 -0700 (PDT) From: Chong Yidong References: <20111030135757.GC9907@shi.workgroup> Date: Sat, 03 Nov 2012 17:01:01 +0800 In-Reply-To: <20111030135757.GC9907@shi.workgroup> (Gregor Zattler's message of "Sun, 30 Oct 2011 14:57:57 +0100") Message-ID: <87a9uzoyb6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.1 (/) Gregor Zattler 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? From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 14 03:46:14 2013 Received: (at control) by debbugs.gnu.org; 14 Feb 2013 08:46:14 +0000 Received: from localhost ([127.0.0.1]:55046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U5uSL-0000hP-Se for submit@debbugs.gnu.org; Thu, 14 Feb 2013 03:46:14 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:33718) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U5uSJ-0000hG-R0 for control@debbugs.gnu.org; Thu, 14 Feb 2013 03:46:12 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1U5uRj-000333-OH for control@debbugs.gnu.org; Thu, 14 Feb 2013 03:45:35 -0500 Date: Thu, 14 Feb 2013 03:45:35 -0500 Message-Id: Subject: control message for bug 9909 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) close 9909