[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Re: "Trailing backslash" error generated when tryin
From: |
drkm |
Subject: |
[emacs-wiki-discuss] Re: "Trailing backslash" error generated when trying to use Muse mode |
Date: |
Fri, 29 Jul 2005 11:55:07 +0200 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (windows-nt) |
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:
"c:\\home\\tim\\projects\\"
in:
"c:\\home\\tim\\projects"
or even better, if it works:
"c:/home/tim/projects/"
--drkm