Issue214

classification
Title Workaround for browse-url and friends on Windows
Type Module
Severity Platform
Keywords
explanation
process
These optional controls are only of interest to committers and tracker administrators.
Status chatting   Reason
Superseder   Submitted 2008-01-08.09:03:40
Priority   Assigned To
Nosy List  

Created on 2008-01-19.06:43:15 by pete.forman, last changed 2008-01-19.06:43:15 by aidan.

Messages
msg370 [hidden] ([hidden]) Date: 2008-01-19.06:43:15
  Message-ID: <18307.63661.367687.827639@parhasard.net>
Ar an t-ochtú lá de mí Eanair, scríobh Pete Forman: 

 > [retry]

Sorry to have ignored you :-( .

 > I've just updated from 21.5.17 to 21.5.28 on XP native using the
 > pre-built binary kit.  I found that clicking on links no longer opened
 > them in my external browser.  A simple illustration in *scratch* is:
 > 
 > (mswindows-shell-execute "open" "http://www.xemacs.org/")
 > 
 > 21.5.17 successfully opens the page in my external browser.  21.5.28
 > gives the following error:
 > 
 > Process error: Running ShellExecute, "The system cannot find the file
 > specified.  ", "open", "http://www.xemacs.org/"
 > 
 > Ben Wing put his hand up for this in a message of 2005-10-20:
 > 
 > http://article.gmane.org/gmane.emacs.xemacs.beta/20772
 > 
 > 
 > So a workaround is to set mswindows-shortcuts-are-symlinks to nil.
 > Links now work.
 > 
 > 
 > Another example that needs the workaround is:
 > 
 > (mswindows-shell-execute "explore" "c:")

Could you do a #'report-xemacs-bug from a build of XEmacs that definitely
exhibits this behaviour? I’ve tried to reproduce it with both a Cygwin and a
native build on Windows XP, but I can’t manage it;

(mswindows-shell-execute "open" "http://www.xemacs.org/")

always gives „Zugriff verweigert“, which would be whatever the Windows
phrasing for “permission denied” is--independent of the value of
mswindows-shortcuts-are-symlinks--as does your second example. However,

(mswindows-shell-execute "open" "C:\\")

always works for me.
msg369 [hidden] ([hidden]) Date: 2008-01-19.06:43:15
  Message-ID: <4pdoadub.fsf@wgmail2.gatwick.eur.slb.com>
[retry]

I've just updated from 21.5.17 to 21.5.28 on XP native using the
pre-built binary kit.  I found that clicking on links no longer opened
them in my external browser.  A simple illustration in *scratch* is:

(mswindows-shell-execute "open" "http://www.xemacs.org/")

21.5.17 successfully opens the page in my external browser.  21.5.28
gives the following error:

Process error: Running ShellExecute, "The system cannot find the file
specified.  ", "open", "http://www.xemacs.org/"

Ben Wing put his hand up for this in a message of 2005-10-20:

http://article.gmane.org/gmane.emacs.xemacs.beta/20772

So a workaround is to set mswindows-shortcuts-are-symlinks to nil.
Links now work.

Another example that needs the workaround is:

(mswindows-shell-execute "explore" "c:")
History
Date User Action Args
2008-01-19 06:43:15aidansetstatus: new -> chatting
messages: + msg370
2008-01-19 06:43:15pete.formancreate