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: CVS trunk emacsclient: X11 connection rejected Date: Sat, 27 Oct 2007 15:51:57 -0400 Message-ID: References: <4ky7dpbd3x.fsf@fencepost.gnu.org> <6br6jhfcz0.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193514738 22084 80.91.229.12 (27 Oct 2007 19:52:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Oct 2007 19:52:18 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 27 21:52:20 2007 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 1Ilrhj-00040W-V9 for ged-emacs-devel@m.gmane.org; Sat, 27 Oct 2007 21:52:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ilrhb-00055r-1F for ged-emacs-devel@m.gmane.org; Sat, 27 Oct 2007 15:52:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IlrhW-00055S-BN for emacs-devel@gnu.org; Sat, 27 Oct 2007 15:52:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IlrhU-00053p-As for emacs-devel@gnu.org; Sat, 27 Oct 2007 15:52:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IlrhU-00053X-4t for emacs-devel@gnu.org; Sat, 27 Oct 2007 15:52:04 -0400 Original-Received: from tomts20.bellnexxia.net ([209.226.175.74] helo=tomts20-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IlrhP-0007mZ-Py; Sat, 27 Oct 2007 15:52:00 -0400 Original-Received: from ceviche.home ([74.12.208.145]) by tomts20-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20071027195158.VLQW8273.tomts20-srv.bellnexxia.net@ceviche.home>; Sat, 27 Oct 2007 15:51:58 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id CB27DB4AB3; Sat, 27 Oct 2007 15:51:57 -0400 (EDT) In-Reply-To: <6br6jhfcz0.fsf@fencepost.gnu.org> (Glenn Morris's message of "Fri\, 26 Oct 2007 23\:33\:39 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) 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:81875 Archived-At: >> So the `emacs' server was run with XAUTHORITY=/tmp/.gdmES6K0T which >> only contains keys to contact ":0.0", where the pseudo-display setup >> by ssh on localhost:10 uses its own key, stored in ~/.Xauthority. So >> the problem is that the `emacs' server can't find the appropriate >> key because it's not looking at the right file. > I did try a test with an unset XAUTHORITY: host1> XAUTHORITY= emacs -Q -f server-start & host1> ssh host2 host2> ssh host1 emacsclient --no-wait $PWD/README > and it didn't seem to help. Maybe I should have been setting it to > ~/.Xauthority. I can't test this again till Monday now. Hmm.. so the Xauth key in /tmp/.gdmES6K0T is also in ~/.Xauthority (otherwise `emacs -Q' wouldn't have been able to open the display)? What happens if you do host2> ssh host1 host1> echo "$DISPLAY" and then use this DISPLAY (presumably somehting like "localhost:10"): go to your Emacs and type M-: (make-frame-on-display "localhost:10") RET Strefan