Mark Triggs <[EMAIL PROTECTED]> writes:
> Hi guys,
Hi !
> I've finally got a bit of time free, so I thought I'd take a look at a
> few of the outstanding bugs. I've added a tla-update-like interface to
> tla-replay,
Thanks :-)
> but I found it to be painfully slow due to tla-unescape.
I thought the same. Actually, tla-inventory was much worse.
> I'm not all that familiar with tla's new file escaping stuff, but could
> we have our own elisp implementation instead?
Merge from the mainline, there's something better: escaping is done
only when the file contains characters other than "[^a-zA-Z._+,{}-]"
(actually, we don't use /escaping/ in xtla, but it's implemented just
in case), and unescaping is done only if the escaped string contains
'\'.
> [ lisp code ]
>
> seems to work for me.
For the cases you have tested. But escaping is done for many more
characters than this :
$ touch été
$ tla add été
$ tla inventory
[...]
U \(U+E9)t\(U+E9)
$ _
Implementing all this in pure elisp would be probably even slower ...
Another option would be to call "tla inventory --unescaped", but this
would not work if filenames contain newlines character.
--
Matthieu