* Re: Exporting usenet links [not found] <5fdiscxjoj.ln2@news.c0t0d0s0.de> @ 2016-03-26 13:12 ` Eric S Fraga 2016-03-26 13:18 ` Eric S Fraga 2016-03-28 9:07 ` Nicolas Goaziou 1 sibling, 1 reply; 4+ messages in thread From: Eric S Fraga @ 2016-03-26 13:12 UTC (permalink / raw) To: Michael Welle; +Cc: emacs-orgmode 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Exporting usenet links 2016-03-26 13:12 ` Exporting usenet links Eric S Fraga @ 2016-03-26 13:18 ` Eric S Fraga 2016-03-26 13:29 ` Michael Welle 0 siblings, 1 reply; 4+ messages in thread From: Eric S Fraga @ 2016-03-26 13:18 UTC (permalink / raw) To: Michael Welle; +Cc: emacs-orgmode On Saturday, 26 Mar 2016 at 13:12, Eric S Fraga wrote: > 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 Actually, I'm not entirely sure what is meant to happen with news: links by default so partially ignore my previous post. You can definitely customise the behaviour yourself but it could be that the default behaviour is broken, as you suggest. -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-668-g809a83 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Exporting usenet links 2016-03-26 13:18 ` Eric S Fraga @ 2016-03-26 13:29 ` Michael Welle 0 siblings, 0 replies; 4+ messages in thread From: Michael Welle @ 2016-03-26 13:29 UTC (permalink / raw) To: emacs-orgmode Hello, Eric S Fraga wrote: > > On Saturday, 26 Mar 2016 at 13:12, Eric S Fraga wrote: > > 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 > > Actually, I'm not entirely sure what is meant to happen with news: links > by default so partially ignore my previous post. You can definitely > customise the behaviour yourself but it could be that the default > behaviour is broken, as you suggest. I'm could be wrong, but I think ages ago that type of link had been exported as news:de.sci.electronics. I don't use it that much ;). Thanks for the hint with org-add-link-type, I will try that. I inspected org-link-types before and news is in it, so I thought that would be enough. Regards hmw ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Exporting usenet links [not found] <5fdiscxjoj.ln2@news.c0t0d0s0.de> 2016-03-26 13:12 ` Exporting usenet links Eric S Fraga @ 2016-03-28 9:07 ` Nicolas Goaziou 1 sibling, 0 replies; 4+ messages in thread From: Nicolas Goaziou @ 2016-03-28 9:07 UTC (permalink / raw) To: Michael Welle; +Cc: emacs-orgmode Hello, Michael Welle <mwe012008@gmx.net> writes: > exporting usenet links to html seems to be broken: > > [[news:de.sci.electronics][dse]] > > becomes > > <a href="de.sci.electronics">dse</a> > > in html. Fixed. Thank you. Regards, -- Nicolas Goaziou ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-03-28 9:05 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <5fdiscxjoj.ln2@news.c0t0d0s0.de> 2016-03-26 13:12 ` Exporting usenet links Eric S Fraga 2016-03-26 13:18 ` Eric S Fraga 2016-03-26 13:29 ` Michael Welle 2016-03-28 9:07 ` Nicolas Goaziou
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).