From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Guerry Subject: [Accepted] Re: Bug: UTF-8 characters in #+LINK does not work [7.4] Date: Mon, 31 Jan 2011 21:36:59 +0100 (CET) Message-ID: <20110131203659.0EB5187AB@myhost.localdomain> References: <87d3nchlkj.fsf@keller.adm.naquadah.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=47781 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pk0V4-0002F3-KM for emacs-orgmode@gnu.org; Mon, 31 Jan 2011 15:37:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pk0V2-0005RS-QN for emacs-orgmode@gnu.org; Mon, 31 Jan 2011 15:37:26 -0500 Received: from mail-wy0-f169.google.com ([74.125.82.169]:59494) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pk0V2-0005RO-I9 for emacs-orgmode@gnu.org; Mon, 31 Jan 2011 15:37:24 -0500 Received: by wyj26 with SMTP id 26so6344471wyj.0 for ; Mon, 31 Jan 2011 12:37:23 -0800 (PST) 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 Patch 568 (http://patchwork.newartisans.com/patch/568/) is now "Accepted". Maintainer comment: none This relates to the following submission: http://mid.gmane.org/%3C87d3nchlkj.fsf%40keller.adm.naquadah.org%3E Here is the original message containing the patch: > Content-Type: text/plain; charset="utf-8" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Subject: [Orgmode] Re: Bug: UTF-8 characters in #+LINK does not work [7.4] > Date: Tue, 01 Feb 2011 01:20:28 -0000 > From: Julien Danjou > X-Patchwork-Id: 568 > Message-Id: <87d3nchlkj.fsf@keller.adm.naquadah.org> > To: Matt Lundin > Cc: Gustav =?utf-8?Q?Wikstr=C3=B6m?= , > emacs-orgmode@gnu.org > > On Sat, Jan 29 2011, Matt Lundin wrote: > > > The regexp in org-link-expand-abbrev does not allow for accented > > characters in the link abbreviation. I am not sure whether this is an > > intended limitation or a bug. :) > > I don't see any reason. Patch attached. > > > >From 1ec1e178aaa6a9935819a873ae492be7a2ddb2f6 Mon Sep 17 00:00:00 2001 > From: Julien Danjou > Date: Mon, 31 Jan 2011 21:19:07 +0100 > Subject: [PATCH] Allow more char type in link abbrev > > * org.el (org-link-expand-abbrev): Allow any type of character > in link expand. > > Signed-off-by: Julien Danjou > --- > lisp/org.el | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/lisp/org.el b/lisp/org.el > index 808c9ed..044d2ac 100644 > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -8185,7 +8185,7 @@ call CMD." > > (defun org-link-expand-abbrev (link) > "Apply replacements as defined in `org-link-abbrev-alist." > - (if (string-match "^\\([a-zA-Z][-_a-zA-Z0-9]*\\)\\(::?\\(.*\\)\\)?$" link) > + (if (string-match "^\\([^:]*\\)\\(::?\\(.*\\)\\)?$" link) > (let* ((key (match-string 1 link)) > (as (or (assoc key org-link-abbrev-alist-local) > (assoc key org-link-abbrev-alist))) > -- > 1.7.2.3 > >