* Bug: Cannot include orgmode source code block [7.7]
@ 2011-11-11 19:52 Truong Nghiem
2011-11-11 20:44 ` Sebastien Vauban
0 siblings, 1 reply; 3+ messages in thread
From: Truong Nghiem @ 2011-11-11 19:52 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 5773 bytes --]
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.
------------------------------------------------------------------------
I created a following simple org file, in which a source code block of
language "org" contains orgmode code:
======= BEGIN CODE ========
#+TITLE: A Test
#+BEGIN_SRC org
,#+begin_src python
#+END_SRC
End of test.
======= END CODE ==========
However, when I exported this file, either to HTML or LaTeX/PDF, it
caused an error:
ad-Orig-error: unbalanced begin/end_src blocks with #("#+BEGIN_SRC org
,#+begin_src python
#+END_SRC" 0 15 (fontified nil font-lock-fontified t) 15 16 (fontified
nil font-lock-fontified t) 16 37 (fontified nil font-lock-fontified t)
37 38 (fontified nil font-lock-fontified t) 38 47 (fontified nil
font-lock-fontified t))
I'm using the latest development version of orgmode. Also, if I
recall correctly, I did succeed to export this kind of code in the
past (don't remember which version of orgmode though).
If I included #+end_src in the body of the org code block, it would export
the file, but the result was not what I expected: it was blank.
Emacs : GNU Emacs 23.3.50.1 (i386-apple-darwin9.8.0, NS
apple-appkit-949.54)
of 2011-10-25 on braeburn.aquamacs.org - Aquamacs Distribution 2.4
Package: Org-mode version 7.7
current state:
==============
(setq
org-clock-in-switch-to-state "STARTED"
org-agenda-skip-scheduled-if-deadline-is-shown t
org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
org-todo-keyword-faces '(("STARTED" :foreground "blue" :weight bold)
("NEXT" :foreground "magenta" :weight bold))
org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent)
org-babel-load-languages '((R) (ditaa . t) (dot . t) (emacs-lisp . t)
(gnuplot . t)
(haskell) (latex . t) (matlab . t) (ocaml) (org . t)
(python . t) (ruby) (screen) (sh . t) (sql) (sqlite))
org-agenda-exporter-settings '((ps-number-of-columns 1) (ps-landscape-mode
t)
(htmlize-output-type (quote css)))
org-completion-use-ido t
org-metaup-hook '(org-babel-load-in-session-maybe)
org-agenda-skip-timestamp-if-done t
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-babel-tangle-lang-exts '(("python" . "py") ("latex" . "tex")
("emacs-lisp" . "el"))
org-agenda-todo-ignore-scheduled t
org-agenda-sorting-strategy '((agenda habit-down time-up priority-down
effort-up
category-keep)
(todo priority-down effort-up category-keep)
(tags priority-down category-keep)
(search category-keep))
org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
org-agenda-restore-windows-after-quit t
org-export-latex-format-toc-function 'org-export-latex-format-toc-default
org-agenda-skip-scheduled-if-done t
org-stuck-projects '("+LEVEL=2+TODO=\"PROJECT\"" ("TODO" "NEXT") nil "")
org-support-shift-select t
org-tab-first-hook '(org-hide-block-toggle-maybe
org-src-native-tab-command-maybe
org-babel-hide-result-toggle-maybe)
org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
org-confirm-shell-link-function 'yes-or-no-p
org-export-first-hook '(org-beamer-initialize-open-trackers)
org-archive-stamp-time nil
org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "STARTED(s)" "|"
"DONE(d!/!)")
(sequence "WAITING(w@/!)" "|" "CANCELLED(c@/!)"
"DEFERRED(r@/!)")
(sequence "PROJECT(p)" "|" "FINISHED(f!/!)"))
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-default-notes-file "~/gtd/gtd.org"
org-directory "~/gtd"
org-blank-before-new-entry nil
org-babel-pre-tangle-hook '(save-buffer)
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
org-mode-hook '(#[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
(lambda nil (auto-fill-mode 1)))
org-refile-targets '((org-agenda-files :maxlevel . 3) (nil :maxlevel . 3)
("~/gtd/someday.org" :level . 0))
org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
org-confirm-elisp-link-function 'yes-or-no-p
org-refile-use-outline-path 'file
org-agenda-mode-hook '((lambda nil (hl-line-mode 1)))
org-agenda-todo-ignore-with-date t
org-export-interblocks '((lob org-babel-exp-lob-one-liners)
(src org-babel-exp-inline-src-blocks))
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-enforce-todo-dependencies t
org-agenda-skip-deadline-if-done t
org-refile-allow-creating-parent-nodes 'confirm
org-insert-mode-line-in-empty-file t
org-occur-hook '(org-first-headline-recenter)
org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
org-agenda-todo-ignore-deadlines t
org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
org-beamer-auto-fragile-frames
org-beamer-place-default-actions-for-lists)
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-export-blocks '((src org-babel-exp-src-block nil)
(comment org-export-blocks-format-comment t)
(ditaa org-export-blocks-format-ditaa nil)
(dot org-export-blocks-format-dot nil))
)
[-- Attachment #2: Type: text/html, Size: 9962 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug: Cannot include orgmode source code block [7.7]
2011-11-11 19:52 Bug: Cannot include orgmode source code block [7.7] Truong Nghiem
@ 2011-11-11 20:44 ` Sebastien Vauban
2011-11-11 21:25 ` Eric Schulte
0 siblings, 1 reply; 3+ messages in thread
From: Sebastien Vauban @ 2011-11-11 20:44 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
Hi Truong,
Truong Nghiem wrote:
> I created a following simple org file, in which a source code block of
> language "org" contains orgmode code:
> ======= BEGIN CODE ========
> #+TITLE: A Test
>
> #+BEGIN_SRC org
> ,#+begin_src python
> #+END_SRC
>
> End of test.
> ======= END CODE ==========
>
> However, when I exported this file, either to HTML or LaTeX/PDF, it
> caused an error:
>
> ad-Orig-error: unbalanced begin/end_src blocks with #("#+BEGIN_SRC org
> ,#+begin_src python
> #+END_SRC" 0 15 (fontified nil font-lock-fontified t) 15 16 (fontified
> nil font-lock-fontified t) 16 37 (fontified nil font-lock-fontified t)
> 37 38 (fontified nil font-lock-fontified t) 38 47 (fontified nil
> font-lock-fontified t))
>
> I'm using the latest development version of orgmode. Also, if I
> recall correctly, I did succeed to export this kind of code in the
> past (don't remember which version of orgmode though).
>
> If I included #+end_src in the body of the org code block, it would export
> the file, but the result was not what I expected: it was blank.
I do confirm this, in a very recent Org version, and consider it as a bug too.
Best regards,
Seb
--
Sebastien Vauban
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug: Cannot include orgmode source code block [7.7]
2011-11-11 20:44 ` Sebastien Vauban
@ 2011-11-11 21:25 ` Eric Schulte
0 siblings, 0 replies; 3+ messages in thread
From: Eric Schulte @ 2011-11-11 21:25 UTC (permalink / raw)
To: Sebastien Vauban; +Cc: emacs-orgmode
"Sebastien Vauban" <wxhgmqzgwmuf@spammotel.com> writes:
> Hi Truong,
>
> Truong Nghiem wrote:
>> I created a following simple org file, in which a source code block of
>> language "org" contains orgmode code:
>> ======= BEGIN CODE ========
>> #+TITLE: A Test
>>
>> #+BEGIN_SRC org
>> ,#+begin_src python
>> #+END_SRC
>>
>> End of test.
>> ======= END CODE ==========
>>
>> However, when I exported this file, either to HTML or LaTeX/PDF, it
>> caused an error:
>>
>> ad-Orig-error: unbalanced begin/end_src blocks with #("#+BEGIN_SRC org
>> ,#+begin_src python
>> #+END_SRC" 0 15 (fontified nil font-lock-fontified t) 15 16 (fontified
>> nil font-lock-fontified t) 16 37 (fontified nil font-lock-fontified t)
>> 37 38 (fontified nil font-lock-fontified t) 38 47 (fontified nil
>> font-lock-fontified t))
>>
>> I'm using the latest development version of orgmode. Also, if I
>> recall correctly, I did succeed to export this kind of code in the
>> past (don't remember which version of orgmode though).
>>
>> If I included #+end_src in the body of the org code block, it would export
>> the file, but the result was not what I expected: it was blank.
>
> I do confirm this, in a very recent Org version, and consider it as a bug too.
>
I've just pushed up a fix, thanks for the catch. -- Eric
--
Eric Schulte
http://cs.unm.edu/~eschulte/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-11-11 21:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-11 19:52 Bug: Cannot include orgmode source code block [7.7] Truong Nghiem
2011-11-11 20:44 ` Sebastien Vauban
2011-11-11 21:25 ` Eric Schulte
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).