From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: emacsclient: --quiet/--verbose Date: Sat, 02 Dec 2006 20:03:36 +0100 Message-ID: <4571CE08.3030708@student.lu.se> References: <20061130053411.89278.qmail@web62514.mail.re1.yahoo.com> <7631420.post@talk.nabble.com> <7632932.post@talk.nabble.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1165086252 2435 80.91.229.2 (2 Dec 2006 19:04:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 2 Dec 2006 19:04:12 +0000 (UTC) Cc: Emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 02 20:04:11 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 1Gqa9h-0006SE-RK for ged-emacs-devel@m.gmane.org; Sat, 02 Dec 2006 20:04:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gqa9h-0002Q3-HF for ged-emacs-devel@m.gmane.org; Sat, 02 Dec 2006 14:04:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gqa9V-0002NG-2A for emacs-devel@gnu.org; Sat, 02 Dec 2006 14:03:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gqa9Q-0002Ma-Fn for Emacs-devel@gnu.org; Sat, 02 Dec 2006 14:03:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gqa9Q-0002MO-9r for Emacs-devel@gnu.org; Sat, 02 Dec 2006 14:03:52 -0500 Original-Received: from [80.76.149.212] (helo=ch-smtp01.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Gqa9P-0007Fj-DD for Emacs-devel@gnu.org; Sat, 02 Dec 2006 14:03:51 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:60159 helo=[192.168.123.121]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1Gqa9K-0004W3-6F; Sat, 02 Dec 2006 20:03:50 +0100 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) Original-To: Michael Mauger In-Reply-To: <7632932.post@talk.nabble.com> X-Scan-Result: No virus found in message 1Gqa9K-0004W3-6F. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1Gqa9K-0004W3-6F 83dc4882f22e967870ab95dffafa1bfa 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:63232 Archived-At: Michael Mauger wrote: > > 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 I do not think this can work. (Or am I misunderstanding something?) Emacsclient have to expand local file names before sending them to emacs server since the server and the client may have different working directories. Could not your problem be solved with a shell script that adds EMACS_TRAMP_PREFIX to the file names before calling emacsclient?