From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Danjou Subject: Re: Re: Bug: UTF-8 characters in #+LINK does not work [7.4] Date: Mon, 31 Jan 2011 21:20:28 +0100 Message-ID: <87d3nchlkj.fsf@keller.adm.naquadah.org> References: <87d3nfagzo.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1783951802==" Return-path: Received: from [140.186.70.92] (port=57083 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pk0El-0002iS-5g for emacs-orgmode@gnu.org; Mon, 31 Jan 2011 15:20:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pk0Ej-0001I7-AY for emacs-orgmode@gnu.org; Mon, 31 Jan 2011 15:20:34 -0500 Received: from prometheus.naquadah.org ([212.85.154.174]:44793 helo=mx1.naquadah.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pk0Ej-0001Hq-4R for emacs-orgmode@gnu.org; Mon, 31 Jan 2011 15:20:33 -0500 In-Reply-To: <87d3nfagzo.fsf@fastmail.fm> (Matt Lundin's message of "Sat, 29 Jan 2011 10:04:27 -0500") 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: Matt Lundin Cc: Gustav =?utf-8?Q?Wikstr=C3=B6m?= , emacs-orgmode@gnu.org --===============1783951802== Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain 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. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Allow-more-char-type-in-link-abbrev.patch Content-Transfer-Encoding: quoted-printable From=201ec1e178aaa6a9935819a873ae492be7a2ddb2f6 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 =2D-- 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 =2D-- a/lisp/org.el +++ b/lisp/org.el @@ -8185,7 +8185,7 @@ call CMD." =20 (defun org-link-expand-abbrev (link) "Apply replacements as defined in `org-link-abbrev-alist." =2D (if (string-match "^\\([a-zA-Z][-_a-zA-Z0-9]*\\)\\(::?\\(.*\\)\\)?$" l= ink) + (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))) =2D-=20 1.7.2.3 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =2D-=20 Julien Danjou =E2=9D=B1 http://julien.danjou.info --=-=-=-- --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJNRxmNAAoJEGEbqVCLeKXCPoQP/0lc1D+No9Z4vOimkn1TnTCD NIwy0+BLfO4LoyX5fTETla9yrcfDwayhlOZFC082M0++i862X01LYkhcfCyRgIge I8Fq8Xyl+3+ZQS22SQTEOZ3lZiFURpylUjifFlppFiirsN28tmZXkeGH/jXOhfUp 2qL2eGVpI2NkX4FBmh0pPmgTqOQo4WzEdtZN/QFUU1mJ9SfFRUpP/TLdrb8w+uhW p2V93FPDv3n0NZ4e1xNoPPckFGxzyUCC5D9OKpgcGc0ffwSMA986zUyPgpKtFe1y srq7FsJiqqvqLBVXLqCeRef2FxEA9UdoMTwTLtVD+qJ5iSDhcs3DK4oGNtn2tlAl woUq8S9GZj3AjGiFhz51O3H7vRPyCSZzptWSKFE/o2ZiFBG49ED/TDBmhIXgW64v y6h/u2nsrgswMsxOZF234rmRLhdB2KQVkGuWNJKojwUUGCbTjMqom5bvNBnMWB8h 8HwjCRCd9uIKTYub4pD7SyDIP9X+WmVnmJugpm5c+1FUpykuQzo9pezezJMLCUgC 5y53h7bEUjFjdP9pWR/j5jOXIfaJPTpFLOqWqI6FypOgx0pt1apc7qCqoBLUgV0T Ta5nHDCrKD7qR3R9pbJY7sADIPHNS2vCHeSP5vT7eD2mKu7xLkPCUozAWi7P0yqJ QvDC71/R5Ig9ayPLAJJw =kC2Q -----END PGP SIGNATURE----- --==-=-=-- --===============1783951802== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1783951802==--