From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Leech-Pepin Subject: Re: Variable `org-mobile-directory` must point to an existing directory. Multiplatform setup, howto Date: Tue, 29 May 2012 08:43:36 -0400 Message-ID: References: <4FC1FB0B.5090405@wilkesley.net> <4FC4781F.7080407@wilkesley.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZLm4-0007A6-Bz for emacs-orgmode@gnu.org; Tue, 29 May 2012 08:43:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZLlz-0006gQ-6K for emacs-orgmode@gnu.org; Tue, 29 May 2012 08:43:43 -0400 Received: from mail-pb0-f41.google.com ([209.85.160.41]:35175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZLly-0006gD-Ts for emacs-orgmode@gnu.org; Tue, 29 May 2012 08:43:39 -0400 Received: by pbbrp2 with SMTP id rp2so6090966pbb.0 for ; Tue, 29 May 2012 05:43:36 -0700 (PDT) In-Reply-To: <4FC4781F.7080407@wilkesley.net> 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: orlando.1982@gmail.com Cc: ian@manor-farm.org, emacs-orgmode@gnu.org Hello, I think by default Windows tries to treat C:\ as ~ when it isn't explicitly defined beforehand. If you evaluate the following, does it give the same Windows path as to the actual folder? #+begin_src emacs-lisp (expand-file-name "~/Dropbox/MobileOrg") #+end_src If not you'll want to try one of the following: 1) Set the Windows Environment Variable "HOME" to the desired location (C:\Users\ for example) 2) Move your Dropbox folder to the location shown by the above code snippet, it should then recognize it. 3) Replace =3D~/Dropbox/=3D in your configuration with the full path to the Dropbox folder. Regards, Jonathan On Tue, May 29, 2012 at 3:17 AM, Ian Barton wrote: > On 28/05/12 15:45, Orlando wrote: >> >> Ian Barton =C2=A0wilkesley.net> =C2=A0writes: >> >>> >>> On 26/05/12 20:00, Orlando L=C3=B3pez D. wrote: >>>> >>>> I configured emacs org-mode on a Mac, working properly, having my org >>>> files and MobileOrg file within my DropBox folder ( ~/DropBox/ ). >>>> >>>> Now, I will like to get my emacs setup working properly on my Windows >>>> box. I have been able to get it working in terms of reading my .emacs >>>> file and emacs.d folder, shared through simlink config. >>>> >>>> Everything seems to be working properly, except that when I =C2=A0want= to >>>> execute org-mobile-pull or org-mobile-push on Windows, I get the >>>> following error: "Variable `org-mobile-directory` must point to an >>>> existing directory " >>>> >>>> The problem seems to be that emacs isn't configured to read or point t= o >>>> the org-mobile directory , per the paths set in .emacs (eg. =3D >>>> "~/DropBox/ ..........."). >>>> >>> >>> Running on Linux I found I needed the following in my .emacs: >>> >>> (setq org-directory "~/dropbox/org/org_files") >>> (setq org-mobile-directory "~/dropbox/MobileOrg") >>> (setq org-mobile-inbox-for-pull >>> "~/dropbox/org/org_files/tasks/org_inbox.org") >>> >>> Have you got all these set? Somewhere there is a possible bug where a >>> misleading error message gets displayed referring to >>> org-mobile-directory, when it means org-directory. I keep meaning to tr= y >>> and track it down. >>> >>> Ian. >>> >>> >> >> >> Ian, thanks for your e-mail. >> >> I have the following configuration, which doesn=C2=B4t seems to defer in >> concept with >> yours: >> >> ;; Set to the location of your Org files on your local system >> (setq org-directory "~/DropBox/org") >> ;; Set to the name of the file where new notes will be stored >> (setq org-mobile-inbox-for-pull "~/DropBox/org/flagged.org") >> ;; Set to/MobileOrg. >> (setq org-mobile-directory "~/Dropbox/MobileOrg") >> >> Which could be the reason why Windows isn=C2=B4t locating the path to th= e >> existing >> directory? Do I need to have any specific configuration on .emacs for Ma= c >> and >> for Windows? >> > > Orlando, > > I haven't used emacs on Windows for a long time. However, I don't know if > Windows understands the concept of "~/", unless there is some emacs > configuration that allows this. Have you tried setting the paths explicit= ly > e.g. (setq org-directory "C:/DropBox/org") > > Ian. > >