Thanks to all who tried to help with this. I am giving up on it and wrote a function as a workaround, please see the bug report on
http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=4951 (It will appear there soon.) On Thu, Nov 19, 2009 at 1:40 PM, Lennart Borgman <lennart.borg...@gmail.com> wrote: > I have got a problem with w32-shell-execute and file:/// URLs. It > looks like Jason Rumney and I get different results and I do not know > why. I need the help of couple of persons to test if the below calls > works or not. Could perhaps you test? > > Please replace the file argument to a valid file and try the calls > below. Just place the cursor after the ) char and press C-x C-e. I > want to know if it opens the file in the web browser or not. > > (w32-shell-execute "open" "c:/some/file.html") ;; OK > (w32-shell-execute nil "file:c:/some/file.html") ;; OK > (w32-shell-execute nil "file:///c:/some/file.html") ;; OK > (w32-shell-execute "open" "file:///c:/some/file.html") ;; Doesn't work > (w32-shell-execute "open" "file:c:/some/file.html") ;; Doesn't work >