;;;###autoload
(defgroup browse-url nil
"Use a web browser to look at a URL."
- :group 'applications)
+ :group 'hypermedia)
;;;###autoload
(defcustom browse-url-browser-function
:type 'string
:group 'browse-url)
+(defcustom browse-url-netscape-version
+ 3
+ "*The version of Netscape you are using.
+This affects how URL reloading is done; the mechanism changed
+incompatibly at version 4."
+ :type 'number
+ :group 'browse-url)
+
(defvar browse-url-temp-file-list '())
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun browse-url-netscape-reload ()
"Ask Netscape to reload its current document."
(interactive)
- (browse-url-netscape-send "reload"))
+ ;; Backwards incompatibility reported by
+ ;; <peter.kruse@psychologie.uni-regensburg.de>.
+ (browse-url-netscape-send (if (>= browse-url-netscape-version 4)
+ "xfeDoCommand(reload)"
+ "reload")))
(defun browse-url-netscape-send (command)
"Send a remote control command to Netscape."