From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Suvayu Ali Newsgroups: gmane.emacs.help Subject: Re: emacs and emacsclient on different displays Date: Fri, 30 Oct 2009 08:20:50 -0700 Message-ID: <4AEB0452.4050101@gmail.com> References: <20091027042643.GA5038@barcore.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1256916665 21188 80.91.229.12 (30 Oct 2009 15:31:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Oct 2009 15:31:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 30 16:30:58 2009 Return-path: Envelope-to: geh-help-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 1N3tRE-00025W-77 for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Oct 2009 16:30:52 +0100 Original-Received: from localhost ([127.0.0.1]:51724 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3tRD-00077I-MJ for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Oct 2009 11:30:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3tHi-0007jz-0o for help-gnu-emacs@gnu.org; Fri, 30 Oct 2009 11:21:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3tHd-0007em-DM for help-gnu-emacs@gnu.org; Fri, 30 Oct 2009 11:21:00 -0400 Original-Received: from [199.232.76.173] (port=51875 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3tHa-0007eP-Ni for help-gnu-emacs@gnu.org; Fri, 30 Oct 2009 11:20:54 -0400 Original-Received: from mail-px0-f189.google.com ([209.85.216.189]:61723) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3tHa-0002CZ-CX for help-gnu-emacs@gnu.org; Fri, 30 Oct 2009 11:20:54 -0400 Original-Received: by pxi27 with SMTP id 27so1986785pxi.25 for ; Fri, 30 Oct 2009 08:20:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=h8eXSV98kaie7BpbTv+ocsLE24Ook5GY8v5IwrH/3dU=; b=hUhFH2dZWGvJwwNJLRXzX+KmByPCl5FmAmMXA8HFfP/rVPCZqlvY1VZX9m/zl7Ls9Z YUKyQjxRYEvSMtQy1D+RAm2LZWpW9nUhhlUkFjrPPXFXDfgt+Flyh5hiMMHOjd7ARjCv 4Ikf/nPwCW8ZnQ1vtU9yBgzptOygaSgfXm7Cg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=OPWsJ08PhXoy915Xtz4MUaVbo7abH1bUBsKlfrvQ4S7mnOU7Fobyn4DCseQx0sMiLa Aozg9AYUojbsSNJ3zZBoIaasiM2u0nlPHRVCwCkOqU/Mafzj4vkcCAPmQ63akcYdi1qr vTyKWslqyv6kEB6VPLT4YUUnMFXfuJueACiGw= Original-Received: by 10.114.214.28 with SMTP id m28mr1329971wag.44.1256916052868; Fri, 30 Oct 2009 08:20:52 -0700 (PDT) Original-Received: from bhishma.kuru (d66-183-41-96.bchsia.telus.net [66.183.41.96]) by mx.google.com with ESMTPS id 21sm1014653pzk.3.2009.10.30.08.20.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 30 Oct 2009 08:20:51 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Lightning/1.0pre Thunderbird/3.0b4 In-Reply-To: <20091027042643.GA5038@barcore.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:69355 Archived-At: Hi Jim, On Monday 26 October 2009 09:26 PM, Jim Barbour wrote: > Should I be able to run emacs and emacsclient on different displays? > > i.e. start emacs on my linux machine in my office, set a server name > and start an emacs server. Do work. Then, come home, ssh into the > office, and run emacsclient and use the same buffers I was using at > work. I'd like all of this to be in X windows, not in a TTY. > > i.e. > > host1 % echo DISPLAY > localhost:0.0 > host1 % emacs... > eval: (setq server-name "test1") > eval: (start-server) > ... > > > > host1 % echo $DISPLAY > localhost:14.0 > host1 % emacsclient -s test1 -c foo > Waiting for Emacs...X11 connection rejected because of wrong authentication. > *ERROR*: Connection lost to X server `localhost:14.0' > > However, if I run xterm at that same prompt, it comes up just fine. > > Can anyone let me know if what I want to do here is possible, and what > I might be doing wrong? > > Thanks Very Much, Look at this message, http://lists.gnu.org/archive/html/help-gnu-emacs/2009-09/threads.html. The rest of the thread is also very instructive about how emacsclient and tramp works. GL > Jim -- Suvayu Open source is the future. It sets us free.