[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [emacs-wiki-discuss] Re: "Trailing backslash" error generated when
From: |
Tim O Callaghan |
Subject: |
Re: [emacs-wiki-discuss] Re: "Trailing backslash" error generated when trying to use Muse mode |
Date: |
Fri, 29 Jul 2005 11:35:05 +0100 (IST) |
User-agent: |
SquirrelMail/1.4.4 |
> Tim O Callaghan writes:
>
>> After a bit more digging, i know where the problem is.
>> In the function muse-project-of-file in muse-project.el when it tries a
>> 'string-match' on the two windows paths, it dies. I guess its the ':' in
>> the regexp thats the problem.
>
>> Here's the debugger backtrace output.
>> Debugger entered--Lisp error: (invalid-regexp "Trailing backslash")
>> string-match("c:\\home\\tim\\projects\\"
>> "c:\\home\\tim\\.xemacs\\site-lisp\\muse\\examples\\QuickStart")
>
> No, the problem is the string is used as a regexp, without
> being escaped. But it's not a regexp. I guess changing the
> following in 'muse-project-of-file' will solve the problem:
>
> (string-match truename file))
>
> in:
>
> (string-match (regexp-quote truename) file))
>
> But for now, you can try to change the following in your
> ~/.emacs.el file:
>
Wierldy enough, i had just finished tracking it down, and was just about
to post this as a fix. The change must be made to Line 400 of
muse-project.el, and it works like a charm.
now, to integrate planner muse.....
Tim.