From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Michael Welle <mwe012008@gmx.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Exporting usenet links
Date: Sat, 26 Mar 2016 13:12:49 +0000 [thread overview]
Message-ID: <87wpops7qm.fsf@ucl.ac.uk> (raw)
In-Reply-To: <5fdiscxjoj.ln2@news.c0t0d0s0.de> (Michael Welle's message of "Sat, 26 Mar 2016 13:55:32 +0100")
On Saturday, 26 Mar 2016 at 13:55, Michael Welle wrote:
> Hello,
>
> exporting usenet links to html seems to be broken:
>
> [[news:de.sci.electronics][dse]]
Not broken per se in that the default behaviour is to treat news: the
same as http: on export. If that's not what you want, you can customise
the behaviour yourself using
,----[ C-h f org-add-link-type RET ]
| org-add-link-type is a compiled Lisp function in ‘org.el’.
|
| (org-add-link-type TYPE &optional FOLLOW EXPORT)
|
| Add TYPE to the list of ‘org-link-types’.
| Re-compute all regular expressions depending on ‘org-link-types’
|
| FOLLOW and EXPORT are two functions.
|
| FOLLOW should take the link path as the single argument and do whatever
| is necessary to follow the link, for example find a file or display
| a mail message.
|
| EXPORT should format the link path for export to one of the export formats.
| It should be a function accepting three arguments:
|
| path the path of the link, the text after the prefix (like "http:")
| desc the description of the link, if any
| format the export format, a symbol like ‘html’ or ‘latex’ or ‘ascii’.
|
| The function may use the FORMAT information to return different values
| depending on the format. The return value will be put literally into
| the exported file. If the return value is nil, this means Org should
| do what it normally does with links which do not have EXPORT defined.
|
| Org mode has a built-in default for exporting links. If you are happy with
| this default, there is no need to define an export function for the link
| type. For a simple example of an export function, see ‘org-bbdb.el’.
|
| [back]
`----
--
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-668-g809a83
next parent reply other threads:[~2016-03-26 13:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <5fdiscxjoj.ln2@news.c0t0d0s0.de>
2016-03-26 13:12 ` Eric S Fraga [this message]
2016-03-26 13:18 ` Exporting usenet links Eric S Fraga
2016-03-26 13:29 ` Michael Welle
2016-03-28 9:07 ` Nicolas Goaziou
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=87wpops7qm.fsf@ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=mwe012008@gmx.net \
/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).