all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman.073@student.lu.se>
Cc: Emacs-devel@gnu.org
Subject: Re: emacsclient: --quiet/--verbose
Date: Sat, 02 Dec 2006 20:03:36 +0100	[thread overview]
Message-ID: <4571CE08.3030708@student.lu.se> (raw)
In-Reply-To: <7632932.post@talk.nabble.com>

Michael Mauger wrote:
> 
> 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


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?

  reply	other threads:[~2006-12-02 19:03 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
2006-12-02 19:03         ` Lennart Borgman [this message]
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=4571CE08.3030708@student.lu.se \
    --to=lennart.borgman.073@student.lu.se \
    --cc=Emacs-devel@gnu.org \
    /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.