Thierry asked whether you tried (file-name-directory "d:\bar\") ?

That should be (file-name-directory "d:\\bar\\"), although I'm not sure it
will be any different from (file-name-directory "d:/bar/").

My experience is that some Windows shell commands (XCopy, for example) will
need the trailing backslash specified for directories.  Maybe whatever Win32
API Emacs is calling  is enforcing this rule.  So I think this might not be
a planner or muse issue, but Windows or Emacs issue.

If you want to use exactly the same .emacs file for more than one machine,
you might need code to detect whether you're running on Windows, and, if so,
perform workarounds to these kinds of issues.

HTH

--
Raymond Zeitler <[EMAIL PROTECTED]>

-----Original Message-----
Date: Fri, 14 Sep 2007 08:50:41 -0400
From: "Mirko Vukovic" <[EMAIL PROTECTED]>
Subject: Re: [Planner-el-discuss] Planner-el-discuss Digest, Vol 17,
        Issue 13
> ---------- Forwarded message ----------
> From: John Sullivan <[EMAIL PROTECTED]>
> To: Discussion <[email protected]>
> Date: Thu, 13 Sep 2007 17:12:47 -0400
> Subject: Re: [Planner-el-discuss] Intermittent planner/muse problems (John
Sullivan)
> "Mirko Vukovic" <[EMAIL PROTECTED]> writes:
>
> >> ---------- Forwarded message ----------
> >> From: John Sullivan <[EMAIL PROTECTED]>
> >> To: Discussion <[email protected]>
> >> Date: Thu, 13 Sep 2007 00:19:44 -0400
> >> Subject: Re: [Planner-el-discuss] Intermittent planner/muse problems
> >> "Mirko Vukovic" <[EMAIL PROTECTED]> writes:
> >
> >> Try evaluating (file-name-directory "~/.plans") and see what happens.
> >>
> > To add to my previous reply:
> >
> > (file-name-directory "~/.plans") gives "~/"
>
> This seems to be a problem, right? Not related to muse or planner..

Well, I am wondering where exactly the problem lies.  I played a
bit more with file-name-directory on my Emacs (22.1.1 on windows
XP).  And in general, it seems that if the argument of file name
ends with a slash, the whole argument is returned, otherwise, the
part up to the last slash:

(file-name-directory "d:/projects/")  gives "d:/projects/"

where projects is a valid directory, and

(file-name-directory "d:/projects")  gives "d:/"

file-name-directory does not seem to care whether the path is an
existent one or not.  Trying
(fine-name-directory "d:/bar") gives "d:/"
even though bar is a non-existent directory (there is a directory foo)
and trying
(fine-name-directory "d:/bar/") gives "d:/bar"


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.487 / Virus Database: 269.13.19/1008 - Release Date: 2007-09-14
8:59 AM


_______________________________________________
Planner-el-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/planner-el-discuss

Reply via email to