From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: emacsclient almost working! Date: Mon, 21 Apr 2008 22:52:45 -0400 Message-ID: References: <2cd46e7f0804211117k33a4d515p1863f2b16c9c9419@mail.gmail.com> <2cd46e7f0804211520x5d9c7e99xfe910d6c76ff71d7@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1208832916 899 80.91.229.12 (22 Apr 2008 02:55:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Apr 2008 02:55:16 +0000 (UTC) Cc: emacs-devel To: "Ken Manheimer" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 22 04:55:50 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 1Jo8fa-0000Wa-6c for ged-emacs-devel@m.gmane.org; Tue, 22 Apr 2008 04:55:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jo8eY-0005rn-7J for ged-emacs-devel@m.gmane.org; Mon, 21 Apr 2008 22:54:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jo8d7-0005Wj-O1 for emacs-devel@gnu.org; Mon, 21 Apr 2008 22:53:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jo8d5-0005VR-3p for emacs-devel@gnu.org; Mon, 21 Apr 2008 22:53:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jo8d4-0005VM-Vx for emacs-devel@gnu.org; Mon, 21 Apr 2008 22:53:11 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182] helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jo8d4-0008Oj-DA for emacs-devel@gnu.org; Mon, 21 Apr 2008 22:53:11 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai8DADfwDEjO+KGddGdsb2JhbACBUpACASqZJQ X-IronPort-AV: E=Sophos;i="4.25,691,1199682000"; d="scan'208";a="18851238" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 21 Apr 2008 22:52:45 -0400 Original-Received: from pastel.home ([206.248.161.157]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id CGW26045; Mon, 21 Apr 2008 22:52:45 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 0C04E8066; Mon, 21 Apr 2008 22:52:45 -0400 (EDT) In-Reply-To: <2cd46e7f0804211520x5d9c7e99xfe910d6c76ff71d7@mail.gmail.com> (Ken Manheimer's message of "Mon, 21 Apr 2008 18:20:17 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:95722 Archived-At: > i'm attaching the contents of the " *server*" buffer. I see at least part > of the problem - I had an environment variable CR which had the value ^M > (char 13). unsetting that environment variable prevents the problem. Thanks, does the patch below fix the problem? Stefan --- server.el.~1.164.~ 2008-04-20 17:31:51.000000000 -0400 +++ server.el 2008-04-21 22:51:49.000000000 -0400 @@ -500,8 +500,9 @@ :filter 'server-process-filter ;; We must receive file names without being decoded. ;; Those are decoded by server-process-filter according - ;; to file-name-coding-system. - :coding 'raw-text + ;; to file-name-coding-system. Also don't get + ;; confused by CRs since we don't quote them. + :coding 'raw-text-unix ;; The other args depend on the kind of socket used. (if server-use-tcp (list :family nil