bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23140: url-package-name and url-package-version are ignored by url-r


From: Clément Pit--Claudel
Subject: bug#23140: 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
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

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.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]