From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Horn Subject: [bug] Org link dialog escapes URL spaces incorrectly Date: Tue, 1 Nov 2011 22:02:53 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLQAf-0008Pp-4r for emacs-orgmode@gnu.org; Tue, 01 Nov 2011 22:03:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLQAd-0005Vi-Rt for emacs-orgmode@gnu.org; Tue, 01 Nov 2011 22:03:17 -0400 Received: from mail-iy0-f169.google.com ([209.85.210.169]:47821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLQAd-0005Vc-NA for emacs-orgmode@gnu.org; Tue, 01 Nov 2011 22:03:15 -0400 Received: by iagf6 with SMTP id f6so11824660iag.0 for ; Tue, 01 Nov 2011 19:03:14 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org-mode ml Org-mode version 7.7 (release_7.7.404.ga17c.dirty) GNU Emacs 24.0.50.3 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2011-08-10 on braeburn.aquamacs.org - Aquamacs Distribution 3.xdev Inserting a link through the link dialog doesn't escape URLs with spaces properly. Where a space is '%20', org will insert the link as '%2520'. I'm not certain of URL escape codes, but could org be trying to escape the % sign? Perhaps a missing slash in a regexp somewhere? 1) Use =C-c C-l= to use dialog. Paste a link, like the following. http://www.dartmouth.edu/~dirwin/Did%20France%20Cause%20the%20Great%20Depression.pdf 2) Use =C-c C-o= to open the link. Be weirded out about a 404. Inspect URL. ,----[ Actual ] | - [ ] [[http://www.dartmouth.edu/~dirwin/Did%2520France%2520Cause%2520the%2520Great%2520Depression.pdf][Link Description]] `---- ,----[ Expected ] | - [ ] [[http://www.dartmouth.edu/~dirwin/Did%20France%20Cause%20the%20Great%20Depression.pdf][Link Description]] `---- -- Jeffrey Horn http://www.failuretorefrain.com/jeff/