all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Bastien <bzg@altern.org>
Cc: Sebastien Vauban <sva-news@mygooglest.com>, 16751@debbugs.gnu.org
Subject: bug#16751: 24.3.50; Export during Org export to HTML
Date: Tue, 25 Feb 2014 19:04:10 +0100	[thread overview]
Message-ID: <87vbw3t6g5.fsf__33117.6992076964$1393351501$gmane$org@gmail.com> (raw)
In-Reply-To: <87ob1vnml6.fsf@bzg.ath.cx> (Bastien's message of "Tue, 25 Feb 2014 18:12:05 +0100")

Hello,

Bastien <bzg@altern.org> writes:

>> Ugh.  Bastien, could you (or someone else of Org developers) please
>> look into this?  Why does the URI above causes the recent version of
>> Org to pass an invalid file name such as
>>
>>    ///opt/tomcat/4/apache-tomcat-4.1.40/... to expand-file-name
>
> I will look into this, but I can't promise anything before next week.
>
> Thanks for the heads up,

A quick analysis.

    file:path

is a valid file link type in Org. Therefore,

    file:///opt/tomcat/4/apache-tomcat-4.1.40/webapps/../user_projects/GHIJSP2/deploy/WEB-INF/sharedfiles/resources/FR/domVal.xml

is parsed as a file link with path:

    ///opt/tomcat/4/apache-tomcat-4.1.40/webapps/../user_projects/GHIJSP2/deploy/WEB-INF/sharedfiles/resources/FR/domVal.xml

This path passes `file-name-absolute-p' predicate, so "ox-html.el"
concatenates "file://" to

  (expand-file-name path)

Since path is absolute, per `file-name-absolute-p', `expand-file-name'
is probably needed for its "and canonicalize it" part.

Note that other export back-ends, like, "ox-md.el", also use this
construct.

FWIW, I don't see any wrong behaviour here (except that "file://" should
probably not be prepended to path in this case).


Regards,

-- 
Nicolas Goaziou





  parent reply	other threads:[~2014-02-25 18:04 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-14  9:17 bug#16751: 24.3.50; Export during Org export to HTML Sebastien Vauban
2014-02-14 10:06 ` Eli Zaretskii
     [not found] ` <mailman.15076.1392372434.10748.bug-gnu-emacs@gnu.org>
     [not found]   ` <mailman.15076.1392372434.10748.bug-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2014-02-18 11:39     ` Sebastien Vauban
2014-02-18 16:18       ` Eli Zaretskii
     [not found]         ` <83ha7w75sc.fsf-mXXj517/zsQ@public.gmane.org>
2014-02-24 11:30           ` Sebastien Vauban
2014-02-24 16:24             ` Eli Zaretskii
     [not found]             ` <mailman.15924.1393259115.10748.bug-gnu-emacs@gnu.org>
     [not found]               ` <mailman.15924.1393259115.10748.bug-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2014-02-25  9:36                 ` Sebastien Vauban
2014-02-25 16:20                   ` Eli Zaretskii
2014-02-25 17:12                     ` Bastien
2014-02-25 17:12                     ` Bastien
2014-02-25 17:49                       ` Eli Zaretskii
2014-02-25 17:49                       ` Eli Zaretskii
2014-03-01 11:53                         ` Eli Zaretskii
2014-03-21  8:17                           ` Bastien
2014-03-28 18:36                             ` Nicolas Goaziou
2014-03-28 18:36                             ` Nicolas Goaziou
2014-04-10 21:03                               ` Nicolas Goaziou
2014-04-10 21:03                               ` Nicolas Goaziou
2014-04-11  8:48                                 ` Bastien
2014-04-11  8:48                                 ` Bastien
2014-03-21  8:17                           ` Bastien
2014-03-01 11:53                         ` Eli Zaretskii
2014-02-25 18:04                       ` Nicolas Goaziou [this message]
2014-02-25 18:04                       ` Nicolas Goaziou
2014-02-25 18:32                         ` Eli Zaretskii
2014-02-25 18:41                           ` Glenn Morris
2014-02-25 20:53                             ` Eli Zaretskii
2014-02-25 20:53                             ` Eli Zaretskii
2014-02-25 18:41                           ` Glenn Morris
2014-02-25 18:32                         ` Eli Zaretskii
2014-02-25 19:11                           ` Achim Gratz

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

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

  git send-email \
    --in-reply-to='87vbw3t6g5.fsf__33117.6992076964$1393351501$gmane$org@gmail.com' \
    --to=n.goaziou@gmail.com \
    --cc=16751@debbugs.gnu.org \
    --cc=bzg@altern.org \
    --cc=sva-news@mygooglest.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.