GNU bug report logs - #23140
url-package-name and url-package-version are ignored by url-retrieve and url-retrieve-synchronously

Previous Next

Package: emacs;

Reported by: Clément Pit--Claudel <clement.pitclaudel <at> live.com>

Date: Tue, 29 Mar 2016 10:08:01 UTC

Severity: normal

Done: Noam Postavsky <npostavs <at> users.sourceforge.net>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Clément Pit--Claudel <clement.pitclaudel <at> live.com>
To: bug-gnu-emacs <at> gnu.org
Subject: url-package-name and url-package-version are ignored by url-retrieve
 and url-retrieve-synchronously
Date: Tue, 29 Mar 2016 12:06:47 +0200
[Message part 1 (text/plain, inline)]
url-package-name and url-package-version are only used in the initializer of the url-user-agent, which is computed when url.el is loaded; this makes these two variables essentially useless; in particular, one can't let-bind them around a call to url-retrieve.

The fix is probably to make url-user-agent accept nil, and make the url-http-user-agent-string function generate the default string every time it is called, based on the current values of url-package-name and url-package-version.

I have some code to do this, but I'd just like to make sure that it's the right approach before I propose a patch.

[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 8 years and 356 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.