From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: =?UTF-8?B?UmU6IEV4cG9ydCBpc3N1ZSBvZiBVUkwgd2hlbiB0aGUgdGV4dCBi?= =?UTF-8?B?ZWdpbnMgd2l0aCBhIGRhdGXigI8=?= Date: Fri, 14 Jan 2011 06:44:54 +0100 Message-ID: <8739owt4x5.wl%dmaus@ictsoc.de> References: <80hbdco45d.fsf@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="===============1241693476==" Return-path: Received: from [140.186.70.92] (port=51224 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdcTh-0000hX-7R for emacs-orgmode@gnu.org; Fri, 14 Jan 2011 00:45:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdcTf-0000sk-SH for emacs-orgmode@gnu.org; Fri, 14 Jan 2011 00:45:37 -0500 Received: from mailout110.xlhost.de ([213.202.242.110]:54639 helo=mysql1.xlhost.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdcTf-0000sX-K7 for emacs-orgmode@gnu.org; Fri, 14 Jan 2011 00:45:35 -0500 In-Reply-To: <80hbdco45d.fsf@gmail.com> 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: Vincent =?UTF-8?B?QmVsYcOvY2hl?= Cc: Org mode --===============1241693476== Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Fri_Jan_14_06:44:54_2011-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --pgp-sign-Multipart_Fri_Jan_14_06:44:54_2011-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable At Thu, 13 Jan 2011 23:00:30 +0100, Vincent Bela=C3=AFche wrote: >=20 > Hello, >=20 > I have made some invesitgation, and I found that the problem happens in > the call of function org-export-as-html. On line 522 of this function, > this is the following line: >=20 > (while (string-match org-bracket-link-analytic-regexp++ line start) >=20 > When the line containing the link is processed, the variable line is > equal to the following >=20 > "[[file://localhost/c%3A/msys/1.0/temp/example.html][2011-01-01 example]]" >=20 > In that case the expression=20 >=20 > (string-match org-bracket-link-analytic-regexp++ line start) >=20 > returns nil. >=20 > Now assume that I modify slightly the line so that there is not longer > any ISO timestamp in it, like this (I just replaced the first `-' by a > `+', so the string is : >=20 > "[[file://localhost/c%3A/msys/1.0/temp/example.html][2011+01-01 example]]" >=20 > ) >=20 > with that change the expression >=20 > (string-match org-bracket-link-analytic-regexp++ line start) >=20 > returns 0. >=20 > My understanding is that the bug resides in this very expression. Thanks for the investigation. As it turned out the problem was not with the regular expression but with the order in which different pieces of Org mode markup were processed by `org-export-as-html'. First the exporter processed possible timestamps, (falsely) recognized the ISO date as part of an ISO timestamp, and replaced it with the timestamp span. The replacement included the square brackets what destroyed the link markup. I've just checked in a patch to master that changes the order of processing links and timestamps: Now links are processed before timestamps what fixes this problem. Thanks for bringing this problem up again, Best, -- David --=20 OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de --pgp-sign-Multipart_Fri_Jan_14_06:44:54_2011-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EAREIAAYFAk0v4tYACgkQma24O1pEeOZ6wQEAujH7FrVNld0L/iLCOi9M9Vyy vNxeC4ompAbDZwf0AVgA/0Vgq0Ai83dZt5PcPMJb/SIYV61A77el0qeoiJ0rUviA =AEgB -----END PGP SIGNATURE----- --pgp-sign-Multipart_Fri_Jan_14_06:44:54_2011-1-- --===============1241693476== 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 --===============1241693476==--