+2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
+
+ * net/browse-url.el (browse-url-default-windows-browser): Use
+ cygstart for cygwin.
+
2009-11-20 Karl Fogel <karl.fogel@red-bean.com>
* bookmark.el Formatting and doc fixes only:
(defun browse-url-default-windows-browser (url &optional new-window)
(interactive (browse-url-interactive-arg "URL: "))
- (if (eq system-type 'ms-dos)
- (if dos-windows-version
- (shell-command (concat "start " (shell-quote-argument url)))
- (error "Browsing URLs is not supported on this system"))
- (w32-shell-execute "open" url)))
+ (cond ((eq system-type 'ms-dos)
+ (if dos-windows-version
+ (shell-command (concat "start " (shell-quote-argument url)))
+ (error "Browsing URLs is not supported on this system")))
+ ((eq system-type 'cygwin)
+ (shell-command (concat "cygstart " (shell-quote-argument url))))
+ (t (w32-shell-execute "open" url))))
(defun browse-url-default-macosx-browser (url &optional new-window)
(interactive (browse-url-interactive-arg "URL: "))