Sorry for the late reply.  All five test cases work for me.

Win XP Pro SP3
GNU Emacs 22.0.50.1 (i386-mingw-nt5.1.2600) of 2006-03-21 on YAMALOK
(pre-compiled binary).
Firefox 3.5.5 is set as default browser.

I attached the export of HKEY_CLASSES_ROOT\.htm as a TXT document.  The
HKLM version contains identical info, and I have no .htm under the HKCU
path.

HTH!

- Ray

-----Original Message-----
Date: Thu, 19 Nov 2009 13:40:03 +0100
From: Lennart Borgman <[email protected]>
Subject: [h-e-w] Please test w32-shell-execute
To: [email protected]
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset=UTF-8

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


Date: Thu, 19 Nov 2009 16:14:56 +0100
From: Lennart Borgman <[email protected]>
Subject: Re: [h-e-w] Please test w32-shell-execute
To: Drew Adams <[email protected]>
Cc: [email protected]
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset=UTF-8

On Thu, Nov 19, 2009 at 3:52 PM, Drew Adams <[email protected]>
wrote:
>> I get the same as you, Lennart.
>>
>> The last two do not open the browser, and they do not raise
>> an error - they seem to do nothing.
>
> I should have added that that is with the 23.1 Emacs release on
Windows XP SP3,
> using `emacs -Q'.


Thanks for all responses. I think there must be some Registry entries
responsible for the difference. Does anyone know which those might be?

I guess the relavant entries are at

   HKEY_CURRENT_USER\Software\Classes\file
   HKEY_LOCAL_MACHINE\SOFTWARE\Classes\file
   HKEY_CLASSES_ROOT\file

Could someone for whom it worked in all cases export these keys and
send them here?
ÿþWindows Registry Editor Version 5.00



[HKEY_CLASSES_ROOT\.htm]

"PerceivedType"="text"

...@="FirefoxHTML"

"Content Type"="text/html"



[HKEY_CLASSES_ROOT\.htm\OpenWithList]



[HKEY_CLASSES_ROOT\.htm\OpenWithList\devenv.exe]

...@=""



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Excel.exe]



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Excel.exe\shell]



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Excel.exe\shell\edit]



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Excel.exe\shell\edit\command]

...@="\"C:\\Program Files\\Microsoft 
Office\\Office\\EXCEL.EXE\" /e"

"command"=hex(7):32,00,36,00,2c,00,21,00,21,00,67,00,78,00,73,00,66,00,28,00,\

  
4e,00,67,00,5d,00,71,00,46,00,60,00,48,00,7b,00,4c,00,73,00,45,00,58,00,43,\

  
00,45,00,4c,00,46,00,69,00,6c,00,65,00,73,00,3e,00,78,00,6c,00,54,00,5d,00,\

  
6a,00,49,00,7b,00,6a,00,66,00,28,00,3d,00,31,00,26,00,4c,00,5b,00,2d,00,38,\

  
00,31,00,2d,00,5d,00,20,00,2f,00,65,00,00,00,00,00



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Excel.exe\shell\edit\ddeexec]

...@="[open(\"%1\")]"



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Excel.exe\shell\edit\ddeexec\application]

...@="Excel"



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Excel.exe\shell\edit\ddeexec\topic]

...@="system"



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Microsoft
 Excel for Windows]



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Microsoft
 Excel for Windows\shell]



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Microsoft
 Excel for Windows\shell\edit]



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Microsoft
 Excel for Windows\shell\edit\command]

...@="\"C:\\Program Files\\Microsoft 
Office\\Office\\EXCEL.EXE\" /e"

"command"=hex(7):32,00,36,00,2c,00,21,00,21,00,67,00,78,00,73,00,66,00,28,00,\

  
4e,00,67,00,5d,00,71,00,46,00,60,00,48,00,7b,00,4c,00,73,00,45,00,58,00,43,\

  
00,45,00,4c,00,46,00,69,00,6c,00,65,00,73,00,3e,00,78,00,6c,00,54,00,5d,00,\

  
6a,00,49,00,7b,00,6a,00,66,00,28,00,3d,00,31,00,26,00,4c,00,5b,00,2d,00,38,\

  
00,31,00,2d,00,5d,00,20,00,2f,00,65,00,00,00,00,00



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Microsoft
 Excel for Windows\shell\edit\ddeexec]

...@="[open(\"%1\")]"



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Microsoft
 Excel for 
Windows\shell\edit\ddeexec\application]

...@="Excel"



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Microsoft
 Excel for 
Windows\shell\edit\ddeexec\topic]

...@="system"



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Microsoft
 Office Publisher]



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Microsoft
 Office Publisher\shell]



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Microsoft
 Office Publisher\shell\edit]

...@="&Open"



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Microsoft
 Office Publisher\shell\edit\command]

...@="\"C:\\Program Files\\Microsoft 
Office\\Office12\\MSPUB.EXE\" %1"

"command"=hex(7):77,00,5f,00,31,00,5e,00,56,00,41,00,21,00,21,00,21,00,21,00,\

  
21,00,21,00,21,00,21,00,21,00,4d,00,4b,00,4b,00,53,00,6b,00,50,00,75,00,62,\

  
00,50,00,72,00,69,00,6d,00,61,00,72,00,79,00,3e,00,74,00,57,00,7b,00,7e,00,\

  
24,00,34,00,51,00,5d,00,63,00,40,00,3f,00,46,00,40,00,36,00,6b,00,78,00,61,\

  
00,54,00,4f,00,35,00,20,00,25,00,31,00,00,00,00,00



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Microsoft
 Word for Windows]



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Microsoft
 Word for Windows\shell]



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Microsoft
 Word for Windows\shell\edit]

...@="&Open"



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Microsoft
 Word for Windows\shell\edit\command]

...@="\"C:\\Program Files\\Microsoft 
Office\\Office\\WINWORD.EXE\" /n"

"command"=hex(7):32,00,36,00,2c,00,21,00,21,00,67,00,78,00,73,00,66,00,28,00,\

  
4e,00,67,00,5d,00,71,00,46,00,60,00,48,00,7b,00,4c,00,73,00,57,00,4f,00,52,\

  
00,44,00,46,00,69,00,6c,00,65,00,73,00,3e,00,6c,00,6c,00,54,00,5d,00,6a,00,\

  
49,00,7b,00,6a,00,66,00,28,00,3d,00,31,00,26,00,4c,00,5b,00,2d,00,38,00,31,\

  
00,2d,00,5d,00,20,00,2f,00,6e,00,00,00,00,00



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Microsoft
 Word for Windows\shell\edit\ddeexec]

...@="[REM 
_DDE_Direct][FileOpen(\"%1\")]"



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Microsoft
 Word for 
Windows\shell\edit\ddeexec\Application]

...@="WinWord"



[HKEY_CLASSES_ROOT\.htm\OpenWithList\Microsoft
 Word for 
Windows\shell\edit\ddeexec\Topic]

...@="System"



[HKEY_CLASSES_ROOT\.htm\OpenWithList\MSPub.exe]



[HKEY_CLASSES_ROOT\.htm\OpenWithList\MSPub.exe\shell]



[HKEY_CLASSES_ROOT\.htm\OpenWithList\MSPub.exe\shell\edit]

...@="&Open"



[HKEY_CLASSES_ROOT\.htm\OpenWithList\MSPub.exe\shell\edit\command]

...@="\"C:\\Program Files\\Microsoft 
Office\\Office12\\MSPUB.EXE\" %1"

"command"=hex(7):77,00,5f,00,31,00,5e,00,56,00,41,00,21,00,21,00,21,00,21,00,\

  
21,00,21,00,21,00,21,00,21,00,4d,00,4b,00,4b,00,53,00,6b,00,50,00,75,00,62,\

  
00,50,00,72,00,69,00,6d,00,61,00,72,00,79,00,3e,00,74,00,57,00,7b,00,7e,00,\

  
24,00,34,00,51,00,5d,00,63,00,40,00,3f,00,46,00,40,00,36,00,6b,00,78,00,61,\

  
00,54,00,4f,00,35,00,20,00,25,00,31,00,00,00,00,00



[HKEY_CLASSES_ROOT\.htm\OpenWithList\notepad.exe]



[HKEY_CLASSES_ROOT\.htm\OpenWithList\WINWORD.EXE]



[HKEY_CLASSES_ROOT\.htm\OpenWithList\WINWORD.EXE\shell]



[HKEY_CLASSES_ROOT\.htm\OpenWithList\WINWORD.EXE\shell\edit]

...@="&Open"



[HKEY_CLASSES_ROOT\.htm\OpenWithList\WINWORD.EXE\shell\edit\command]

...@="\"C:\\Program Files\\Microsoft 
Office\\Office\\WINWORD.EXE\" /n"

"command"=hex(7):32,00,36,00,2c,00,21,00,21,00,67,00,78,00,73,00,66,00,28,00,\

  
4e,00,67,00,5d,00,71,00,46,00,60,00,48,00,7b,00,4c,00,73,00,57,00,4f,00,52,\

  
00,44,00,46,00,69,00,6c,00,65,00,73,00,3e,00,6c,00,6c,00,54,00,5d,00,6a,00,\

  
49,00,7b,00,6a,00,66,00,28,00,3d,00,31,00,26,00,4c,00,5b,00,2d,00,38,00,31,\

  
00,2d,00,5d,00,20,00,2f,00,6e,00,00,00,00,00



[HKEY_CLASSES_ROOT\.htm\OpenWithList\WINWORD.EXE\shell\edit\ddeexec]

...@="[REM 
_DDE_Direct][FileOpen(\"%1\")]"



[HKEY_CLASSES_ROOT\.htm\OpenWithList\WINWORD.EXE\shell\edit\ddeexec\Application]

...@="WinWord"



[HKEY_CLASSES_ROOT\.htm\OpenWithList\WINWORD.EXE\shell\edit\ddeexec\Topic]

...@="System"



[HKEY_CLASSES_ROOT\.htm\OpenWithProgids]



[HKEY_CLASSES_ROOT\.htm\OpenWithProgids\VisualStudio.html.7.1]

...@=""



Reply via email to