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#2864: emacsclient bugs.. Date: Thu, 2 Apr 2009 13:25:53 -0700 (PDT) Message-ID: <200904022025.n32KPr97007561@godzilla.ics.uci.edu> References: <200904021950.n32JoKhD006999@godzilla.ics.uci.edu> Reply-To: Dan Nicolaescu , 2864@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1238705086 20583 80.91.229.12 (2 Apr 2009 20:44:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Apr 2009 20:44:46 +0000 (UTC) Cc: 2864@emacsbugs.donarmstrong.com To: "Alfred M. Szmidt" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 02 22:46:04 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LpTnF-0002Ic-SV for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Apr 2009 22:45:46 +0200 Original-Received: from localhost ([127.0.0.1]:36249 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LpTls-0007tn-3q for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Apr 2009 16:44:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LpTlU-0007ku-3k for bug-gnu-emacs@gnu.org; Thu, 02 Apr 2009 16:43:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LpTlP-0007hW-8W for bug-gnu-emacs@gnu.org; Thu, 02 Apr 2009 16:43:55 -0400 Original-Received: from [199.232.76.173] (port=51819 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LpTlO-0007hR-QV for bug-gnu-emacs@gnu.org; Thu, 02 Apr 2009 16:43:50 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:55792) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LpTlO-0000MC-Gq for bug-gnu-emacs@gnu.org; Thu, 02 Apr 2009 16:43:50 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n32Khl8B009989; Thu, 2 Apr 2009 13:43:47 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n32KZ40X007549; Thu, 2 Apr 2009 13:35:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 02 Apr 2009 20:35:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2864 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2864-submit@emacsbugs.donarmstrong.com id=B2864.12387039685803 (code B ref 2864); Thu, 02 Apr 2009 20:35:04 +0000 Original-Received: (at 2864) by emacsbugs.donarmstrong.com; 2 Apr 2009 20:26:08 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from sallyv2.ics.uci.edu (sallyv2.ics.uci.edu [128.195.1.120]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n32KQ55G005787 for <2864@emacsbugs.donarmstrong.com>; Thu, 2 Apr 2009 13:26:06 -0700 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by sallyv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n32KPrgw014479; Thu, 2 Apr 2009 13:25:53 -0700 (PDT) Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n32KPr97007561; Thu, 2 Apr 2009 13:25:53 -0700 (PDT) In-Reply-To: (Alfred M. Szmidt's message of "Thu, 02 Apr 2009 16:12:17 -0400") Original-Lines: 60 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n32KPrgw014479 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 02 Apr 2009 16:43:55 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:26840 Archived-At: "Alfred M. Szmidt" writes: > > There are a few problems with emacsclient in CVS, first one is that > > one cannot run emacsclient from the build directory, you can do this > > with emacs just fine. But emacsclien gets confused as to where things > > are, and you must do a `make install' to be able to use emacsclient > > properly. > > Can you please describe what you do step by step? > I can't reproduce it here. > > emacsclient never looks in BUILD/src for emacs, so if you do: > > emacs/lib-src/emacsclient -a "" -t > > emacsclient will fail with: > > ams@beryx:~$ emacs/lib-src/emacsclient -a "" -t > emacs/lib-src/emacsclient: can't find socket; have you started the server? > To start the server in Emacs, type "M-x server-start". > emacs/lib-src/emacsclient: error starting emacs daemon > Emacs daemon should have started, trying to connect again > emacs/lib-src/emacsclient: 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 > > I.e. you have to have BUILD/src in your PATH, or do make instal (which > will put emacs in bindir/emacs and emacsclient looks there). That's normal, emacsclient will try to start "emacs --daemon", if you don't have emacs in your PATH, it won't be able to find it. IMO it won't be a good idea to try to exec ../src/emacs. > Another problem I found, but cannot reproduce anymore is that for some > odd reason emacs started looking for all the elisp files in > /usr/local. But I have been unable to reproduce, so I think it was > just something on my side. > > > The second one is that the handling of -a/--alternative-editor > > is problematic, > > > > $ emacs/lib-src/emacsclient -a -c > > emacs/lib-src/emacsclient: file name or argument required > > Try `emacs/lib-src/emacsclient --help' for more information > > > > According to the docstring, the argument to -a is optional, but > > one must supply a empty string explicitly for things to work as > > advertised. > > There was a typo in the code that made the info about the empty > string not appear, it should be fixed now. > > The argument to -a is not optional, neither are the arguments for > -d -f -s (which are documented in the same way as -a in --help). > What needs to be done to make that clearer? > > I think a simple note stating that it has to be the empty string would > be fine. It should be there already.