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