GNU bug report logs -
#31828
[PATCH] [emacs-26] Add missing autoload cookie for browse-url-chrome
Previous Next
Reported by: Kaushal Modi <kaushal.modi <at> gmail.com>
Date: Thu, 14 Jun 2018 15:45:01 UTC
Severity: minor
Tags: patch, wontfix
Done: Lars 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 31828 in the body.
You can then email your comments to 31828 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#31828
; Package
emacs
.
(Thu, 14 Jun 2018 15:45:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Kaushal Modi <kaushal.modi <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 14 Jun 2018 15:45:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
From f6c6f9bb0b5aeab89817ee18d738ee54daada9a3 Mon Sep 17 00:00:00 2001
From: Kaushal Modi <kaushal.modi <at> gmail.com>
Date: Thu, 14 Jun 2018 11:41:35 -0400
Subject: [PATCH] Add missing autoload for browse-url-chrome
* lisp/net/browse-url.el (browse-url-chrome): Add autoload cookie.
---
lisp/net/browse-url.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el
index a84a7b1c71..85cf898438 100644
--- a/lisp/net/browse-url.el
+++ b/lisp/net/browse-url.el
@@ -1145,6 +1145,7 @@ browse-url-chromium
browse-url-chromium-arguments
(list url)))))
+;;;###autoload
(defun browse-url-chrome (url &optional _new-window)
"Ask the Google Chrome WWW browser to load URL.
Default to the URL around or before point. The strings in
--
2.17.0.rc0
--
Kaushal Modi
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#31828
; Package
emacs
.
(Thu, 14 Jun 2018 15:57:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 31828 <at> debbugs.gnu.org (full text, mbox):
> From: Kaushal Modi <kaushal.modi <at> gmail.com>
> Date: Thu, 14 Jun 2018 11:43:34 -0400
>
> From f6c6f9bb0b5aeab89817ee18d738ee54daada9a3 Mon Sep 17 00:00:00 2001
> From: Kaushal Modi <kaushal.modi <at> gmail.com>
> Date: Thu, 14 Jun 2018 11:41:35 -0400
> Subject: [PATCH] Add missing autoload for browse-url-chrome
>
> * lisp/net/browse-url.el (browse-url-chrome): Add autoload cookie.
No rationale?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#31828
; Package
emacs
.
(Thu, 14 Jun 2018 16:00:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 31828 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
The rationale is because I ended up with this error:
> Symbol’s function definition is void: browse-url-chrome
:)
Then looking up in lisp/net/browse-url.el, I saw that all browse-url-*
functions had an autoload except for browse-url-chrome.
So it looked like a clear oversight. Is that correct?
On Thu, Jun 14, 2018 at 11:56 AM Eli Zaretskii <eliz <at> gnu.org> wrote:
> > From: Kaushal Modi <kaushal.modi <at> gmail.com>
> > Date: Thu, 14 Jun 2018 11:43:34 -0400
> >
> > From f6c6f9bb0b5aeab89817ee18d738ee54daada9a3 Mon Sep 17 00:00:00 2001
> > From: Kaushal Modi <kaushal.modi <at> gmail.com>
> > Date: Thu, 14 Jun 2018 11:41:35 -0400
> > Subject: [PATCH] Add missing autoload for browse-url-chrome
> >
> > * lisp/net/browse-url.el (browse-url-chrome): Add autoload cookie.
>
> No rationale?
>
--
Kaushal Modi
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#31828
; Package
emacs
.
(Thu, 14 Jun 2018 17:55:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 31828 <at> debbugs.gnu.org (full text, mbox):
> From: Kaushal Modi <kaushal.modi <at> gmail.com>
> Date: Thu, 14 Jun 2018 11:59:27 -0400
> Cc: 31828 <at> debbugs.gnu.org
>
> Then looking up in lisp/net/browse-url.el, I saw that all browse-url-* functions had an autoload except for
> browse-url-chrome.
No, not all of them.
> So it looked like a clear oversight. Is that correct?
I don't think it's an oversight. Chrome is proprietary software.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#31828
; Package
emacs
.
(Thu, 14 Jun 2018 18:00:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 31828 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
If this was intentional, it's not a big deal. You can reject this patch.
My use-package based workaround is quite simple (in case any one else ends
up here while searching):
(use-package browse-url
:commands (browse-url-chrome)) ;
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31828
On Thu, Jun 14, 2018 at 1:54 PM Eli Zaretskii <eliz <at> gnu.org> wrote:
> > From: Kaushal Modi <kaushal.modi <at> gmail.com>
> > Date: Thu, 14 Jun 2018 11:59:27 -0400
> > Cc: 31828 <at> debbugs.gnu.org
> >
> > Then looking up in lisp/net/browse-url.el, I saw that all browse-url-*
> functions had an autoload except for
> > browse-url-chrome.
>
> No, not all of them.
>
> > So it looked like a clear oversight. Is that correct?
>
> I don't think it's an oversight. Chrome is proprietary software.
>
--
Kaushal Modi
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#31828
; Package
emacs
.
(Fri, 15 Jun 2018 10:42:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 31828 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Kaushal Modi <kaushal.modi <at> gmail.com>
>> Date: Thu, 14 Jun 2018 11:59:27 -0400
>> Cc: 31828 <at> debbugs.gnu.org
>>
>> Then looking up in lisp/net/browse-url.el, I saw that all browse-url-* functions had an autoload except for
>> browse-url-chrome.
>
> No, not all of them.
Looks like the only other one missing an autoload is
browse-url-epiphany.
>> So it looked like a clear oversight. Is that correct?
>
> I don't think it's an oversight. Chrome is proprietary software.
If that's the reason, shouldn't it be removed completely (and people who
want to use Chrome could just set browse-url-chromium-program to
"chrome" instead)? I've cc'd the author of the commit which added it.
[1: 05a630484f]: 2016-01-24 14:47:28 -0500
browse-url.el: Add 'google-chrome' to supported browsers.
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=05a630484fd652f67ce06679fb3f890f5fdd65ea
Severity set to 'minor' from 'normal'
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Sat, 16 Jun 2018 22:41:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#31828
; Package
emacs
.
(Wed, 15 May 2019 04:29:02 GMT)
Full text and
rfc822 format available.
Message #25 received at 31828 <at> debbugs.gnu.org (full text, mbox):
Noam Postavsky <npostavs <at> gmail.com> writes:
> If that's the reason, shouldn't it be removed completely (and people who
> want to use Chrome could just set browse-url-chromium-program to
> "chrome" instead)? I've cc'd the author of the commit which added it.
My guess would be that some people may want to use both Chrome and
Chromium, so I think it might make sense to have separate functions.
And leaving the autoload off of the -chrome version seems OK to me, so
I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) wontfix.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 15 May 2019 04:29:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
31828 <at> debbugs.gnu.org and Kaushal Modi <kaushal.modi <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 15 May 2019 04:29: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
.
(Wed, 12 Jun 2019 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 320 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.