From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hugh Holbrook Newsgroups: gmane.emacs.devel Subject: Re: patch for emacsclient to support GNU_NODE Date: Fri, 26 Feb 2010 14:37:14 -0800 Message-ID: <640a924a1002261437k31bcb3b6tecb3bca67294c04f@mail.gmail.com> References: <640a924a1002252258j57a6f80br9c54f9c31522f5a4@mail.gmail.com> <20100226140145.GA1520@tomas> <49436.130.55.132.103.1267194395.squirrel@webmail.lanl.gov> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1267258011 9053 80.91.229.12 (27 Feb 2010 08:06:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 27 Feb 2010 08:06:51 +0000 (UTC) Cc: tomas@tuxteam.de, emacs-devel@gnu.org To: herring@lanl.gov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 27 09:06:47 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NlHhG-0008Qz-Sa for ged-emacs-devel@m.gmane.org; Sat, 27 Feb 2010 09:06:47 +0100 Original-Received: from localhost ([127.0.0.1]:47392 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NlHhG-00063P-9L for ged-emacs-devel@m.gmane.org; Sat, 27 Feb 2010 03:06:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nl8oD-0005Nv-As for emacs-devel@gnu.org; Fri, 26 Feb 2010 17:37:21 -0500 Original-Received: from [140.186.70.92] (port=59830 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nl8oB-0005Nn-JF for emacs-devel@gnu.org; Fri, 26 Feb 2010 17:37:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nl8oA-00050m-OP for emacs-devel@gnu.org; Fri, 26 Feb 2010 17:37:19 -0500 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:33132) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nl8oA-00050f-KO for emacs-devel@gnu.org; Fri, 26 Feb 2010 17:37:18 -0500 Original-Received: by vws2 with SMTP id 2so278859vws.0 for ; Fri, 26 Feb 2010 14:37:14 -0800 (PST) Original-Received: by 10.220.124.25 with SMTP id s25mr711955vcr.128.1267223834612; Fri, 26 Feb 2010 14:37:14 -0800 (PST) In-Reply-To: <49436.130.55.132.103.1267194395.squirrel@webmail.lanl.gov> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Sat, 27 Feb 2010 03:05:43 -0500 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:121416 Archived-At: On Fri, Feb 26, 2010 at 6:26 AM, Davis Herring wrote: >> Excuse my ignorance, but where could I look up what this is for? > > It just lets emacsclient send a directory name to Emacs that (on Emacs' > machine) provides remote access to emacsclient's machine, so that Emacs > can open files that emacsclient refers to it that are not reachable with > just the literal filename given. =A0(Apparently it has to be to the root = of > that machine, since it's just prepended?) Yes, precisely. So for example, a file that is called /tmp/foobar by the emacsclient process might be reachable using NFS as /net/myhost/tmp/foobar on the host where emacs is running. You would set GNU_NODE to /net/myhost in this case. In my use case, I am invoking emacsclient from within a chrooted shell and using TCP to connect to an emacs process that is running on the same host, but outside the chroot. Every file in the chroot is nameable in the root file system, but with a different path prefix. GNU_NODE_EXCLUDE is useful if some directory is mounted with the same path on both the client and server machine. In my case, the home directory is special-cased and appears as /home/username to both the emacs and emacsclient process. Hope that helps to explain why this is useful. Thanks, -Hugh > Davis >