From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tassilo Horn 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 Message-ID: <87d2rq4jfq.fsf@thinkpad.tsdh.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un0xQ-00048g-FX for emacs-orgmode@gnu.org; Thu, 13 Jun 2013 02:24:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Un0xO-0007WO-TB for emacs-orgmode@gnu.org; Thu, 13 Jun 2013 02:24:28 -0400 Received: from deliver.uni-koblenz.de ([141.26.64.15]:47604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un0xO-0007W8-Jr for emacs-orgmode@gnu.org; Thu, 13 Jun 2013 02:24:26 -0400 Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id D5A111A8405 for ; Thu, 13 Jun 2013 08:24:25 +0200 (CEST) Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4hmz3fks9eKa for ; Thu, 13 Jun 2013 08:24:25 +0200 (CEST) Received: from thinkpad.tsdh.de (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 26CF71A8404 for ; Thu, 13 Jun 2013 08:24:25 +0200 (CEST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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: emacs-orgmode@gnu.org 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 "

%t

\n
\n

%a

\n

%e

\n

%d

" 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 )