From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel,gmane.spam.detected Subject: [Fwd: Mail delivery failed: returning message to sender] Date: Mon, 07 Jan 2008 21:27:59 +0100 Message-ID: <47828B4F.1020105@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1199737696 28600 80.91.229.12 (7 Jan 2008 20:28:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2008 20:28:16 +0000 (UTC) To: Emacs Devel , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 07 21:28:37 2008 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 1JByaJ-0004UZ-2j for ged-emacs-devel@m.gmane.org; Mon, 07 Jan 2008 21:28:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JByZv-0001oj-VL for ged-emacs-devel@m.gmane.org; Mon, 07 Jan 2008 15:28:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JByZr-0001mE-2I for emacs-devel@gnu.org; Mon, 07 Jan 2008 15:28:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JByZq-0001lc-IB for emacs-devel@gnu.org; Mon, 07 Jan 2008 15:28:06 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JByZq-0001lO-9H for emacs-devel@gnu.org; Mon, 07 Jan 2008 15:28:06 -0500 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JByZp-0000Ga-GO for emacs-devel@gnu.org; Mon, 07 Jan 2008 15:28:06 -0500 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:62019 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JByZl-0002aW-7k; Mon, 07 Jan 2008 21:28:04 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 X-Antivirus: avast! (VPS 080107-0, 2008-01-07), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.148.228 X-Scan-Result: No virus found in message 1JByZl-0002aW-7k. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1JByZl-0002aW-7k 9f27ad3a8a4aaa5aeb6f3a450f3ff621 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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 X-Spam-Report: 10.0 points; * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * -0.0 SPF_PASS SPF: sender matches SPF record * 2.5 BOUNCE_TRANSCRIPT_550_5 BODY: Looks like SMTP transcript with 550 error (5) * 2.0 BOUNCE_TRANSCRIPT_RECEIVED BODY: Looks like message transcript with 'Received:' header * 2.5 BOUNCE_COULD_NOT_BE_DELIVERED BODY: Message says 'could not be delivered', so probably a bounce * -4.0 LINUX_STUFF_2 BODY: Linux configuration * 2.5 BOUNCE_RCPT_TO BODY: Message looks like SMTP transcript with 'RCPT TO' * 0.5 BOUNCE_UNKNOWN_USER BODY: 'unknown user', perhaps a bounce * 2.0 BOUNCE_CREATED_AUTOMATICALLY BODY: Message says created by mail delivery software * 2.0 BOUNCE_COPY_OF_MESSAGE BODY: 'a copy of the message', likely a failure report Xref: news.gmane.org gmane.emacs.devel:86511 gmane.spam.detected:2991860 Archived-At: I got this in return, see below for the actual message -------- Original Message -------- Subject: Mail delivery failed: returning message to sender Date: Mon, 07 Jan 2008 15:23:02 -0500 From: Mail Delivery System To: lennart.borgman@gmail.com This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: emacs-pretest-bug@gnu.org SMTP error from remote mail server after RCPT TO:: host fencepost.gnu.org [140.186.70.10]: 550 unknown user ------ This is a copy of the message, including all the headers. ------ Return-path: Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JByUt-0007yN-98 for emacs-pretest-bug@gnu.org; Mon, 07 Jan 2008 15:23:02 -0500 Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JByUs-0007yB-Qw for emacs-pretest-bug@gnu.org; Mon, 07 Jan 2008 15:22:59 -0500 Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:62003 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JByUq-0007fK-5e; Mon, 07 Jan 2008 21:22:57 +0100 Message-ID: <47828A14.1050509@gmail.com> Date: Mon, 07 Jan 2008 21:22:44 +0100 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: emacs-pretest-bug@gnu.org, Stefan Monnier Subject: Re: 23.0.50; DISPLAY env var bug on w32? References: <47827356.70005@gmail.com> In-Reply-To: <47827356.70005@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 080107-0, 2008-01-07), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.148.228 X-Scan-Result: No virus found in message 1JByUq-0007fK-5e. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1JByUq-0007fK-5e ccbfddb287e6cf8ea97cbe46f403cd00 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) Lennart Borgman (gmail) wrote: > I can not use emacsclient to open files unless I delete the > environmental variable DISPLAY. > > To reproduce the problem do > > emacs -Q > M-x server-mode > > Then from the command line try to open a file, for example > > emacsclient.exe COPYING > > This fails with the message > > C:\emacs\u\080104\emacs\bin>emacsclient.exe COPYING > Waiting for Emacs... > *ERROR*: Don't know how to create a frame on window system x It looks like several possible bugs to me. A call from emacsclient leads to server-process-filter and since tty-name is nil this calls server-select-display In this function there is a check (equal (frame-parameter (selected-frame) 'display) display)) This fails since (frame-parameter (selected-frame) 'display) returns "". I would expect it to return "localhost:0.0" in my case. The reason for this is explained further below. Now this leads to a call to make-frame-on-display which finishes with a line at the bottom saying (make-frame `((window-system . x) (display . ,display) . ,parameters))) The correct window-system seems to be 'w32 in my case, since that is what works inf make-frame. The variable frame-creation-function-alist used there is ((w32 . x-create-frame-with-faces) (nil . tty-create-frame-with-faces)) If I use this then the frame actually get the display property "localhost:0.0" and that is why I believe that this is what it should have from the beginning. So this is bug 1 here I believe. But 2 is the hard coded value in the last line of make-frame-on-display. It looks like window-system should be something different there. When I try to find out what I see in server-process-filter some lines saying ;; -window-system: Open a new X frame. ((equal "-window-system" arg) (setq dontkill t) (setq tty-name 'window-system)) Those are a bit surprising to me since I expect an analogous use of something called "window-system" throughout the code. Obviously that is not the case here. And here I stop speculating because there might be some mistake in the structure here. Someone who understands this code better than I do can perhaps see more clearly what is needed.