From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Mauger Newsgroups: gmane.emacs.devel Subject: Re: emacsclient: --quiet/--verbose Date: Thu, 30 Nov 2006 19:39:23 -0800 (PST) Message-ID: <7632932.post@talk.nabble.com> References: <20061130053411.89278.qmail@web62514.mail.re1.yahoo.com> <7631420.post@talk.nabble.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1164944389 24303 80.91.229.2 (1 Dec 2006 03:39:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 1 Dec 2006 03:39:49 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 01 04:39:42 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GpzFT-0002n6-9a for ged-emacs-devel@m.gmane.org; Fri, 01 Dec 2006 04:39:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpzFS-0004Hw-Ov for ged-emacs-devel@m.gmane.org; Thu, 30 Nov 2006 22:39:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GpzFG-0004Fh-83 for emacs-devel@gnu.org; Thu, 30 Nov 2006 22:39:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GpzFF-0004Eg-I9 for Emacs-devel@gnu.org; Thu, 30 Nov 2006 22:39:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpzFF-0004EU-Dp for Emacs-devel@gnu.org; Thu, 30 Nov 2006 22:39:25 -0500 Original-Received: from [72.21.53.35] (helo=talk.nabble.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GpzFF-0003O5-CT for Emacs-devel@gnu.org; Thu, 30 Nov 2006 22:39:25 -0500 Original-Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GpzFD-0001GN-S6 for Emacs-devel@gnu.org; Thu, 30 Nov 2006 19:39:23 -0800 Original-To: Emacs-devel@gnu.org In-Reply-To: X-Nabble-From: mmaug@yahoo.com 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:63180 Archived-At: Juanma Barranquero wrote: > > On 12/1/06, Michael Mauger wrote: > >> Finally, if people could take another look at the Tramp changes I >> proposed >> for emacsclient. > > I don't have anything about emacsclient using Tramp, as long as it is > not the only way, of course. TCP sockets are fine for my uses. > > See http://lists.gnu.org/archive/html/emacs-devel/2006-11/msg01195.html for the Tramp patch. The use of Tramp doesn't impact how emacsclient and emacs communicate. It has to do with how does emacs addresses the file that resides on a remote machine. My patch allowed you on the remote machine to address the file locally to emacsclient, but pass a filename that would appear remote to emacs. Obviously, if emacsclient and emacs were on the same machine, the Tramp settings would not be set and things would work as they do now. (The version of gnuclient I use to use had a similar feature that spoiled me rotten.) An example: me@aaa $ emacs & me@aaa $ ssh bbb -l me me@bbb $ scp me@aaa:.emacs.d/server/server ~/.emacs.d/server/me-aaa me@bbb $ EMACS_SERVER_FILE=$HOME/.emacs.d/server/me-aaa me@bbb $ export EMACS_SERVER_FILE me@bbb $ cd /etc (Now I want to edit the /etc/hosts file but there is no emacs available on bbb, so I ask to edit it in the emacs instance under me@aaa) me@bbb $ emacsclient /me@bbb:/etc/hosts # without Tramp support # Must specify Tramp prefix and absolute file name me@bbb $ EMACS_TRAMP_PREFIX=/me@bbb: me@bbb $ export EMACS_TRAMP_PREFIX me@bbb $ emacsclient hosts # same as above with Tramp support # emacsclient sends Tramp prefix and makes filename absolute Without the Tramp support, I cannot use emacsclient on the second/remote host as a value for EDITOR, et al.. As I mentioned, I have an updated version of this patch. The one in the original thread crashes when EMACS_TRAMP_PREFIX is not set, but it's easily fixed by adding "if (tramp_prefix)" before the "SEND_QUOTED (tramp_prefix);". -- View this message in context: http://www.nabble.com/emacsclient%3A---quiet---verbose-tf2733832.html#a7632932 Sent from the Emacs - Dev mailing list archive at Nabble.com.