From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Exporting usenet links Date: Sat, 26 Mar 2016 13:12:49 +0000 Message-ID: <87wpops7qm.fsf@ucl.ac.uk> References: <5fdiscxjoj.ln2@news.c0t0d0s0.de> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajo1T-00032q-PO for emacs-orgmode@gnu.org; Sat, 26 Mar 2016 09:13:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ajo1O-0001Kh-P7 for emacs-orgmode@gnu.org; Sat, 26 Mar 2016 09:12:59 -0400 Received: from mail-db3on0142.outbound.protection.outlook.com ([157.55.234.142]:49520 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajo1O-0001Kd-EX for emacs-orgmode@gnu.org; Sat, 26 Mar 2016 09:12:54 -0400 In-Reply-To: <5fdiscxjoj.ln2@news.c0t0d0s0.de> (Michael Welle's message of "Sat, 26 Mar 2016 13:55:32 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael Welle Cc: emacs-orgmode@gnu.org 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 =E2=80=98org.el=E2=80=99. |=20 | (org-add-link-type TYPE &optional FOLLOW EXPORT) |=20 | Add TYPE to the list of =E2=80=98org-link-types=E2=80=99. | Re-compute all regular expressions depending on =E2=80=98org-link-types= =E2=80=99 |=20 | FOLLOW and EXPORT are two functions. |=20 | 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. |=20 | EXPORT should format the link path for export to one of the export format= s. | It should be a function accepting three arguments: |=20 | 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 =E2=80=98html=E2=80=99 or =E2= =80=98latex=E2=80=99 or =E2=80=98ascii=E2=80=99. |=20 | 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. |=20 | Org mode has a built-in default for exporting links. If you are happy wi= th | this default, there is no need to define an export function for the link | type. For a simple example of an export function, see =E2=80=98org-bbdb.= el=E2=80=99. |=20 | [back] `---- --=20 : Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-668-g809a83