This evening, Stefan Reichör wrote:
> [EMAIL PROTECTED] (Edgar Gonçalves) writes:
>
>> This morning, Matthieu Moy wrote:
>>> Stefan Reichör <[EMAIL PROTECTED]> writes:
>>>
>>>>>     (replace-regexp-in-string "\""
>>>>>                         ""
>>>>>                         (mapconcat 'shell-quote-argument
>>>>>                                    (cons executable
>>>>>                                          (delq nil list-args))
>>>>>                                    " "))))
>>>>
>>>> Shouldn't the replacement string (after replace-regexp-in-string) be "\\"" 
>>>> instead of "\""?
>>>
>>> Indeed, in the mail I received, it _was_ "\\"" !
>>>
>>>   https://mail.gna.org/public/xtla-el-dev/2006-03/msg00071.html
>>>
>>> Probably your Gnus or someone has eaten the third '\' ...
>>
>> Or perhaps my sight alone... My bad, I've been using the 3 '\'s and a quote
>> regexp, all along! Sorry for the confusion...
>
> So that is really strange now.
> The third \ in Matthieu's mail is gone also.
>
> Edgar could you please try the function below (three \):
>
> (defun dvc-build-dvc-command (dvc list-args)
>   "Build a shell command to run DVC with args LIST-ARGS.
> DVC can be one of 'baz, 'xhg, ..."
>   (let* ((executable (dvc-variable dvc "executable"))
>          (cmd (mapconcat 'shell-quote-argument
>                          (cons executable
>                                (delq nil list-args))
>                          " ")))
>     (when (eq system-type 'windows-nt)
>       (setq cmd (replace-regexp-in-string "\\\"" "" cmd)))
>     cmd))
>
> If it works, I will commit it to my tree.

All fine, I had made a similar function, following your suggestion to check for
'windows-nt. Now DVC works out of the box in windows. The only troubles I had
were on autoconfig/configure/makefile, but I'll give it another test soon and
give you my results on that.

Right now, my dvc configuration is this (followed by your function):

(add-emacs-module-to-load-path "dvc/lisp")
(add-emacs-module-to-load-path "dvc/lisp/contrib")
(require 'dvc-autoloads)
(dvc-insinuate-gnus)


Thanks for everything, you've been great!
-- 
Edgar Gonçalves
Software Engineering Group @ INESC-ID
IST/Technical University of Lisbon
Rua Alves Redol, 9, Room 635              
1000-029 Lisboa, Portugal                 
mailto:[EMAIL PROTECTED]
http://www.esw.inesc-id.pt/~eemg

_______________________________________________
Xtla-el-dev mailing list
[email protected]
https://mail.gna.org/listinfo/xtla-el-dev

Reply via email to