From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#12407: url-retrieve-synchronously fails when passed a vector as URL argument Date: Wed, 12 Sep 2012 03:47:03 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1347436053 1377 80.91.229.3 (12 Sep 2012 07:47:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Sep 2012 07:47:33 +0000 (UTC) Cc: 12407@debbugs.gnu.org To: upgradingdave Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 12 09:47:35 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TBhfa-00056t-I0 for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Sep 2012 09:47:34 +0200 Original-Received: from localhost ([::1]:33735 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBhfW-0001Ui-Tm for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Sep 2012 03:47:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBhfP-0001UU-Oc for bug-gnu-emacs@gnu.org; Wed, 12 Sep 2012 03:47:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TBhfJ-0002dl-UX for bug-gnu-emacs@gnu.org; Wed, 12 Sep 2012 03:47:23 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBhfJ-0002dh-QP for bug-gnu-emacs@gnu.org; Wed, 12 Sep 2012 03:47:17 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TBhg2-00082Y-8j for bug-gnu-emacs@gnu.org; Wed, 12 Sep 2012 03:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Sep 2012 07:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12407 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12407-submit@debbugs.gnu.org id=B12407.134743607430892 (code B ref 12407); Wed, 12 Sep 2012 07:48:02 +0000 Original-Received: (at 12407) by debbugs.gnu.org; 12 Sep 2012 07:47:54 +0000 Original-Received: from localhost ([127.0.0.1]:55859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TBhft-00082C-ID for submit@debbugs.gnu.org; Wed, 12 Sep 2012 03:47:54 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:43899) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TBhfq-000824-An for 12407@debbugs.gnu.org; Wed, 12 Sep 2012 03:47:51 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TBhf5-0006MX-Vb; Wed, 12 Sep 2012 03:47:04 -0400 X-Spook: Juiliett Class Submarine Agfa industrial espionage CIA X-Ran: 9GechN{H18n9SNlCx:F:sPf>{V#x'5uyBN2xPuC/h+VBKQ01`74/jcOTE X-Hue: white X-Attribution: GM In-Reply-To: (upgradingdave@gmail.com's message of "Mon, 10 Sep 2012 14:01:09 -0400") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64173 Archived-At: upgradingdave wrote: > `url-retrieve-synchronously` docs claims to accept a parsed URL vector as > an argument, but in latest version of emacs 24.1.50 it seems to break when > passed a URL vector. For example, this throws an error: > > (url-retrieve-synchronously > (url-generic-parse-url > (concat "http://search.maven.org" "/solrsearch/select?q=\"" > "log4j" "\"&rows=20&wt=json"))) Thanks for the report, but this works fine in the current trunk. > I think the problem is the following (line 185 of url.el.gz) should > first check to make sure the URL is not a vector: > > (setq url (url-encode-url url)) Such a check was added back in June: http://lists.gnu.org/archive/html/emacs-diffs/2012-06/msg00249.html It seems your sources must be rather out-of-date (they claim to date from the end of July). > This is my first time submitting a bug report, so if you need any more > info, please let me know. For your next bug report; "throws an error" is vague. Please include the exact error message (ideally set debug-on-error t and post the backtrace). Also, saying "line X of file Y" is vague, because we don't know exactly what your copy of file Y looks like. It is better to quote a few lines of context. Or even better, send a patch! :) > In GNU Emacs 24.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.2.0) > of 2012-07-28 on meitnerium, modified by Debian