From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Fran=C3=A7ois_Pinard?= Subject: Some links not working anymore for me Date: Mon, 10 Mar 2014 23:29:24 -0400 Message-ID: <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]:43428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNDNl-0007Ys-Nw for emacs-orgmode@gnu.org; Mon, 10 Mar 2014 23:29:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNDNf-0005Je-OM for emacs-orgmode@gnu.org; Mon, 10 Mar 2014 23:29:33 -0400 Received: from 206-248-137-202.dsl.teksavvy.com ([206.248.137.202]:57950 helo=mercure.progiciels-bpi.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNDNf-0005JD-JW for emacs-orgmode@gnu.org; Mon, 10 Mar 2014 23:29:27 -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 Hi, Org people. 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! 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