GNU bug report logs -
#4300
23.1.50; bad function name: browse-url-default-browser
Previous Next
Reported by: Leo <sdl.web <at> gmail.com>
Date: Mon, 31 Aug 2009 17:20:06 UTC
Severity: minor
Tags: fixed, notabug
Fixed in version 24.1
Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 4300 in the body.
You can then email your comments to 4300 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4300
; Package
emacs
.
(Mon, 31 Aug 2009 17:20:07 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Leo <sdl.web <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Mon, 31 Aug 2009 17:20:07 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
,----[ C-h f browse-url-default-browser RET ]
| browse-url-default-browser is a compiled Lisp function in
| `browse-url.el'.
|
| (browse-url-default-browser url &rest args)
|
| Find a suitable browser and ask it to load url.
| Default to the url around or before point.
|
| When called interactively, if variable `browse-url-new-window-flag' is
| non-nil, load the document in a new window, if possible, otherwise use
| a random existing one. A non-nil interactive prefix argument reverses
| the effect of `browse-url-new-window-flag'.
|
| When called non-interactively, optional second argument NEW-WINDOW is
| used instead of `browse-url-new-window-flag'.
|
| The order attempted is gnome-moz-remote, Mozilla, Firefox,
| Galeon, Konqueror, Netscape, Mosaic, Lynx in an xterm, and then W3.
|
| [back]
`----
The only thing that is related to 'default' is it uses url around point
by default. But the name is misleading, for example, emacs-w3m uses it
to open a default external browser, but it will open bizarre browsers on
OS X or Windows.
I wonder if the function name can be improved, for example,
browse-url-try-browsers.
Thanks.
Leo
Severity set to 'minor' from 'normal'
Request was from
Juanma Barranquero <lekktu <at> gmail.com>
to
control <at> emacsbugs.donarmstrong.com
.
(Thu, 22 Oct 2009 09:40:20 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#4300
; Package
emacs
.
(Tue, 12 Jul 2011 21:38:01 GMT)
Full text and
rfc822 format available.
Message #10 received at 4300 <at> debbugs.gnu.org (full text, mbox):
Leo <sdl.web <at> gmail.com> writes:
> ,----[ C-h f browse-url-default-browser RET ]
> | browse-url-default-browser is a compiled Lisp function in
> | `browse-url.el'.
[...]
> The only thing that is related to 'default' is it uses url around point
> by default. But the name is misleading, for example, emacs-w3m uses it
> to open a default external browser, but it will open bizarre browsers on
> OS X or Windows.
>
> I wonder if the function name can be improved, for example,
> browse-url-try-browsers.
I think the function name is clear enough, and renaming it would
introduce churn for little extra gain, so I'm closing this report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Added tag(s) notabug.
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Tue, 12 Jul 2011 21:38:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
4300 <at> debbugs.gnu.org and Leo <sdl.web <at> gmail.com>
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Tue, 12 Jul 2011 21:38:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#4300
; Package
emacs
.
(Wed, 13 Jul 2011 01:57:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 4300 <at> debbugs.gnu.org (full text, mbox):
On 2011-07-13 05:37 +0800, Lars Magne Ingebrigtsen wrote:
> I think the function name is clear enough, and renaming it would
> introduce churn for little extra gain, so I'm closing this report.
Lars,
The function name is misleading in that it does not find the default
browser on the OS to open url. For example, on OSX, it opens up an
xterm, which is ridiculous to most OSX users.
Changing a function name to better introduces no churn and helps 3rd
party developers improve their code.
Cheers,
Leo
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#4300
; Package
emacs
.
(Wed, 13 Jul 2011 08:14:02 GMT)
Full text and
rfc822 format available.
Message #20 received at submit <at> debbugs.gnu.org (full text, mbox):
Leo wrote:
> On 2011-07-13 05:37 +0800, Lars Magne Ingebrigtsen wrote:
>> I think the function name is clear enough, and renaming it would
>> introduce churn for little extra gain, so I'm closing this report.
> Lars,
> The function name is misleading in that it does not find the default
> browser on the OS to open url. For example, on OSX, it opens up an
> xterm, which is ridiculous to most OSX users.
> Changing a function name to better introduces no churn and helps 3rd
> party developers improve their code.
How about this patch, which doesn't change the name, but does stop
it from lying. It also removes the (unnecessary, and indeed
incorrect) implementation description from
browse-url-default-browser.
diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el
index ac12030..e18b42a 100644
--- a/lisp/net/browse-url.el
+++ b/lisp/net/browse-url.el
@@ -214,13 +214,7 @@
;;;###autoload
(defcustom browse-url-browser-function
- (cond
- ((memq system-type '(windows-nt ms-dos cygwin))
- 'browse-url-default-windows-browser)
- ((memq system-type '(darwin))
- 'browse-url-default-macosx-browser)
- (t
- 'browse-url-default-browser))
+ 'browse-url-default-browser
"Function to display the current buffer in a WWW browser.
This is used by the `browse-url-at-point', `browse-url-at-mouse', and
`browse-url-of-file' commands.
@@ -908,12 +902,13 @@ a random existing one. A non-nil interactive prefix argument reverses
the effect of `browse-url-new-window-flag'.
When called non-interactively, optional second argument NEW-WINDOW is
-used instead of `browse-url-new-window-flag'.
-
-The order attempted is gnome-moz-remote, Mozilla, Firefox,
-Galeon, Konqueror, Netscape, Mosaic, Lynx in an xterm, and then W3."
+used instead of `browse-url-new-window-flag'."
(apply
(cond
+ ((memq system-type '(windows-nt ms-dos cygwin))
+ 'browse-url-default-windows-browser)
+ ((memq system-type '(darwin))
+ 'browse-url-default-macosx-browser)
((browse-url-can-use-xdg-open) 'browse-url-xdg-open)
((executable-find browse-url-gnome-moz-program) 'browse-url-gnome-moz)
((executable-find browse-url-mozilla-program) 'browse-url-mozilla)
--
Lawrence Mitchell <wence <at> gmx.li>
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#4300
; Package
emacs
.
(Wed, 13 Jul 2011 10:24:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 4300 <at> debbugs.gnu.org (full text, mbox):
On 2011-07-13 16:12 +0800, Lawrence Mitchell wrote:
> How about this patch, which doesn't change the name, but does stop
> it from lying. It also removes the (unnecessary, and indeed
> incorrect) implementation description from
> browse-url-default-browser.
Sounds like a good change ;)
Leo
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#4300
; Package
emacs
.
(Wed, 13 Jul 2011 13:52:02 GMT)
Full text and
rfc822 format available.
Message #26 received at submit <at> debbugs.gnu.org (full text, mbox):
Lawrence Mitchell <wence <at> gmx.li> writes:
> How about this patch, which doesn't change the name, but does stop
> it from lying. It also removes the (unnecessary, and indeed
> incorrect) implementation description from
> browse-url-default-browser.
Thanks; applied.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Added tag(s) fixed.
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 13 Jul 2011 13:52:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 24.1, send any further explanations to
4300 <at> debbugs.gnu.org and Leo <sdl.web <at> gmail.com>
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 13 Jul 2011 13:52:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 11 Aug 2011 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 315 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.