diff options
| author | Lawrence Mitchell | 2011-07-13 15:49:55 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2011-07-13 15:49:55 +0200 |
| commit | 2a517d45db7725ad690cb2cbc8ad134057935c22 (patch) | |
| tree | 84194dfd85f6698591d0a21cc6825c7ce4e49106 | |
| parent | b6c78ef21f1ecaaa34439ee5c731cfb3dbda1e40 (diff) | |
| download | emacs-2a517d45db7725ad690cb2cbc8ad134057935c22.tar.gz emacs-2a517d45db7725ad690cb2cbc8ad134057935c22.zip | |
Make the default browser choice a bit more logical
* net/browse-url.el (browse-url-default-browser)
(browse-url-browser-function): Make the default browser choice a
bit more logical. Also clean up the doc string.
Fixes: debbugs:4300
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/net/browse-url.el | 17 |
2 files changed, 12 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fdc84cf51ac..3baec994c6e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-07-13 Lawrence Mitchell <wence@gmx.li> | ||
| 2 | |||
| 3 | * net/browse-url.el (browse-url-default-browser) | ||
| 4 | (browse-url-browser-function): Make the default browser choice a | ||
| 5 | bit more logical (bug#4300). Also clean up the doc string. | ||
| 6 | |||
| 1 | 2011-07-13 Juanma Barranquero <lekktu@gmail.com> | 7 | 2011-07-13 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 8 | ||
| 3 | * bindings.el (completion-ignored-extensions): Add OpenMCL/Clozure | 9 | * bindings.el (completion-ignored-extensions): Add OpenMCL/Clozure |
diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el index ac12030471e..e18b42a275f 100644 --- a/lisp/net/browse-url.el +++ b/lisp/net/browse-url.el | |||
| @@ -214,13 +214,7 @@ | |||
| 214 | 214 | ||
| 215 | ;;;###autoload | 215 | ;;;###autoload |
| 216 | (defcustom browse-url-browser-function | 216 | (defcustom browse-url-browser-function |
| 217 | (cond | 217 | 'browse-url-default-browser |
| 218 | ((memq system-type '(windows-nt ms-dos cygwin)) | ||
| 219 | 'browse-url-default-windows-browser) | ||
| 220 | ((memq system-type '(darwin)) | ||
| 221 | 'browse-url-default-macosx-browser) | ||
| 222 | (t | ||
| 223 | 'browse-url-default-browser)) | ||
| 224 | "Function to display the current buffer in a WWW browser. | 218 | "Function to display the current buffer in a WWW browser. |
| 225 | This is used by the `browse-url-at-point', `browse-url-at-mouse', and | 219 | This is used by the `browse-url-at-point', `browse-url-at-mouse', and |
| 226 | `browse-url-of-file' commands. | 220 | `browse-url-of-file' commands. |
| @@ -908,12 +902,13 @@ a random existing one. A non-nil interactive prefix argument reverses | |||
| 908 | the effect of `browse-url-new-window-flag'. | 902 | the effect of `browse-url-new-window-flag'. |
| 909 | 903 | ||
| 910 | When called non-interactively, optional second argument NEW-WINDOW is | 904 | When called non-interactively, optional second argument NEW-WINDOW is |
| 911 | used instead of `browse-url-new-window-flag'. | 905 | used instead of `browse-url-new-window-flag'." |
| 912 | |||
| 913 | The order attempted is gnome-moz-remote, Mozilla, Firefox, | ||
| 914 | Galeon, Konqueror, Netscape, Mosaic, Lynx in an xterm, and then W3." | ||
| 915 | (apply | 906 | (apply |
| 916 | (cond | 907 | (cond |
| 908 | ((memq system-type '(windows-nt ms-dos cygwin)) | ||
| 909 | 'browse-url-default-windows-browser) | ||
| 910 | ((memq system-type '(darwin)) | ||
| 911 | 'browse-url-default-macosx-browser) | ||
| 917 | ((browse-url-can-use-xdg-open) 'browse-url-xdg-open) | 912 | ((browse-url-can-use-xdg-open) 'browse-url-xdg-open) |
| 918 | ((executable-find browse-url-gnome-moz-program) 'browse-url-gnome-moz) | 913 | ((executable-find browse-url-gnome-moz-program) 'browse-url-gnome-moz) |
| 919 | ((executable-find browse-url-mozilla-program) 'browse-url-mozilla) | 914 | ((executable-find browse-url-mozilla-program) 'browse-url-mozilla) |