From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 10 14:10:00 2012 Received: (at submit) by debbugs.gnu.org; 10 Sep 2012 18:10:00 +0000 Received: from localhost ([127.0.0.1]:52708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TB8Qm-0007Op-Fp for submit@debbugs.gnu.org; Mon, 10 Sep 2012 14:10:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41414) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TB8JC-0007DZ-Hy for submit@debbugs.gnu.org; Mon, 10 Sep 2012 14:02:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB8IW-0000AW-NG for submit@debbugs.gnu.org; Mon, 10 Sep 2012 14:01:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:38674) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB8IW-0000AP-JZ for submit@debbugs.gnu.org; Mon, 10 Sep 2012 14:01:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB8IO-0002fH-W7 for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 14:01:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB8IJ-00006C-VF for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 14:01:16 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:48472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB8IJ-0008T8-Jw for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 14:01:11 -0400 Received: by eaaf11 with SMTP id f11so1205452eaa.0 for ; Mon, 10 Sep 2012 11:01:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=/7AKnSovsPGB8fHwAs5b8R9xBMMWQo4pzZDA5Exjgz4=; b=oca0SOni0+Dx64zOPCblsLIYlkBvAhxJCzljzMGxlQHDmKiCycN+SGqlAiV1CAz7ss z5nd5rkXJJ7AviURfLLzw/iyBGM9S1ZDgwLqI7HNQZLOa1v3csnEKkzJKZunmrTUdXPC IuOBneSfqssTuWagVl5Pwx67GF91IZr8XY1rSGEbcDS3L/cNxxpIUoaCb54IGSvN95sw mX/mURyKtTvfbT9I/0GesIthbeg3tQmEUsQA1VjiByVe3Bc73ynb6+wt8qX/kYHvtP0p s64EeSoXA2/qvMHIkd4w4tks1DxCZ4HVSrnks/LCi+6NS78MWYgaZ+TjaWgo1rmYLZq3 O0mg== MIME-Version: 1.0 Received: by 10.14.202.71 with SMTP id c47mr21139611eeo.42.1347300069516; Mon, 10 Sep 2012 11:01:09 -0700 (PDT) Received: by 10.14.179.196 with HTTP; Mon, 10 Sep 2012 11:01:09 -0700 (PDT) Date: Mon, 10 Sep 2012 14:01:09 -0400 X-Google-Sender-Auth: 6teIFi_nucUW1bCu_cK1jQmxCI4 Message-ID: Subject: url-retrieve-synchronously fails when passed a vector as URL argument From: upgradingdave To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=047d7b343e380ca57004c95cbe59 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 10 Sep 2012 14:09:55 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) --047d7b343e380ca57004c95cbe59 Content-Type: text/plain; charset=ISO-8859-1 `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"))) 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)) This is my first time submitting a bug report, so if you need any more info, please let me know. Thanks! Dave 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 (emacs-snapshot package, version 2:20120728-fake2-1~ppa~oneiric1) Windowing system distributor `The X.Org Foundation', version 11.0.11004000 Configured using: `configure '--build' 'x86_64-linux-gnu' '--host' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.1.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.1.50/site-lisp:/usr/share/emacs/site-lisp' '--without-compress-info' '--with-crt-dir=/usr/lib/x86_64-linux-gnu/' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-imagemagick=yes' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed -znocombreloc' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: IELM Minor modes in effect: recentf-mode: t ido-ubiquitous-mode: t show-paren-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-p C-f C-f C-f C-f C-x x f C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p C-u C-M-x C-x b p o m C-c m d s l o g 4 j n n n n n n n n C-b C-b C-b C-b C-b C-b C-b C-h f C-b C-h f C-x o C-n C-n C-n C-n C-x b m v n C-g C-x o C-M-x C-u C-g C-l C-x r m q C-x r b C-x RET r e p o r t - b u g s e m a c s - b u g C-g C-g C-n C-p C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-f C-f C-x b i e l C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-SPC C-n C-n C-n C-e M-w C-n C-n C-n C-n C-n C-n C-n C-n C-n C-y C-p C-p e n d c o d e - u r l ( ) C-n C-n C-e C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-f C-f C-h f q C-x o q C-b C-b C-SPC C-n C-n C-n C-e M-w C-x RET < return> Recent messages: Quit url-retrieve-internal Quit Back to top level. Quit [2 times] Mark set [2 times] Contacting host: search.maven.org:80 Type C-x 1 to delete the help window. Mark set Load-path shadows: /usr/share/emacs/24.1.50/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup Features: (shadow sort mail-extr network-stream starttls url-http tls url-gw url-cache emacsbug message rfc822 mml mailabbrev gmm-utils mailheader sendmail mail-utils bookmark mm-view mml-smime mml-sec smime dig mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums edebug ielm pp jka-compr sgml-mode nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap cua-base ert ewoc debug espuds espuds-misc espuds-region espuds-movement espuds-input espuds-text espuds-buffer espuds-helpers ecukes ecukes-setup ecukes-stats ecukes-hooks ecukes-print ecukes-run ecukes-steps ecukes-parse ecukes-startup ecukes-directories ecukes-def ecukes-new ecukes-template ansi mvn-mode mvn-xml mvn-region xml mvn-search xml-to-string json hi-lock recentf tree-widget wid-edit mule-util cal-move parse-time multi-isearch vc-git flyspell ispell org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp ob-exp org-exp-blocks find-func org-agenda org-info org-gnus org-docview org-bibtex bibtex org-bbdb org warnings ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete org-list org-faces org-compat org-entities org-macs noutline outline easy-mmode format-spec cal-menu calendar cal-loaddefs ffap url-parse auth-source eieio byte-opt bytecomp byte-compile cconv macroexp gnus-util mm-util mail-prsvr password-cache url-vars help-mode easymenu view em-unix pcomplete comint ansi-color em-term term disp-table ehelp electric em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl em-basic esh-opt em-banner em-alias ring esh-var esh-io esh-cmd esh-ext esh-proc esh-arg eldoc esh-groups eshell esh-module esh-mode esh-util hl-line saveplace idle-highlight-mode thingatpt ace-jump-mode-autoloads haml-mode-autoloads jade-mode-autoloads js-comint-autoloads js2-mode-autoloads markdown-mode-autoloads php-mode-autoloads scala-mode-autoloads slime-js-autoloads slime-repl-autoloads slime-autoloads starter-kit-autoloads unbound edmacro kmacro smex cl starter-kit-misc ido-ubiquitous ido paren starter-kit-defuns uniquify advice help-fns advice-preload magit-autoloads ido-ubiquitous-autoloads smex-autoloads find-file-in-project-autoloads idle-highlight-mode-autoloads paredit-autoloads unbound-autoloads package time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) -- Preferred Version LLC m. 703.989.3562 --047d7b343e380ca57004c95cbe59 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
`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 wh= en
passed a URL vector. For example, this throws an error:

(url-= retrieve-synchronously
=A0=A0=A0=A0=A0=A0=A0 (url-generic-parse-url
=A0=A0=A0=A0=A0=A0=A0=A0 (c= oncat "http://search.maven.org= " "/solrsearch/select?q=3D\""
=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 "log4j" "\"&rows=3D20&a= mp;wt=3Djson")))

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:

=A0 (setq url (ur= l-encode-url url))

This is my first time submitting a bug report, so= if you need any more
info, please let me know.

Thanks!
Dave


In GNU Emacs 2= 4.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.2.0)
=A0of 2012-07-28 on m= eitnerium, modified by Debian
=A0(emacs-snapshot package, version 2:2012= 0728-fake2-1~ppa~oneiric1)
Windowing system distributor `The X.Org Foundation', version 11.0.11004= 000
Configured using:
=A0`configure '--build' 'x86_64-lin= ux-gnu' '--host' 'x86_64-linux-gnu'
=A0'--prefix= =3D/usr' '--sharedstatedir=3D/var/lib' '--libexecdir=3D/usr= /lib'
=A0'--localstatedir=3D/var' '--infodir=3D/usr/share/info'=A0'--mandir=3D/usr/share/man' '--with-pop=3Dyes'
=A0&= #39;--enable-locallisppath=3D/etc/emacs-snapshot:/etc/emacs:/usr/local/shar= e/emacs/24.1.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs= /24.1.50/site-lisp:/usr/share/emacs/site-lisp'
=A0'--without-compress-info' '--with-crt-dir=3D/usr/lib/x86_64-= linux-gnu/'
=A0'--with-x=3Dyes' '--with-x-toolkit=3Dgtk3= ' '--with-imagemagick=3Dyes'
=A0'build_alias=3Dx86_64-li= nux-gnu' 'host_alias=3Dx86_64-linux-gnu'
=A0'CFLAGS=3D-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=3D5000 -g -O2' '= ;LDFLAGS=3D-g
=A0-Wl,--as-needed -znocombreloc' 'CPPFLAGS=3D'= ;'

Important settings:
=A0 value of $LC_ALL: nil
=A0 value= of $LC_COLLATE: nil
=A0 value of $LC_CTYPE: nil
=A0 value of $LC_MESSAGES: nil
=A0 value = of $LC_MONETARY: nil
=A0 value of $LC_NUMERIC: nil
=A0 value of $LC_T= IME: nil
=A0 value of $LANG: en_US.UTF-8
=A0 value of $XMODIFIERS: ni= l
=A0 locale-coding-system: utf-8-unix
=A0 default enable-multibyte-characters: t

Major mode: IELM

M= inor modes in effect:
=A0 recentf-mode: t
=A0 ido-ubiquitous-mode: t<= br>=A0 show-paren-mode: t
=A0 mouse-wheel-mode: t
=A0 file-name-shado= w-mode: t
=A0 global-font-lock-mode: t
=A0 font-lock-mode: t
=A0 auto-compositi= on-mode: t
=A0 auto-encryption-mode: t
=A0 auto-compression-mode: t=A0 line-number-mode: t
=A0 transient-mark-mode: t

Recent input= :
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n
C-n C-n C-n C-n C-p C-f C-f C-f C-f C-x x f <return>
C-n C-n C-n = C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-n C-n C-n= C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-= n
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-n= C-n C-n C-n C-p C-u C-M-x C-x b
p o m <return> C-c m d s l o g 4= j <return> n n n n
n n n n C-b C-b C-b C-b C-b C-b C-b C-h f <= ;return>
<help-echo> C-b C-h f <return> C-x o C-n C-n C-n C-n
C-x b = m v n C-g C-x o C-M-x <help-echo> C-u C-g C-l
C-x r m <return&= gt; q C-x r b <return> C-x RET r e p o
r t - b u g s <backspac= e> <backspace> <backspace> <backspace>
e m a c s - b u g <return> C-g C-g C-n C-p C-b C-b
C-b C-b C-b C-= b C-b C-b C-b C-b C-b C-b C-b C-f C-f
C-x b i e l <return> C-p C-= p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-SPC C-n C-n C-n C-e M-w C-n= C-n C-n
C-n C-n C-n C-n C-n C-n C-y C-p C-p <C-backspace> <C-backspace>=
<C-backspace> e n d <backspace> c o d e - u r l ( )
&l= t;backspace> <backspace> C-n C-n C-e <return> C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-f C-f C-h= f <return> q <backspace> C-x o
q C-b C-b C-SPC C-n C-n C-n= C-e M-w C-x RET <up> <
return>

Recent messages:

Quit
url-retrieve-internal
Quit
Back to top level.
Quit [2 = times]
Mark set [2 times]
Contacting host: search.maven.org:80
Type C-x 1 to delete the help windo= w.
Mark set

Load-path shadows:
/usr/share/emacs/24.1.50/site-lisp/de= bian-startup hides /usr/share/emacs/site-lisp/debian-startup

Feature= s:
(shadow sort mail-extr network-stream starttls url-http tls url-gw url-cache emacsbug message rfc822 mml mailabbrev gmm-utils mailheader
se= ndmail mail-utils bookmark mm-view mml-smime mml-sec smime dig
mm-decode= mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045
ietf-drums edebu= g ielm pp jka-compr sgml-mode nxml-uchnm rng-xsd
xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse
nxml-p= arse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode
nxml-outln nx= ml-rap nxml-util nxml-glyph nxml-enc xmltok url-auth url
url-proxy url-p= rivacy url-expand url-methods url-history url-cookie
url-domsuf url-util mailcap cua-base ert ewoc debug espuds espuds-misc
e= spuds-region espuds-movement espuds-input espuds-text espuds-buffer
espu= ds-helpers ecukes ecukes-setup ecukes-stats ecukes-hooks
ecukes-print ec= ukes-run ecukes-steps ecukes-parse ecukes-startup
ecukes-directories ecukes-def ecukes-new ecukes-template ansi mvn-mode
m= vn-xml mvn-region xml mvn-search xml-to-string json hi-lock recentf
tree= -widget wid-edit mule-util cal-move parse-time multi-isearch vc-git
flyspell ispell org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc
= org-jsinfo org-infojs org-html org-exp ob-exp org-exp-blocks find-func
o= rg-agenda org-info org-gnus org-docview org-bibtex bibtex org-bbdb org
warnings ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote
org= -src ob-comint ob-keys ob ob-eval org-pcomplete org-list org-faces
org-c= ompat org-entities org-macs noutline outline easy-mmode format-spec
cal-menu calendar cal-loaddefs ffap url-parse auth-source eieio byte-optbytecomp byte-compile cconv macroexp gnus-util mm-util mail-prsvr
passw= ord-cache url-vars help-mode easymenu view em-unix pcomplete comint
ansi-color em-term term disp-table ehelp electric em-script em-prompt
em= -ls em-hist em-pred em-glob em-dirs em-cmpl em-basic esh-opt em-banner
e= m-alias ring esh-var esh-io esh-cmd esh-ext esh-proc esh-arg eldoc
esh-g= roups eshell esh-module esh-mode esh-util hl-line saveplace
idle-highlight-mode thingatpt ace-jump-mode-autoloads
haml-mode-autoload= s jade-mode-autoloads js-comint-autoloads
js2-mode-autoloads markdown-mo= de-autoloads php-mode-autoloads
scala-mode-autoloads slime-js-autoloads = slime-repl-autoloads
slime-autoloads starter-kit-autoloads unbound edmacro kmacro smex cl
sta= rter-kit-misc ido-ubiquitous ido paren starter-kit-defuns uniquify
advic= e help-fns advice-preload magit-autoloads ido-ubiquitous-autoloads
smex-= autoloads find-file-in-project-autoloads
idle-highlight-mode-autoloads paredit-autoloads unbound-autoloads
packag= e time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel
x-win x-d= nd tool-bar dnd fontset image regexp-opt fringe tabulated-list
newcommen= t lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame chamgeorgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
kore= an japanese hebrew greek romanian slovak czech european ethiopic
indian = cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer loaddefs button faces cus-face files text-properties
o= verlay sha1 md5 base64 format env code-pages mule custom widget
hashtabl= e-print-readable backquote make-network-process dbusbind
dynamic-setting= system-font-setting font-render-setting move-toolbar gtk
x-toolkit x multi-tty emacs)


--
Preferred Vers= ion LLC
m. 703.989.3562
--047d7b343e380ca57004c95cbe59-- From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 11 11:44:20 2012 Received: (at 12407) by debbugs.gnu.org; 11 Sep 2012 15:44:20 +0000 Received: from localhost ([127.0.0.1]:54865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TBSdQ-0008Pl-Ex for submit@debbugs.gnu.org; Tue, 11 Sep 2012 11:44:20 -0400 Received: from mail-we0-f172.google.com ([74.125.82.172]:43929) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TBSdO-0008Pe-Dx for 12407@debbugs.gnu.org; Tue, 11 Sep 2012 11:44:19 -0400 Received: by weyu54 with SMTP id u54so386917wey.3 for <12407@debbugs.gnu.org>; Tue, 11 Sep 2012 08:43:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type:content-transfer-encoding; bh=hapZGE4vIK/i2KIQfHx+wtH08iAItcVi1ENg6AfBxv0=; b=obvRkEbdAex+9WwO/u/QzF/5ylcn9RwX8RJYOCdeD3YdvM8UfVIIRlN6ATkNdrzk2y VIc0YLV0fZkm3CeltwtI4RmxZXBvisxQui2VELnJcrJyCoTM+Zg/p2v8QMBnGzgOnHzX b4jk04E9Y8fFI9YZSRXnQCpkjj1bzdLyASOsh1wtak9UGU9jHBSqMq8JEnrpmWmEwZmX FyHqcZDUQ/y0yXNdjzleXTQPqq1iTQlM8wcmSV4ChyFw8+Pa2oJ6LDkKnAUtTd7kF2n/ 0bCM1nWkj8DUKT0LoYZTtOpzHkbI6rtjPch54GbcWAR2a/DPpndAZitJC1kRIy0rQzwB jICw== Received: by 10.180.84.104 with SMTP id x8mr25944407wiy.20.1347378216695; Tue, 11 Sep 2012 08:43:36 -0700 (PDT) Received: from myhost.localdomain (mar75-2-81-56-68-112.fbx.proxad.net. [81.56.68.112]) by mx.google.com with ESMTPS id k20sm3068178wiv.11.2012.09.11.08.43.35 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 11 Sep 2012 08:43:35 -0700 (PDT) Received: by myhost.localdomain (Postfix, from userid 1000) id 801D589A2; Tue, 11 Sep 2012 17:43:38 +0200 (CEST) From: Bastien To: upgradingdave Subject: Re: bug#12407: url-retrieve-synchronously fails when passed a vector as URL argument In-Reply-To: (upgradingdave@gmail.com's message of "Mon, 10 Sep 2012 14:01:09 -0400") References: User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux) Date: Tue, 11 Sep 2012 17:43:38 +0200 Message-ID: <87wr00o991.fsf@altern.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 12407 Cc: 12407@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Hi, upgradingdave writes: > `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"))) This does not throw an error here with GNU Emacs 24.2.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-09-10. Can you (setq debug-on-error t) and report the backtrace you get when running the code above? -- Bastien From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 12 03:47:54 2012 Received: (at 12407) by debbugs.gnu.org; 12 Sep 2012 07:47:54 +0000 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 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 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 From: Glenn Morris To: upgradingdave Subject: Re: bug#12407: url-retrieve-synchronously fails when passed a vector as URL argument References: 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 Date: Wed, 12 Sep 2012 03:47:03 -0400 In-Reply-To: (upgradingdave@gmail.com's message of "Mon, 10 Sep 2012 14:01:09 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: 12407 Cc: 12407@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 12 03:48:10 2012 Received: (at control) by debbugs.gnu.org; 12 Sep 2012 07:48:10 +0000 Received: from localhost ([127.0.0.1]:55863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TBhgA-00082z-Fz for submit@debbugs.gnu.org; Wed, 12 Sep 2012 03:48:10 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:43900) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TBhg8-00082t-Kx for control@debbugs.gnu.org; Wed, 12 Sep 2012 03:48:09 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TBhfP-0006Mu-SR for control@debbugs.gnu.org; Wed, 12 Sep 2012 03:47:23 -0400 Date: Wed, 12 Sep 2012 03:47:23 -0400 Message-Id: Subject: control message for bug 12407 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -7.3 (-------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -7.3 (-------) unarchive 11627 forcemerge 11627 12407 From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 12 08:25:51 2012 Received: (at 12407) by debbugs.gnu.org; 12 Sep 2012 12:25:51 +0000 Received: from localhost ([127.0.0.1]:56135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TBm0M-0007Zy-QI for submit@debbugs.gnu.org; Wed, 12 Sep 2012 08:25:23 -0400 Received: from mail-ey0-f172.google.com ([209.85.215.172]:39293) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TBm0H-0007Zn-Sw for 12407@debbugs.gnu.org; Wed, 12 Sep 2012 08:25:16 -0400 Received: by eaai11 with SMTP id i11so773284eaa.3 for <12407@debbugs.gnu.org>; Wed, 12 Sep 2012 05:24:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=L4YsgrfE7e3bAQI7Y++jqWZABW7dPAxl6YKW8xHQNIg=; b=Wxcz7fo5o3x+zs0M5/P0KLItMnz+P8gdKv8OZ2vOpnU21awdDsT61CZmhuc66v2sM/ Sv+falP2P7VNoPZTBJwVa3I6biY4swwGLHdPJiyylyCdwYasQKipIGn79+HxdVGvUzbQ mKuuP92SmmRkT8TDKq7UBDmYdkog/K7LHY75wX+nZrwF8z2WD2bd6uyBcSAQvqsg6jas B5U8WJjcIgiRDw0UyH//cBzKK2x1Ep/xGSb48IrHFD5NBJ5PQrUMqlwU1rr3boOmuuvK Or+nOjWq5IeUka4Hf849VDPSn9NfO3x2sF5fQHoQb7prTYaDkkLq1QhHAetr7tmzomMp qJJA== MIME-Version: 1.0 Received: by 10.14.221.197 with SMTP id r45mr30771541eep.41.1347452667104; Wed, 12 Sep 2012 05:24:27 -0700 (PDT) Received: by 10.14.179.196 with HTTP; Wed, 12 Sep 2012 05:24:27 -0700 (PDT) In-Reply-To: References: Date: Wed, 12 Sep 2012 08:24:27 -0400 X-Google-Sender-Auth: nKHqbNHRkq6aPczR7fZxlpzd8EA Message-ID: Subject: Re: bug#12407: url-retrieve-synchronously fails when passed a vector as URL argument From: upgradingdave To: Glenn Morris Content-Type: multipart/alternative; boundary=047d7b66f57d930ef604c9804532 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 12407 Cc: 12407@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) --047d7b66f57d930ef604c9804532 Content-Type: text/plain; charset=ISO-8859-1 Thanks for checking into this so quickly. The computer where I saw the problem was using the latest emacs-snapshot Ubuntu RPM package and so I bet that is slightly behind the current trunk. I'll check current trunk before sending a bug report next time. Thanks also for the tips for submitting bug reports, I'll include a stack trace as well as more context next time! Dave On Wed, Sep 12, 2012 at 3:47 AM, Glenn Morris wrote: > 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 > -- Preferred Version LLC m. 703.989.3562 --047d7b66f57d930ef604c9804532 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks for checking into this so quickly. The computer where I saw the prob= lem was using the latest emacs-snapshot Ubuntu RPM package and so I bet tha= t is slightly behind the current trunk.=A0

I'll chec= k current trunk before sending a bug report next time.

Thanks also for the tips for submitting bug reports, I&= #39;ll include a stack trace as well as more context next time!
<= br>
Dave

On Wed, Sep 12, 2012 a= t 3:47 AM, Glenn Morris <rgm@gnu.org> wrote:
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
> =A0 =A0 =A0 =A0 (url-generic-parse-url
> =A0 =A0 =A0 =A0 =A0(concat "http://search.maven.org" "/solrsearch/select= ?q=3D\""
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0"log4j" "\"&= ;rows=3D20&wt=3Djson")))

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:
>
> =A0 (setq url (url-encode-url url))

Such a check was added back in June:

=A0 =A0 http://lists.gnu.org/archive/html/emacs-diff= s/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 incl= ude 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)
> =A0of 2012-07-28 on meitnerium, modified by Debian



--
Preferred Ve= rsion LLC
m. 703.989.3562
--047d7b66f57d930ef604c9804532-- From unknown Sun Jun 15 08:38:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 11 Oct 2012 11:24:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator