From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: Re: MobileOrg, webdav, correct use of org-mobile-directory? Date: Sun, 12 Aug 2012 15:12:57 +0800 Message-ID: References: <87d32w6cqj.wl%jamshark70@dewdrop-world.net> <29702.1344745760@alphaville> Reply-To: jamshark70@dewdrop-world.net Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae9d24d3c83b82704c70c4e27 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0SM7-0005fY-H0 for emacs-orgmode@gnu.org; Sun, 12 Aug 2012 03:13:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T0SM6-0001W2-D8 for emacs-orgmode@gnu.org; Sun, 12 Aug 2012 03:12:59 -0400 Received: from mail-vc0-f169.google.com ([209.85.220.169]:65430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0SM6-0001Vy-8W for emacs-orgmode@gnu.org; Sun, 12 Aug 2012 03:12:58 -0400 Received: by vcbfl10 with SMTP id fl10so3094279vcb.0 for ; Sun, 12 Aug 2012 00:12:57 -0700 (PDT) In-Reply-To: <29702.1344745760@alphaville> 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: nicholas.dokos@hp.com, emacs-orgmode@gnu.org --14dae9d24d3c83b82704c70c4e27 Content-Type: text/plain; charset=ISO-8859-1 On Aug 12, 2012 12:29 PM, "Nick Dokos" wrote: > But from what you show below, you are not using cadaver (or anything > webdav-related for that matter) to do the copying. You are using > scp: *that*'s what you've got to get working. When configuring a new service, it's useful to conduct a minimal test to ensure that nothing is wrong with the service. That was the point of using cadaver. For my immediate needs, I think I can do without scp, since org-mode and Apache are on the same machine. The broader point is about the documentation. It says "do it this way" but "this way" doesn't work. > > org-mobile-directory: /scpc:**user**@localhost:80/webdav/ > > > > This looks wrong - if you try it with scp from the command line, can > you copy a file to that destination? 1. How do I use scp from the command line? 2. This destination is modeled on the docs, so if it's wrong, then so is the doc. > Where does org-mobile-directory point to if not the "physical location > of the webdav share"? The tramp stuff doesn't know or care about webdav > at all: it is just the mechanism that copies files from your local > machine to some other machine, so it needs to know exactly where to copy > it to. Well, it almost looks to me like org-mobile-directory is asked to do two things at once: specify the scp syntax *and* hold a path that can be resolved on the local file system. This is the source of my confusion. At best, the docs are unclear. No matter for me. I'll just set org-mobile-directory to the physical, local path that is remotely accessible by webdav. But the doc was rather misleading, suggesting that some editorial attention would be warranted. hjh --14dae9d24d3c83b82704c70c4e27 Content-Type: text/html; charset=ISO-8859-1

On Aug 12, 2012 12:29 PM, "Nick Dokos" <nicholas.dokos@hp.com> wrote:
> But from what you show below, you are not using cadaver (or anything
> webdav-related for that matter) to do the copying. You are using
> scp: *that*'s what you've got to get working.

When configuring a new service, it's useful to conduct a minimal test to ensure that nothing is wrong with the service. That was the point of using cadaver.

For my immediate needs, I think I can do without scp, since org-mode and Apache are on the same machine. The broader point is about the documentation. It says "do it this way" but "this way" doesn't work.

> > org-mobile-directory: /scpc:**user**@localhost:80/webdav/
> >
>
> This looks wrong - if you try it with scp from the command line, can
> you copy a file to that destination?

1. How do I use scp from the command line?

2. This destination is modeled on the docs, so if it's wrong, then so is the doc.

> Where does org-mobile-directory point to if not the "physical location
> of the webdav share"? The tramp stuff doesn't know or care about webdav
> at all: it is just the mechanism that copies files from your local
> machine to some other machine, so it needs to know exactly where to copy
> it to.

Well, it almost looks to me like org-mobile-directory is asked to do two things at once: specify the scp syntax *and* hold a path that can be resolved on the local file system. This is the source of my confusion.

At best, the docs are unclear.

No matter for me. I'll just set org-mobile-directory to the physical, local path that is remotely accessible by webdav. But the doc was rather misleading, suggesting that some editorial attention would be warranted.

hjh

--14dae9d24d3c83b82704c70c4e27--