From mboxrd@z Thu Jan  1 00:00:00 1970
From: Christian Moe <mail@christianmoe.com>
Subject: [ODT][BUG] Custom link types in ODT footnotes
Date: Tue, 24 Feb 2015 15:32:39 +0100
Message-ID: <m2y4nnz8fs.fsf@christianmoe.com>
Mime-Version: 1.0
Content-Type: text/plain
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([2001:4830:134:3::10]:41506)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mail@christianmoe.com>) id 1YQGXC-0000vk-T9
	for emacs-orgmode@gnu.org; Tue, 24 Feb 2015 09:32:27 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mail@christianmoe.com>) id 1YQGX7-0002HD-ND
	for emacs-orgmode@gnu.org; Tue, 24 Feb 2015 09:32:26 -0500
Received: from mail2.b1.hitrost.net ([91.185.211.205]:19197)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mail@christianmoe.com>) id 1YQGX7-0002Eo-Gt
	for emacs-orgmode@gnu.org; Tue, 24 Feb 2015 09:32:21 -0500
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=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: orgmode list <emacs-orgmode@gnu.org>


Hi,

custom link types created with org-add-link-type seem to no longer work
in ODT footnotes. 

The expected output of the below example is for the bbdb link to be
replaced with /nil/ (I don't have Stallman in my address book) and for
SCREAMING LINK to be upcased if you've executed the source block. This
works in both body text and footnote for HTML export, but only in body
text, not footnote, for ODT. 

------- Example: --------

#+title: Test of custom link types in footnotes

This is a bbdb:R.*Stallman link.[fn:1] 

#+begin_src emacs-lisp
  (org-add-link-type "scream" nil
                     (lambda (path desc format)
                       (upcase desc)))
#+end_src

This is a silly [[scream:234][screaming link]] for testing.[fn:2]

* Footnotes

[fn:1] This is a bbdb:R.*Stallman link in a footnote.

[fn:2] This is a silly [[scream:234][screaming link]] in a footnote.

--------

Yours,
Christian