From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dhruva Newsgroups: gmane.emacs.devel Subject: Re: emacsclient on WXP does not work (as it used to) Date: Fri, 31 Oct 2008 19:08:02 +0530 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1225460325 27314 80.91.229.12 (31 Oct 2008 13:38:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Oct 2008 13:38:45 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: "Juanma Barranquero" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 31 14:39:46 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KvuDu-0006LB-BH for ged-emacs-devel@m.gmane.org; Fri, 31 Oct 2008 14:39:35 +0100 Original-Received: from localhost ([127.0.0.1]:33376 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KvuCj-0007WY-V2 for ged-emacs-devel@m.gmane.org; Fri, 31 Oct 2008 09:38:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KvuCd-0007U2-UX for emacs-devel@gnu.org; Fri, 31 Oct 2008 09:38:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KvuCc-0007T2-CH for emacs-devel@gnu.org; Fri, 31 Oct 2008 09:38:15 -0400 Original-Received: from [199.232.76.173] (port=33813 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KvuCc-0007Sy-8H for emacs-devel@gnu.org; Fri, 31 Oct 2008 09:38:14 -0400 Original-Received: from ti-out-0910.google.com ([209.85.142.185]:33522) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KvuCU-0000y7-H0; Fri, 31 Oct 2008 09:38:07 -0400 Original-Received: by ti-out-0910.google.com with SMTP id u5so656698tia.10 for ; Fri, 31 Oct 2008 06:38:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=BbgeKAXqPaAYYhnH2q4Wm6MCEYQ0qIeCuzC+zVDugSY=; b=dmspmLy75iURablFN1rPEro+1d4ExU1RxI5yuy3JYi3swv7SXnQMDQjbH6oT0qU/FL mBJ/Osy4jxSO12aUFGAp8Y8BFuJCiwuk6j0nEoD6vg6dTv976eRLrLfaOt51scgV7fsf af3a49ByU95584DM95XGO6k6ocAmg5l37W2p4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=OsZOX0AHMLGzE6WtrwEhxJBhrkubjC3JiWz5WQ54reJLncjNOYAwvAYWOhtfEvJnaU Yi7aYuX2JY5DcC9brrrCacfv1P47kXMZTA47VYt5/+UlpCTTRkfsvi/2JVZitPvPTLLE xxWRucL0ZxKtkxEvORpWLVeaZDMFdP60stMb8= Original-Received: by 10.110.105.10 with SMTP id d10mr8408978tic.57.1225460282264; Fri, 31 Oct 2008 06:38:02 -0700 (PDT) Original-Received: by 10.110.93.2 with HTTP; Fri, 31 Oct 2008 06:38:02 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:105201 Archived-At: Hi, I figured it out... I guess. The port is same as pid of the process. I guess I had 2 sessions of emacs running and one in which server was not. The client finds the one without the server running and tries to connect to a port with the pid of that emacs. Hence, it fails. I think we should use some UDP based discovery of running emacs if it is not too tough... On Fri, Oct 31, 2008 at 6:40 PM, Juanma Barranquero wrote: > On Fri, Oct 31, 2008 at 13:58, dhruva wrote: > >> The second failure is because I did not use '-a' option to emacsclient > > You're right. I'm having a bad day, and it seems I'm not thinking straight. > > Now the question is, you were getting a "connect" error. How is that > related to entering the if()? When I run emacsclient, the error I get > is "could not get terminal name", as expected. > > Juanma > -- Contents reflect my personal views only!