From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Delafond Subject: Re: Links with description and '%3f' in URL fail Date: Fri, 5 Mar 2010 10:00:35 +0000 (UTC) Message-ID: <20100305105947.169@usenet.piggo.com> References: <20100304170052.734@usenet.piggo.com> <87747619-BC0E-4E20-B8B1-835EB81FE56A@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NnULJ-0004Vv-3P for emacs-orgmode@gnu.org; Fri, 05 Mar 2010 05:01:13 -0500 Received: from [140.186.70.92] (port=57380 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NnULI-0004Vg-7Y for emacs-orgmode@gnu.org; Fri, 05 Mar 2010 05:01:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NnULH-0000b1-Jv for emacs-orgmode@gnu.org; Fri, 05 Mar 2010 05:01:12 -0500 Received: from lo.gmane.org ([80.91.229.12]:44869) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NnULH-0000am-BP for emacs-orgmode@gnu.org; Fri, 05 Mar 2010 05:01:11 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NnULA-00036M-Pe for emacs-orgmode@gnu.org; Fri, 05 Mar 2010 11:01:04 +0100 Received: from 64.2.3.200 ([64.2.3.200]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 Mar 2010 11:01:04 +0100 Received: from sdelafond by 64.2.3.200 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 Mar 2010 11:01:04 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On 2010-03-04, Carsten Dominik wrote: > Hi Sebastian, > > could you please try if the following patch does solve this issue? > > Thanks. > > - Carsten > > diff --git a/lisp/org.el b/lisp/org.el > index 85b74fa..59d2acf 100644 > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -7950,12 +7950,14 @@ This is the list that is used before handing > over to the browser.") > (url-unhex-string text) > (setq table (or table org-link-escape-chars)) > (when text > - (let ((re (mapconcat (lambda (x) (regexp-quote (cdr x))) > + (let ((case-fold-search t) > + (re (mapconcat (lambda (x) (regexp-quote (downcase (cdr x)))) > table "\\|"))) > (while (string-match re text) > (setq text > (replace-match > - (char-to-string (car (rassoc (match-string 0 text) table))) > + (char-to-string (car (rassoc (upcase (match-string 0 text)) > + table))) > t t text))) > text)))) yes, it does just fine; thank you very much for you time ! Cheers, --Seb