From 43a8b979f8245bed276cc6142e38141a3055c0b0 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Fri, 25 Jul 2014 11:20:49 +0200 Subject: [PATCH] ox-odt: Silence byte-compiler * lisp/ox-odt.el (org-odt--format-paragraph): Change signature to include info. (org-odt-footnote-reference, org-odt-paragraph): Apply signature change. --- lisp/ox-odt.el | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el index e390c3497..6640e8aba 100644 --- a/lisp/ox-odt.el +++ b/lisp/ox-odt.el @@ -1741,7 +1741,8 @@ CONTENTS is nil. INFO is a plist holding contextual information." :transcoders '((paragraph . (lambda (p c i) (org-odt--format-paragraph - p c "Footnote" + p c i + "Footnote" "OrgFootnoteCenter" "OrgFootnoteQuotations"))))) info)))) @@ -2843,13 +2844,13 @@ Style is a symbol among `quoted', `centered' and nil." (center-block 'centered) (quote-block 'quoted)))) -(defun org-odt--format-paragraph (paragraph contents default center quote) +(defun org-odt--format-paragraph (paragraph contents info default center quote) "Format paragraph according to given styles. PARAGRAPH is a paragraph type element. CONTENTS is the -transcoded contents of that paragraph, as a string. DEFAULT, -CENTER and QUOTE are, respectively, style to use when paragraph -belongs to no special environment, a center block, or a quote -block." +transcoded contents of that paragraph, as a string. INFO is +a plist used as a communication channel. DEFAULT, CENTER and +QUOTE are, respectively, style to use when paragraph belongs to +no special environment, a center block, or a quote block." (format "\n%s" (case (org-odt--paragraph-style paragraph) (quoted quote) @@ -2869,7 +2870,7 @@ block." CONTENTS is the contents of the paragraph, as a string. INFO is the plist used as a communication channel." (org-odt--format-paragraph - paragraph contents + paragraph contents info (or (org-element-property :style paragraph) "Text_20_body") "OrgCenter" "Quotations")) -- 2.11.4.GIT