From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daimrod Subject: Re: Some links not working anymore for me Date: Tue, 11 Mar 2014 13:43:41 +0900 Message-ID: <87bnxdfipu.fsf@tanger.home> References: <871ty94dm3.fsf@iro.umontreal.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNEXj-0003rc-23 for emacs-orgmode@gnu.org; Tue, 11 Mar 2014 00:43:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNEXe-0001r2-50 for emacs-orgmode@gnu.org; Tue, 11 Mar 2014 00:43:54 -0400 Received: from mail-pd0-x230.google.com ([2607:f8b0:400e:c02::230]:39371) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNEXd-0001qu-Te for emacs-orgmode@gnu.org; Tue, 11 Mar 2014 00:43:50 -0400 Received: by mail-pd0-f176.google.com with SMTP id r10so7983560pdi.7 for ; Mon, 10 Mar 2014 21:43:48 -0700 (PDT) In-Reply-To: <871ty94dm3.fsf@iro.umontreal.ca> (=?utf-8?Q?=22Fran=C3=A7ois?= Pinard"'s message of "Mon, 10 Mar 2014 23:29:24 -0400") 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: emacs-orgmode@gnu.org Fran=C3=A7ois Pinard writes: > Hi, Org people. Hello, > For a little while, I've not been able to follow links to Org files, > when the link contains a search to some header, and the searched header > itself contains white space or non-ASCII characters. I just made this > patch that apparently helps me out of this new little misery :-). The > patch is only indicative: I'm not sure it is the proper way to solve the > difficulty, as I do not really understand all the code surrounding it! See this commit 8 days ago: 567ec87 * | Unescape links before opening them > diff --git a/lisp/org.el b/lisp/org.el > index a0ed137..5c41b52 100644 > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -10555,7 +10555,8 @@ is used internally by `org-open-link-from-string'= ." > (cond ((not option) nil) > ((org-string-match-p "\\`[0-9]+\\'" option) > (list (string-to-number option))) > - (t (list nil option)))))))) > + (t (list nil > + (org-link-unescape option))))))))) > ((assoc type org-link-protocols) > (funcall (nth 1 (assoc type org-link-protocols)) path)) > ((equal type "help") > > Fran=C3=A7ois > --=20 Daimrod/Greg