[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacsclient: --quiet/--verbose

From: Michael Mauger
Subject: Re: emacsclient: --quiet/--verbose
Date: Thu, 30 Nov 2006 19:39:23 -0800 (PST)

Juanma Barranquero wrote:
> On 12/1/06, Michael Mauger <address@hidden> 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

An example:

address@hidden $ emacs &
address@hidden $ ssh bbb -l me

address@hidden $ scp address@hidden:.emacs.d/server/server 
address@hidden $ EMACS_SERVER_FILE=$HOME/.emacs.d/server/me-aaa
address@hidden $ export EMACS_SERVER_FILE
address@hidden $ 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 address@hidden)

address@hidden $ emacsclient /address@hidden:/etc/hosts    # without Tramp 
                      # Must specify Tramp prefix and absolute file name

address@hidden $ EMACS_TRAMP_PREFIX=/address@hidden:
address@hidden $ export EMACS_TRAMP_PREFIX
address@hidden $ emacsclient hosts                          # same as above with
Tramp support
                      # emacsclient sends Tramp prefix and makes filename

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
View this message in context: 
Sent from the Emacs - Dev mailing list archive at Nabble.com.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]