From: Tassilo Horn <tsdh@gnu.org>
To: emacs-orgmode@gnu.org
Subject: Bug: Exporter omits inline code blocks [8.0.3 (release_8.0.3-238-g172061 @ /home/horn/Repos/el/org-mode/lisp/)]
Date: Thu, 13 Jun 2013 08:24:25 +0200 [thread overview]
Message-ID: <87d2rq4jfq.fsf@thinkpad.tsdh.de> (raw)
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don't know how to make a good report? See
http://orgmode.org/manual/Feedback.html#Feedback
Your bug report will be posted to the Org-mode mailing list.
------------------------------------------------------------------------
Hi all,
lately, I've used ox-reveal.el to create a presentation. Thereby, I
found out that inline source code blocks are ignored, i.e., the text is
simply not there in the HTML5 output.
Here's a test heading:
--8<---------------cut here---------------start------------->8---
* Test Heading
- Here's some inline code: src_clojure{(+ 1 2 3)}
- Here's some more inline code: src_clojure{(- 1 2 3)}
--8<---------------cut here---------------end--------------->8---
ox-reveal.el derives the export from ox-html. That defines
(inline-src-block . org-html-inline-src-block)
with
--8<---------------cut here---------------start------------->8---
(defun org-html-inline-src-block (inline-src-block contents info)
"Transcode an INLINE-SRC-BLOCK element from Org to HTML.
CONTENTS holds the contents of the item. INFO is a plist holding
contextual information."
(let* ((org-lang (org-element-property :language inline-src-block))
(code (org-element-property :value inline-src-block)))
(error "Cannot export inline src block")))
--8<---------------cut here---------------end--------------->8---
and ox-reveal doesn't (yet) override that. So in theory, exporting the
entry above should signal an error, but it doesn't
I also tried the plain html export. Still, there's no error. The
function is simply not called at all.
So there seems to be a bug in the exporter which doesn't seem to
recognize inline source code.
That said, I've never used inline source blocks before, so maybe I'm
doing something wrong. On the one hand, the manual is pretty clear on
their syntax. But on the other hand, they aren't highlighted in the org
buffer...
Bye,
Tassilo
Emacs : GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.2)
of 2013-06-12 on thinkpad
Package: Org-mode version 8.0.3 (release_8.0.3-238-g172061 @ /home/horn/Repos/el/org-mode/lisp/)
current state:
==============
(setq
org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe
org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
outline-minor-mode-hook '(th-outline-minor-mode-init)
org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook)
org-gnus-prefer-web-links t
org-special-ctrl-k t
org-occur-hook '(org-first-headline-recenter)
org-src-tab-acts-natively t
org-metaup-hook '(org-babel-load-in-session-maybe)
org-log-done 'time
org-confirm-shell-link-function 'yes-or-no-p
org-complete-tags-always-offer-all-agenda-tags t
org-id-link-to-org-use-id t
org-columns-default-format "%50ITEM %TODO %ALLTAGS %SCHEDULED %DEADLINE"
org-export-date-timestamp-format "%Y-%m-%d"
org-agenda-restore-windows-after-quit t
org-special-ctrl-a/e 'reversed
org-agenda-custom-commands '(("n" "Next 21 days" agenda "" ((org-agenda-span 21)))
("^" "Calfw Month Calendar" th-calfw-open-calendar))
org-return-follows-link t
org-latex-format-headline-function 'org-latex-format-headline-default-function
org-agenda-time-leading-zero t
org-capture-templates '(("n" "NORMAL" entry (file "/home/horn/Repos/org/remember.org")
"* %?\n :PROPERTIES:\n :created: %U\n :link: %a\n :END:\n %i")
("t" "TODO" entry (file "/home/horn/Repos/org/remember.org")
"* TODO %?\n :PROPERTIES:\n :created: %U\n :link: %a\n :END:\n %i")
("i" "IDEA" entry (file "/home/horn/Repos/org/remember.org")
"* IDEA %?\n :PROPERTIES:\n :created: %U\n :link: %a\n :END:\n %i")
)
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-icalendar-include-body 100
org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-babel-pre-tangle-hook '(save-buffer)
org-export-copy-to-kill-ring t
org-mode-hook '(th-org-mode-init
#[nil "\300\301\302\303\304$\207"
[org-add-hook change-major-mode-hook org-show-block-all append local]
5]
#[nil "\300\301\302\303\304$\207"
[org-add-hook change-major-mode-hook org-babel-show-result-all append
local]
5]
org-babel-result-hide-spec org-babel-hide-all-hashes)
org-refile-targets '((org-agenda-files :maxlevel . 5))
org-attach-method 'mv
org-export-with-tags 'not-in-toc
org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe)
org-refile-use-outline-path 'file
org-reveal-title-slide-template "<h2>%t</h2>\n<br style=\"clear:both;\" />\n<h2>%a</h2>\n<h3>%e</h3>\n<h2>%d</h2>"
org-directory "/home/horn/Repos/org"
org-enforce-todo-dependencies t
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
org-cycle-hide-inline-tasks org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
org-attach-directory "/home/horn/Repos/org/attachments"
org-archive-default-command 'org-archive-set-tag
org-refile-allow-creating-parent-nodes 'confirm
org-export-with-drawers nil
org-todo-keywords '((sequence "TODO(t)" "STARTED(s)" "DELEGATED(g)" "IDEA(i)" "|"
"DONE(d)" "CANCELLED(c)")
)
org-modules '(org-icalendar org-attach org-protocol org-id org-bibtex org-docview
org-gnus org-info org-irc org-capture org-mobile)
org-confirm-elisp-link-function 'yes-or-no-p
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-log-into-drawer "LOGBOOK"
org-icalendar-store-UID t
org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent)
org-mobile-directory "~/Dropbox/MobileOrg"
org-agenda-mode-hook '(th-org-agenda-mode-init)
org-agenda-files '("/home/horn/Repos/org")
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-link-frame-setup '((vm . vm-visit-folder) (gnus . org-gnus-no-new-news)
(file . find-file-other-window))
org-icalendar-combined-description nil
org-mobile-inbox-for-pull "~/Repos/org/from-org-mobile.org"
org-src-fontify-natively t
)
next reply other threads:[~2013-06-13 6:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-13 6:24 Tassilo Horn [this message]
2013-06-13 8:50 ` Bug: Exporter omits inline code blocks [8.0.3 (release_8.0.3-238-g172061 @ /home/horn/Repos/el/org-mode/lisp/)] Nicolas Goaziou
2013-06-13 10:02 ` Tassilo Horn
2013-06-13 13:06 ` Eric Schulte
2013-06-14 7:26 ` Tassilo Horn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d2rq4jfq.fsf@thinkpad.tsdh.de \
--to=tsdh@gnu.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).