emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Maus <dmaus@ictsoc.de>
To: "Vincent Belaïche" <vincent.b.1@hotmail.fr>
Cc: Org mode <emacs-orgmode@gnu.org>
Subject: Re: Export issue of URL when the text begins with a date‏
Date: Fri, 14 Jan 2011 06:44:54 +0100	[thread overview]
Message-ID: <8739owt4x5.wl%dmaus@ictsoc.de> (raw)
In-Reply-To: <80hbdco45d.fsf@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1887 bytes --]

At Thu, 13 Jan 2011 23:00:30 +0100,
Vincent Belaïche wrote:
> 
> Hello,
> 
> 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:
> 
> (while (string-match org-bracket-link-analytic-regexp++ line start)
> 
> When the line containing the link is processed, the variable line is
> equal to the following
> 
> "[[file://localhost/c%3A/msys/1.0/temp/example.html][2011-01-01 example]]"
> 
> In that case the expression 
> 
>  (string-match org-bracket-link-analytic-regexp++ line start)
> 
> returns nil.
> 
> 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 :
> 
> "[[file://localhost/c%3A/msys/1.0/temp/example.html][2011+01-01 example]]"
> 
> )
> 
> with that change the expression
> 
>  (string-match org-bracket-link-analytic-regexp++ line start)
> 
> returns 0.
> 
> 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
-- 
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

  reply	other threads:[~2011-01-14  5:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-13 22:00 Export issue of URL when the text begins with a date‏ Vincent Belaïche
2011-01-14  5:44 ` David Maus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-01-14 21:12 Vincent Belaïche
2011-01-15  6:40 ` David Maus
2011-01-17 17:55   ` Bastien
2011-01-30 17:20     ` David Maus
2011-01-31 18:45       ` Bastien
2011-02-27 17:14         ` David Maus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8739owt4x5.wl%dmaus@ictsoc.de \
    --to=dmaus@ictsoc.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=vincent.b.1@hotmail.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).