From: Jean-Hugues ROBERT Date: 2002-05-11T19:47:45+09:00 Subject: Re: emacs, inf-ruby, run-load-file removing \ filesep on Windows ? Hello, At 19:28 11/05/2002 +0900, you wrote: >Hello, > >Windows specific issue here, don't waste your time more if you're U*x. > >I am starting to use inf-ruby.el to run Ruby program from within emacs. >Its great. However I have a problem with the ruby-load-file function. >Whenever I invoke it, I get an error msg in the *ruby* buffer: >irb(main):001:0> LoadError: No such file to load -- C:hometest.rb > from (irb):1:in `load' > from (irb):1 >nota: should load C:\home\test.rb, not C:hometest.rb > >I had a look at inf-ruby.el and I suspect that the problem is about the >following code removing \ fileseps: > (comint-send-string (ruby-proc) (concat "(load \"" > file-name > "\"\)\n"))) >What is the elisp function to escape all \ into \\ in a string ? I don't know. But changing " into ' is OK too. The reason is: it is Ruby that removes the \ when evaluation (load "C:\home\test.rb") whereas it does not for (load 'C:\home\test.rb'). Matz, I think you are the maintainer of inf-ruby.ev, you may want to modify it so that it works better on Windows (and also handle well strangely named files with \ in their name...) Yours, Jean-Hugues ------------------------------------------------------------------------- Web: http://hdl.handle.net/1030.37/1.1 Phone: +33 (0) 4 92 27 74 17