ox-md: Use lexical binding

* lisp/ox-md.el (org-md-separate-elements):
(org-md-bold):
(org-md-verbatim):
(org-md-example-block):
(org-md-horizontal-rule):
(org-md-italic):
(org-md-line-break):
(org-md-node-property):
(org-md-paragraph):
(org-md-plain-list):
(org-md-property-drawer):
(org-md-quote-block):
(org-md-section):
(org-md-template): Silence byte-compiler.
This commit is contained in:
Nicolas Goaziou 2015-11-01 00:05:22 +01:00
parent 3f6746d8a9
commit ed76447f59
1 changed files with 15 additions and 15 deletions

View File

@ -1,4 +1,4 @@
;;; ox-md.el --- Markdown Back-End for Org Export Engine ;;; ox-md.el --- Markdown Back-End for Org Export Engine -*- lexical-binding: t; -*-
;; Copyright (C) 2012-2015 Free Software Foundation, Inc. ;; Copyright (C) 2012-2015 Free Software Foundation, Inc.
@ -95,7 +95,7 @@ This variable can be set to either `atx' or `setext'."
;;; Filters ;;; Filters
(defun org-md-separate-elements (tree backend info) (defun org-md-separate-elements (tree _backend info)
"Fix blank lines between elements. "Fix blank lines between elements.
TREE is the parse tree being exported. BACKEND is the export TREE is the parse tree being exported. BACKEND is the export
@ -132,7 +132,7 @@ Assume BACKEND is `md'."
;;;; Bold ;;;; Bold
(defun org-md-bold (bold contents info) (defun org-md-bold (_bold contents _info)
"Transcode BOLD object into Markdown format. "Transcode BOLD object into Markdown format.
CONTENTS is the text within bold markup. INFO is a plist used as CONTENTS is the text within bold markup. INFO is a plist used as
a communication channel." a communication channel."
@ -141,7 +141,7 @@ a communication channel."
;;;; Code and Verbatim ;;;; Code and Verbatim
(defun org-md-verbatim (verbatim contents info) (defun org-md-verbatim (verbatim _contents _info)
"Transcode VERBATIM object into Markdown format. "Transcode VERBATIM object into Markdown format.
CONTENTS is nil. INFO is a plist used as a communication CONTENTS is nil. INFO is a plist used as a communication
channel." channel."
@ -156,7 +156,7 @@ channel."
;;;; Example Block, Src Block and export Block ;;;; Example Block, Src Block and export Block
(defun org-md-example-block (example-block contents info) (defun org-md-example-block (example-block _contents info)
"Transcode EXAMPLE-BLOCK element into Markdown format. "Transcode EXAMPLE-BLOCK element into Markdown format.
CONTENTS is nil. INFO is a plist used as a communication CONTENTS is nil. INFO is a plist used as a communication
channel." channel."
@ -233,7 +233,7 @@ a communication channel."
;;;; Horizontal Rule ;;;; Horizontal Rule
(defun org-md-horizontal-rule (horizontal-rule contents info) (defun org-md-horizontal-rule (_horizontal-rule _contents _info)
"Transcode HORIZONTAL-RULE element into Markdown format. "Transcode HORIZONTAL-RULE element into Markdown format.
CONTENTS is the horizontal rule contents. INFO is a plist used CONTENTS is the horizontal rule contents. INFO is a plist used
as a communication channel." as a communication channel."
@ -242,7 +242,7 @@ as a communication channel."
;;;; Italic ;;;; Italic
(defun org-md-italic (italic contents info) (defun org-md-italic (_italic contents _info)
"Transcode ITALIC object into Markdown format. "Transcode ITALIC object into Markdown format.
CONTENTS is the text within italic markup. INFO is a plist used CONTENTS is the text within italic markup. INFO is a plist used
as a communication channel." as a communication channel."
@ -291,7 +291,7 @@ channel."
;;;; Line Break ;;;; Line Break
(defun org-md-line-break (line-break contents info) (defun org-md-line-break (_line-break _contents _info)
"Transcode LINE-BREAK object into Markdown format. "Transcode LINE-BREAK object into Markdown format.
CONTENTS is nil. INFO is a plist used as a communication CONTENTS is nil. INFO is a plist used as a communication
channel." channel."
@ -378,7 +378,7 @@ a communication channel."
;;;; Node Property ;;;; Node Property
(defun org-md-node-property (node-property contents info) (defun org-md-node-property (node-property _contents _info)
"Transcode a NODE-PROPERTY element into Markdown syntax. "Transcode a NODE-PROPERTY element into Markdown syntax.
CONTENTS is nil. INFO is a plist holding contextual CONTENTS is nil. INFO is a plist holding contextual
information." information."
@ -390,7 +390,7 @@ information."
;;;; Paragraph ;;;; Paragraph
(defun org-md-paragraph (paragraph contents info) (defun org-md-paragraph (paragraph contents _info)
"Transcode PARAGRAPH element into Markdown format. "Transcode PARAGRAPH element into Markdown format.
CONTENTS is the paragraph contents. INFO is a plist used as CONTENTS is the paragraph contents. INFO is a plist used as
a communication channel." a communication channel."
@ -403,7 +403,7 @@ a communication channel."
;;;; Plain List ;;;; Plain List
(defun org-md-plain-list (plain-list contents info) (defun org-md-plain-list (_plain-list contents _info)
"Transcode PLAIN-LIST element into Markdown format. "Transcode PLAIN-LIST element into Markdown format.
CONTENTS is the plain-list contents. INFO is a plist used as CONTENTS is the plain-list contents. INFO is a plist used as
a communication channel." a communication channel."
@ -438,7 +438,7 @@ contextual information."
;;;; Property Drawer ;;;; Property Drawer
(defun org-md-property-drawer (property-drawer contents info) (defun org-md-property-drawer (_property-drawer contents _info)
"Transcode a PROPERTY-DRAWER element into Markdown format. "Transcode a PROPERTY-DRAWER element into Markdown format.
CONTENTS holds the contents of the drawer. INFO is a plist CONTENTS holds the contents of the drawer. INFO is a plist
holding contextual information." holding contextual information."
@ -448,7 +448,7 @@ holding contextual information."
;;;; Quote Block ;;;; Quote Block
(defun org-md-quote-block (quote-block contents info) (defun org-md-quote-block (_quote-block contents _info)
"Transcode QUOTE-BLOCK element into Markdown format. "Transcode QUOTE-BLOCK element into Markdown format.
CONTENTS is the quote-block contents. INFO is a plist used as CONTENTS is the quote-block contents. INFO is a plist used as
a communication channel." a communication channel."
@ -459,7 +459,7 @@ a communication channel."
;;;; Section ;;;; Section
(defun org-md-section (section contents info) (defun org-md-section (_section contents _info)
"Transcode SECTION element into Markdown format. "Transcode SECTION element into Markdown format.
CONTENTS is the section contents. INFO is a plist used as CONTENTS is the section contents. INFO is a plist used as
a communication channel." a communication channel."
@ -476,7 +476,7 @@ holding export options."
;; footnotes with at least a blank line. ;; footnotes with at least a blank line.
(org-trim (org-html-inner-template (concat "\n" contents "\n") info))) (org-trim (org-html-inner-template (concat "\n" contents "\n") info)))
(defun org-md-template (contents info) (defun org-md-template (contents _info)
"Return complete document string after Markdown conversion. "Return complete document string after Markdown conversion.
CONTENTS is the transcoded contents string. INFO is a plist used CONTENTS is the transcoded contents string. INFO is a plist used
as a communication channel." as a communication channel."