From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: MobileOrg, webdav, correct use of org-mobile-directory? Date: Sat, 18 Aug 2012 22:41:55 -0400 Message-ID: <5462.1345344115@alphaville> References: <87d32w6cqj.wl%jamshark70@dewdrop-world.net> <29702.1344745760@alphaville> <32411.1344777066@alphaville> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2vSn-0005HQ-ML for emacs-orgmode@gnu.org; Sat, 18 Aug 2012 22:42:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T2vSm-0003dW-Hi for emacs-orgmode@gnu.org; Sat, 18 Aug 2012 22:42:05 -0400 Received: from g1t0028.austin.hp.com ([15.216.28.35]:10909) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2vSm-0003cy-B6 for emacs-orgmode@gnu.org; Sat, 18 Aug 2012 22:42:04 -0400 In-Reply-To: Message from Adam Spiers of "Sun, 19 Aug 2012 00:25:31 BST." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Adam Spiers Cc: jamshark70@dewdrop-world.net, emacs-orgmode@gnu.org Adam Spiers wrote: > > > > > org-mobile-directory: /scpc:**user**@localhost:80/webdav/ > > > > > > > > This looks wrong > > Yes, it doesn't make sense to use tramp to scp files to localhost :-) > > > Your other email shows that you figured this out. > > > > > 2. This destination is modeled on the docs, so if it's wrong, then so is the doc. > > > > Not really: the destination in the doc does not specify the port (80). > > That's the HTTP port, so scp won't work with that - that's what I picked > > up when I said it looked wrong. It needs the sshd port (22 by default > > and implied if you leave it out of the scp path in tramp). > > Right, but scp'ing to localhost doesn't make sense. He should just > use the normal local filesystem path instead and skip tramp. > Well, to pick a nit: many times one has to model a multi-machine situation on a single machine; after everything is debugged, then various pieces are installed on various machines. It makes sense in that situation to use tramp/scp and webdav/http even locallly. Nick PS. For another example, sometimes I use tramp/scp to edit local files as a different user than the owner of the emacs process, e.g. files owned by root, particularly when there is a number of them that need to be changed and they are in the same directory: use tramp to open the directory as root and then dired to open files. Most of the time however, I do such minor changes with "sudo ed" in a shell buffer :-)