From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Orlando_L=F3pez_D=2E?= Subject: Re: Variable `org-mobile-directory` must point to an existing directory. Multiplatform setup, howto Date: Tue, 29 May 2012 12:40:43 -0500 Message-ID: References: <4FC1FB0B.5090405@wilkesley.net> <4FC4781F.7080407@wilkesley.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00248c6a6a42ab4cd904c1305666 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZQPv-0008EP-K5 for emacs-orgmode@gnu.org; Tue, 29 May 2012 13:41:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZQPp-0006n3-LU for emacs-orgmode@gnu.org; Tue, 29 May 2012 13:41:11 -0400 Received: from mail-qc0-f169.google.com ([209.85.216.169]:62472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZQPp-0006jj-DU for emacs-orgmode@gnu.org; Tue, 29 May 2012 13:41:05 -0400 Received: by qcsd16 with SMTP id d16so2550079qcs.0 for ; Tue, 29 May 2012 10:41:03 -0700 (PDT) In-Reply-To: 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: Jonathan Leech-Pepin Cc: ian@manor-farm.org, emacs-orgmode@gnu.org --00248c6a6a42ab4cd904c1305666 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Yes, my user on the computer is "User". Thanks, On Tue, May 29, 2012 at 12:38 PM, Jonathan Leech-Pepin < jonathan.leechpepin@gmail.com> wrote: > Orlando, > > Is your username on the machine User? > > If it isn't you'll have to change "User" to whatever your account name is= . > > If it is the right username, then I'm not sure why it wouldn't be > detecting the correct path. > > Regards, > > On Tue, May 29, 2012 at 12:14 PM, Orlando L=F3pez D. > wrote: > > Jonathan, > > > > Thanks for your attention to this matter. > > > > After doing an evaluation, I am getting the correct path on my Windows > > machine, which is "c:/Users/User/Dropbox/MobileOrg" > > > > What do you recommend that I try next? > > > > Thanks, > > > > > > > > On Tue, May 29, 2012 at 7:43 AM, Jonathan Leech-Pepin > > wrote: > >> > >> 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 t= o > >> 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 wilkesley.net> writes: > >> >> > >> >>> > >> >>> On 26/05/12 20:00, Orlando L=F3pez 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 want > to > >> >>>> execute org-mobile-pull or org-mobile-push on Windows, I get the > >> >>>> following error: "Variable `org-mobile-directory` must point to a= n > >> >>>> existing directory " > >> >>>> > >> >>>> The problem seems to be that emacs isn't configured to read or > point > >> >>>> to > >> >>>> 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 wher= e > a > >> >>> misleading error message gets displayed referring to > >> >>> org-mobile-directory, when it means org-directory. I keep meaning = to > >> >>> try > >> >>> and track it down. > >> >>> > >> >>> Ian. > >> >>> > >> >>> > >> >> > >> >> > >> >> Ian, thanks for your e-mail. > >> >> > >> >> I have the following configuration, which doesn=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=B4t locating the path to = the > >> >> existing > >> >> directory? Do I need to have any specific configuration on .emacs f= or > >> >> Mac > >> >> and > >> >> for Windows? > >> >> > >> > > >> > Orlando, > >> > > >> > I haven't used emacs on Windows for a long time. However, I don't kn= ow > >> > if > >> > Windows understands the concept of "~/", unless there is some emacs > >> > configuration that allows this. Have you tried setting the paths > >> > explicitly > >> > e.g. (setq org-directory "C:/DropBox/org") > >> > > >> > Ian. > >> > > >> > > > > > > --00248c6a6a42ab4cd904c1305666 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Yes, my user on the computer is "User". Thanks,=A0

On Tue, May 29, 2012 at 12:38 PM, Jonathan Leech-Pepin = <jonathan.leechpepin@gmail.com> wrote:
Orlando,

Is your username on the machine User?

If it isn't you'll have to change "User" to whatever your= account name is.

If it is the right username, then I'm not sure why it wouldn't be detecting the correct path.

Regards,

On Tue, May 29, 2012 at 12:14 PM, Orlando L=F3pez D.
<orlando.1982@gmail.com>= ; wrote:
> Jonathan,
>
> Thanks for your attention to this matter.
>
> After doing an evaluation, I am getting the correct path on my Windows=
> machine, which is "c:/Users/User/Dropbox/MobileOrg"
>
> What do you recommend that I try next?
>
> Thanks,
>
>
>
> On Tue, May 29, 2012 at 7:43 AM, Jonathan Leech-Pepin
> <jonathan.leechpep= in@gmail.com> wrote:
>>
>> 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
>> =A0(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 de= sired location
>> (C:\Users\<username> for example)
>> 2) Move your Dropbox folder to the location shown by the above cod= e
>> snippet, it should then recognize it.
>> 3) Replace =3D~/Dropbox/=3D in your configuration with the full pa= th to
>> the Dropbox folder.
>>
>> Regards,
>>
>> Jonathan
>>
>> On Tue, May 29, 2012 at 3:17 AM, Ian Barton <lists@wilkesley.net> wrote:
>> > On 28/05/12 15:45, Orlando wrote:
>> >>
>> >> Ian Barton<lists<at> =A0wilkesley.net> =A0writes:
>> >>
>> >>>
>> >>> On 26/05/12 20:00, Orlando L=F3pez D. wrote:
>> >>>>
>> >>>> I configured emacs org-mode on a Mac, working pro= perly, having my org
>> >>>> files and MobileOrg file within my DropBox folder= ( ~/DropBox/ ).
>> >>>>
>> >>>> Now, I will like to get my emacs setup working pr= operly 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 c= onfig.
>> >>>>
>> >>>> Everything seems to be working properly, except t= hat when I =A0want to
>> >>>> execute org-mobile-pull or org-mobile-push on Win= dows, I get the
>> >>>> following error: "Variable `org-mobile-direc= tory` must point to an
>> >>>> existing directory "
>> >>>>
>> >>>> The problem seems to be that emacs isn't conf= igured to read or point
>> >>>> to
>> >>>> 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&quo= t;)
>> >>> (setq org-mobile-directory "~/dropbox/MobileOrg&= quot;)
>> >>> (setq org-mobile-inbox-for-pull
>> >>> "~/dropbox/org/org_files/tasks/org_inbox.org")
>> >>>
>> >>> Have you got all these set? Somewhere there is a poss= ible bug where a
>> >>> misleading error message gets displayed referring to<= br> >> >>> org-mobile-directory, when it means org-directory. I = keep meaning to
>> >>> try
>> >>> and track it down.
>> >>>
>> >>> Ian.
>> >>>
>> >>>
>> >>
>> >>
>> >> Ian, thanks for your e-mail.
>> >>
>> >> I have the following configuration, which doesn=B4t seems= to defer in
>> >> concept with
>> >> yours:
>> >>
>> >> ;; Set to the location of your Org files on your local sy= stem
>> >> (setq org-directory "~/DropBox/org")
>> >> ;; Set to the name of the file where new notes will be st= ored
>> >> (setq org-mobile-inbox-for-pull "~/DropBox/org/flagged.org")
>> >> ;; Set to<your Dropbox root directory>/MobileOrg. >> >> (setq org-mobile-directory "~/Dropbox/MobileOrg"= ;)
>> >>
>> >> Which could be the reason why Windows isn=B4t locating th= e path to the
>> >> existing
>> >> directory? Do I need to have any specific configuration o= n .emacs for
>> >> Mac
>> >> 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 the= re is some emacs
>> > configuration that allows this. Have you tried setting the pa= ths
>> > explicitly
>> > e.g. (setq org-directory "C:/DropBox/org")
>> >
>> > Ian.
>> >
>> >
>
>

--00248c6a6a42ab4cd904c1305666--