aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Innes1999-05-02 09:34:41 +0000
committerAndrew Innes1999-05-02 09:34:41 +0000
commitef233c018aa05847503dcbc37d5d78bd6537af82 (patch)
treefa644056b506592a3308514dcfe3291da266e5d8
parent3288d108f47db3bf90e95b69be1a510f97edb35e (diff)
downloademacs-ef233c018aa05847503dcbc37d5d78bd6537af82.tar.gz
emacs-ef233c018aa05847503dcbc37d5d78bd6537af82.zip
(browse-url-browser-function): Default to
browse-url-default-windows-browser on windows-nt. (browse-url-default-windows-browser): New function.
-rw-r--r--lisp/browse-url.el12
1 files changed, 11 insertions, 1 deletions
diff --git a/lisp/browse-url.el b/lisp/browse-url.el
index d58a8d382b9..3ac0ffe776f 100644
--- a/lisp/browse-url.el
+++ b/lisp/browse-url.el
@@ -232,7 +232,9 @@
232 232
233;;;###autoload 233;;;###autoload
234(defcustom browse-url-browser-function 234(defcustom browse-url-browser-function
235 'browse-url-netscape 235 (if (eq system-type 'windows-nt)
236 'browse-url-default-windows-browser
237 'browse-url-netscape)
236 "*Function to display the current buffer in a WWW browser. 238 "*Function to display the current buffer in a WWW browser.
237This is used by the `browse-url-at-point', `browse-url-at-mouse', and 239This is used by the `browse-url-at-point', `browse-url-at-mouse', and
238`browse-url-of-file' commands. 240`browse-url-of-file' commands.
@@ -258,6 +260,8 @@ regexp should probably be \".\" to specify a default browser."
258 (function-item :tag "MMM" :value browse-url-mmm) 260 (function-item :tag "MMM" :value browse-url-mmm)
259 (function-item :tag "Specified by `Browse Url Generic Program'" 261 (function-item :tag "Specified by `Browse Url Generic Program'"
260 :value browse-url-generic) 262 :value browse-url-generic)
263 (function-item :tag "Default Windows browser"
264 :value browse-url-default-windows-browser)
261 (function :tag "Your own function")) 265 (function :tag "Your own function"))
262 :group 'browse-url) 266 :group 'browse-url)
263 267
@@ -654,6 +658,12 @@ to use."
654;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 658;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
655;; Browser-specific commands 659;; Browser-specific commands
656 660
661;; --- Default MS-Windows browser ---
662
663(defun browse-url-default-windows-browser (url &optional new-window)
664 (interactive (browse-url-interactive-arg "URL: "))
665 (w32-shell-execute "open" url))
666
657;; --- Netscape --- 667;; --- Netscape ---
658 668
659(defun browse-url-process-environment () 669(defun browse-url-process-environment ()