From: Michael Mauger <mmaug@yahoo.com>
Subject: Re: emacsclient: --quiet/--verbose
Date: Thu, 30 Nov 2006 19:39:23 -0800 (PST) [thread overview]
Message-ID: <7632932.post@talk.nabble.com> (raw)
In-Reply-To: <f7ccd24b0611301710y51620f90r9501a6d50d871a94@mail.gmail.com>
Juanma Barranquero wrote:
>
> On 12/1/06, Michael Mauger <mmaug@yahoo.com> 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.
next prev parent reply other threads:[~2006-12-01 3:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-30 5:34 emacsclient: --quiet/--verbose Michael Mauger
2006-11-30 22:59 ` Juanma Barranquero
2006-11-30 23:20 ` Lennart Borgman
2006-12-01 10:12 ` Eli Zaretskii
2006-12-01 0:47 ` Michael Mauger
2006-12-01 1:10 ` Juanma Barranquero
2006-12-01 3:39 ` Michael Mauger [this message]
2006-12-02 19:03 ` Lennart Borgman
2006-12-01 9:12 ` Jason Rumney
2006-12-01 13:37 ` Richard Stallman
-- strict thread matches above, loose matches on Subject: below --
2006-12-02 22:02 Michael Mauger
2006-12-03 12:25 ` Lennart Borgman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7632932.post@talk.nabble.com \
--to=mmaug@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.