diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2014-08-04 00:12:11 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2014-08-04 13:29:26 +0200 |
commit | 60a407a7f5a70c9bb34743de7c54575d6dff9698 (patch) | |
tree | ac2fb5bbf334db0138653236c0747a48c325f6ac | |
parent | fddee022b75cb44f8804c4af011b6def9144c5f1 (diff) | |
download | org-mode-60a407a7f5a70c9bb34743de7c54575d6dff9698.tar.gz |
ox-texinfo: Fix comments handling
* lisp/ox-texinfo.el (texinfo): Make sure comments are ignored.
(org-texinfo-comment, org-texinfo-comment-block): Remove functions.
This is consistent with all other back-ends, which ignore any comment.
-rw-r--r-- | lisp/ox-texinfo.el | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el index 739f9f0..3ee4752 100644 --- a/lisp/ox-texinfo.el +++ b/lisp/ox-texinfo.el @@ -70,8 +70,8 @@ (center-block . org-texinfo-center-block) (clock . org-texinfo-clock) (code . org-texinfo-code) - (comment . org-texinfo-comment) - (comment-block . org-texinfo-comment-block) + (comment . (lambda (&rest args) "")) + (comment-block . (lambda (&rest args) "")) (drawer . org-texinfo-drawer) (dynamic-block . org-texinfo-dynamic-block) (entity . org-texinfo-entity) @@ -861,22 +861,6 @@ CONTENTS is nil. INFO is a plist used as a communication channel." (org-texinfo--text-markup (org-element-property :value code) 'code)) -;;; Comment - -(defun org-texinfo-comment (comment contents info) - "Transcode a COMMENT object from Org to Texinfo. -CONTENTS is the text in the comment. INFO is a plist holding -contextual information." - (org-texinfo--text-markup (org-element-property :value comment) 'comment)) - -;;; Comment Block - -(defun org-texinfo-comment-block (comment-block contents info) - "Transcode a COMMENT-BLOCK object from Org to Texinfo. -CONTENTS is the text within the block. INFO is a plist holding -contextual information." - (format "@ignore\n%s@end ignore" (org-element-property :value comment-block))) - ;;; Drawer (defun org-texinfo-drawer (drawer contents info) |