From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "T.V. Raman" Newsgroups: gmane.emacs.devel Subject: Bug: url.el breaks W3 Date: Mon, 23 Apr 2012 19:56:19 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1335236191 8628 80.91.229.3 (24 Apr 2012 02:56:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 Apr 2012 02:56:31 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 24 04:56:31 2012 Return-path: Envelope-to: ged-emacs-devel@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 1SMVvZ-000118-VX for ged-emacs-devel@m.gmane.org; Tue, 24 Apr 2012 04:56:30 +0200 Original-Received: from localhost ([::1]:34012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMVvZ-0005nL-7b for ged-emacs-devel@m.gmane.org; Mon, 23 Apr 2012 22:56:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMVvW-0005nG-5J for emacs-devel@gnu.org; Mon, 23 Apr 2012 22:56:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SMVvU-0003m9-3u for emacs-devel@gnu.org; Mon, 23 Apr 2012 22:56:25 -0400 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:64343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMVvT-0003lV-R4 for emacs-devel@gnu.org; Mon, 23 Apr 2012 22:56:24 -0400 Original-Received: by iajr24 with SMTP id r24so423006iaj.0 for ; Mon, 23 Apr 2012 19:56:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=cA0aeG7eJGTlJXTxufOel9TfFO0+aB791lPC+XmmKk8=; b=dmE62q0pjJvP9F9XSWzs3Smcmr/dnG+pGHd/FfIRz//6HVC9iEBOHQynjCts1x1/T7 t7P3XU/FjkY8/702i1lVsBJMUIfA4HqUY+cpgAdScob8aIdGjHhb32OAlkVqiU3eHlvS W4Q56f/Q6mk9xKUqBejesPRJ0LG4M3Q7dXy33RPGSIcYYohaJfce+De1qPFboZCUqFZH P8EvnaexdrF58QjFRGh0X6vaZJrzRRpDO2INUChXNau3zVDCrtdCgZv1GwCV20lU+931 7QhPZk4iO7MWgi9eq4Ipia87ff9cNx5bN8eiVheArKlZL++1AclAnuggKBfLOazMcyLj NOGQ== Original-Received: by 10.42.166.194 with SMTP id p2mr12939449icy.19.1335236179508; Mon, 23 Apr 2012 19:56:19 -0700 (PDT) Original-Received: by 10.231.115.77 with HTTP; Mon, 23 Apr 2012 19:56:19 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:149965 Archived-At: The latest changes to url.el break emacs/w3. Specifically, url.el gets confused by urls like the following --- which is what Google Search returns. So: here is the first hit for Emacspeak from Google: https://www.google.com/url?q=3Dhttp://emacspeak.sourceforge.net/&sa=3DU&ei= =3DVxWWT8uYLtTaiQKg4-XpCQ&ved=3D0CBIQFjAA&usg=3DAFQjCNHVfIGT4ew6_GNyGkN3jMx= 78YmcHg If you pass the above url to the url package, it gets all confused after stripping off the initial https://www.google.com/url?q, url encodes the rest, and then throws an error saying it's not a valid tramp file name; trace attached. Debugger entered--Lisp error: (error "Not a Tramp file name: /url%3fq%3dhttp://emacspeak.sourceforge.net/%26sa%3dU%26ei%3dVxWWT8uYLtTaiQ= Kg4-XpCQ%26ved%3d0CBIQFjAA%26usg%3dAFQjCNHVfIGT4ew6_GNyGkN3jMx78YmcHg") signal(error ("Not a Tramp file name: /url%3fq%3dhttp://emacspeak.sourceforge.net/%26sa%3dU%26ei%3dVxWWT8uYLtTaiQ= Kg4-XpCQ%26ved%3d0CBIQFjAA%26usg%3dAFQjCNHVfIGT4ew6_GNyGkN3jMx78YmcHg")) error("Not a Tramp file name: %s" "/url%3fq%3dhttp://emacspeak.sourceforge.net/%26sa%3dU%26ei%3dVxWWT8uYLtTai= QKg4-XpCQ%26ved%3d0CBIQFjAA%26usg%3dAFQjCNHVfIGT4ew6_GNyGkN3jMx78YmcHg") tramp-dissect-file-name("/url%3fq%3dhttp://emacspeak.sourceforge.net/%26s= a%3dU%26ei%3dVxWWT8uYLtTaiQKg4-XpCQ%26ved%3d0CBIQFjAA%26usg%3dAFQjCNHVfIGT4= ew6_GNyGkN3jMx78YmcHg" t) tramp-find-foreign-file-name-handler("/url%3fq%3dhttp://emacspeak.sourcef= orge.net/%26sa%3dU%26ei%3dVxWWT8uYLtTaiQKg4-XpCQ%26ved%3d0CBIQFjAA%26usg%3d= AFQjCNHVfIGT4ew6_GNyGkN3jMx78YmcHg") tramp-file-name-handler(file-name-directory "/url%3fq%3dhttp://emacspeak.sourceforge.net/%26sa%3dU%26ei%3dVxWWT8uYLtTai= QKg4-XpCQ%26ved%3d0CBIQFjAA%26usg%3dAFQjCNHVfIGT4ew6_GNyGkN3jMx78YmcHg") file-name-directory("/url%3fq%3dhttp://emacspeak.sourceforge.net/%26sa%3d= U%26ei%3dVxWWT8uYLtTaiQKg4-XpCQ%26ved%3d0CBIQFjAA%26usg%3dAFQjCNHVfIGT4ew6_= GNyGkN3jMx78YmcHg") url-file-directory("/url%3fq%3dhttp://emacspeak.sourceforge.net/%26sa%3dU= %26ei%3dVxWWT8uYLtTaiQKg4-XpCQ%26ved%3d0CBIQFjAA%26usg%3dAFQjCNHVfIGT4ew6_G= NyGkN3jMx78YmcHg") url-basic-auth([cl-struct-url "https" nil nil "www.google.com" 443 "/url%3fq%3dhttp://emacspeak.sourceforge.net/%26sa%3dU%26ei%3dVxWWT8uYLtTai= QKg4-XpCQ%26ved%3d0CBIQFjAA%26usg%3dAFQjCNHVfIGT4ew6_GNyGkN3jMx78YmcHg" nil nil t nil t] nil nil nil) #[(scheme) "\303=08A@!\203=15=00=08AA=08A@ \304\211\n$B\207\305\304B\207" [scheme url realm fboundp nil 0] 6](("basic" url-basic-auth . 4)) mapcar(#[(scheme) "\303=08A@!\203=15=00=08AA=08A@ \304\211\n$B\207\305\304B\207" [scheme url = realm fboundp nil 0] 6] (("digest" url-digest-auth . 7) ("basic" url-basic-auth . 4))) url-get-authentication([cl-struct-url "https" nil nil "www.google.com" 443 "/url%3fq%3dhttp://emacspeak.sourceforge.net/%26sa%3dU%26ei%3dVxWWT8uYLtTai= QKg4-XpCQ%26ved%3d0CBIQFjAA%26usg%3dAFQjCNHVfIGT4ew6_GNyGkN3jMx78YmcHg" nil nil t nil t] nil any nil) url-http-create-request() url-http([cl-struct-url "https" nil nil "www.google.com" 443 "/url%3fq%3dhttp://emacspeak.sourceforge.net/%26sa%3dU%26ei%3dVxWWT8uYLtTai= QKg4-XpCQ%26ved%3d0CBIQFjAA%26usg%3dAFQjCNHVfIGT4ew6_GNyGkN3jMx78YmcHg" nil nil t nil t] w3-fetch-redirect-callback (nil "https://www.google.com/url?q=3Dhttp://emacspeak.sourceforge.net/&sa=3DU&ei= =3DVxWWT8uYLtTaiQKg4-XpCQ&ved=3D0CBIQFjAA&usg=3DAFQjCNHVfIGT4ew6_GNyGkN3jMx= 78YmcHg")) url-https([cl-struct-url "https" nil nil "www.google.com" 443 "/url%3fq%3dhttp://emacspeak.sourceforge.net/%26sa%3dU%26ei%3dVxWWT8uYLtTai= QKg4-XpCQ%26ved%3d0CBIQFjAA%26usg%3dAFQjCNHVfIGT4ew6_GNyGkN3jMx78YmcHg" nil nil t nil t] w3-fetch-redirect-callback (nil "https://www.google.com/url?q=3Dhttp://emacspeak.sourceforge.net/&sa=3DU&ei= =3DVxWWT8uYLtTaiQKg4-XpCQ&ved=3D0CBIQFjAA&usg=3DAFQjCNHVfIGT4ew6_GNyGkN3jMx= 78YmcHg")) url-retrieve-internal("https://www.google.com/url?q=3Dhttp://emacspeak.so= urceforge.net/&sa=3DU&ei=3DVxWWT8uYLtTaiQKg4-XpCQ&ved=3D0CBIQFjAA&usg=3DAFQ= jCNHVfIGT4ew6_GNyGkN3jMx78YmcHg" w3-fetch-redirect-callback (nil "https://www.google.com/url?q=3Dhttp://emacspeak.sourceforge.net/&sa=3DU&ei= =3DVxWWT8uYLtTaiQKg4-XpCQ&ved=3D0CBIQFjAA&usg=3DAFQjCNHVfIGT4ew6_GNyGkN3jMx= 78YmcHg") nil nil) url-retrieve("https://www.google.com/url?q=3Dhttp://emacspeak.sourceforge= .net/&sa=3DU&ei=3DVxWWT8uYLtTaiQKg4-XpCQ&ved=3D0CBIQFjAA&usg=3DAFQjCNHVfIGT= 4ew6_GNyGkN3jMx78YmcHg" w3-fetch-redirect-callback ("https://www.google.com/url?q=3Dhttp://emacspeak.sourceforge.net/&sa=3DU&e= i=3DVxWWT8uYLtTaiQKg4-XpCQ&ved=3D0CBIQFjAA&usg=3DAFQjCNHVfIGT4ew6_GNyGkN3jM= x78YmcHg")) w3-fetch("https://www.google.com/url?q=3Dhttp://emacspeak.sourceforge.net= /&sa=3DU&ei=3DVxWWT8uYLtTaiQKg4-XpCQ&ved=3D0CBIQFjAA&usg=3DAFQjCNHVfIGT4ew6= _GNyGkN3jMx78YmcHg") call-interactively(w3-fetch nil nil) --=20 Best Regards, --raman --=20 Best Regards, --raman