From mboxrd@z Thu Jan 1 00:00:00 1970 From: XIE Yuheng Subject: Bug: problem when exporting a org-mode file with a lots of code blocks Date: Tue, 10 Mar 2015 15:37:37 +0800 Message-ID: <87d24hs3pa.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVEnn-0004r3-Dd for emacs-orgmode@gnu.org; Tue, 10 Mar 2015 03:42:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVEnl-00038r-SH for emacs-orgmode@gnu.org; Tue, 10 Mar 2015 03:42:07 -0400 Received: from mail-pa0-x234.google.com ([2607:f8b0:400e:c03::234]:35119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVEnl-00038b-Gn for emacs-orgmode@gnu.org; Tue, 10 Mar 2015 03:42:05 -0400 Received: by pabli10 with SMTP id li10so79427120pab.2 for ; Tue, 10 Mar 2015 00:42:04 -0700 (PDT) Received: from CICADA ([2001:250:3002:5550:6ea1:cc0f:bcb2:b187]) by mx.google.com with ESMTPSA id c8sm22727599pds.5.2015.03.10.00.42.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Mar 2015 00:42:03 -0700 (PDT) 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 Bug: org-babel-parse-src-block-match reporting "Wrong type argument: stringp, nil" when exporting a org-mode file with a lots of code blocks [8.3beta (release_8.3beta-895-g375c83 @ /usr/share/emacs/site-lisp/org/)] the following is *Messages* buffer https://www.refheap.com/98243 the following is the org-mode file with a lot of code blocks https://github.com/the-little-language-designer/cicada-nymph/blob/master= /cicada-nymph.org the following is an the fasm-mode I am using https://github.com/the-little-language-designer/fasm-mode/blob/master/fa= sm-mode.el Emacs : GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.7) of 2015-01-18 on bisson Package: Org-mode version 8.3beta (release_8.3beta-895-g375c83 @ /usr/share= /emacs/site-lisp/org/) current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-tog= gle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-co= mmand-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-html-format-drawer-function '(lambda (name contents) contents) org-src-window-setup 'current-window org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-= function org-confirm-shell-link-function 'yes-or-no-p org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-babel-no-eval-on-ctrl-c-ctrl-c t org-latex-format-headline-function 'org-latex-format-headline-default-func= tion org-after-todo-state-change-hook '(org-clock-out-if-current) org-latex-format-drawer-function '(lambda (name contents) contents) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-confi= gure-edit-buffer (lambda nil (local-set-key (kbd "C-s C-s") (quote org-= edit-src-exit)))) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '((lambda nil (local-set-key (kbd "C-,") (quote ska-jump-to-= register))) t current-window 0 nil #[nil "\300\301\302\303\304$\207" [org-add-hook change-maj= or-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-maj= or-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-archive-hook '(org-attach-archive-delete-maybe) org-ascii-format-drawer-function '(lambda (name contents width) contents) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-= maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers o= rg-cycle-hide-inline-tasks org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-todo-keywords '((sequence "><" "|" "><><" "|" "><><><") (sequence "tod= o") (sequence "=E5=BE=85") (sequence "note" "|" "test") (sequence "=E8=A8=98" "|" "=E6=B8=AC") (sequence "=E8= =AE=B0" "|" "=E6=B5=8B")) org-reveal-hlevel 2 org-babel-tangle-lang-exts '(("lisp" . "lisp") ("emacs-lisp" . "el") ("eli= sp" . "el")) org-confirm-elisp-link-function 'yes-or-no-p org-src-ask-before-returning-to-edit-buffer nil org-edit-src-content-indentation 0 org-metadown-hook '(org-babel-pop-to-session-maybe) org-html-format-headline-function 'org-html-format-headline-default-functi= on org-structure-template-alist '(("sf" "#+end_src\n?\n#+begin_src" "\n\n") ("s" "#+begin_src\n?\n#+end_src" "\n\n") ("picturef" "#+end_src\n?\n#+begin_src pict= ure" "\n\n") ("picture" "#+begin_src picture\n?\n#+end_s= rc" "\n\n") ("yamlf" "#+end_src\n?\n#+begin_src yaml" "= \n\n") ("yaml" "#+begin_src yaml\n?\n#+end_src" "<= src lang=3D\"?\">\n\n") ("bnff" "#+end_src\n?\n#+begin_src bnf" "\n\n") ("bnf" "#+begin_src bnf\n?\n#+end_src" "\n\n") ("coqf" "#+end_src\n?\n#+begin_src coq" "\n\n") ("coq" "#+begin_src coq\n?\n#+end_src" "\n\n") ("ljf" "#+end_src\n?\n#+begin_src lojban" "= \n\n") ("lj" "#+begin_src lojban\n?\n#+end_src" "<= src lang=3D\"?\">\n\n") ("ssf" "#+end_src\n?\n#+begin_src scheme" "= \n\n") ("ss" "#+begin_src scheme\n?\n#+end_src" "<= src lang=3D\"?\">\n\n") ("lispf" "#+end_src\n?\n#+begin_src lisp" "= \n\n") ("lisp" "#+begin_src lisp\n?\n#+end_src" "<= src lang=3D\"?\">\n\n") ("shenf" "#+end_src\n?\n#+begin_src shen" "= \n\n") ("shen" "#+begin_src shen\n?\n#+end_src" "<= src lang=3D\"?\">\n\n") ("clojuref" "#+end_src\n?\n#+begin_src cloj= ure" "\n\n") ("clojure" "#+begin_src clojure\n?\n#+end_s= rc" "\n\n") ("seef" "#+end_src\n?\n#+begin_src emacs-li= sp :tangle \"~/.emacs\"" "\n\n") ("see" "#+begin_src emacs-lisp :tangle \"~/= .emacs\"\n?\n#+end_src" "\n\n") ("sef" "#+end_src\n?\n#+begin_src emacs-lis= p" "\n\n") ("se" "#+begin_src emacs-lisp\n?\n#+end_src= " "\n\n") ("cf" "#+end_src\n?\n#+begin_src cicada" "<= src lang=3D\"?\">\n\n") ("c" "#+begin_src cicada\n?\n#+end_src" "\n\n") ("cnf" "#+end_src\n?\n#+begin_src cicada-ny= mph" "\n\n") ("cn" "#+begin_src cicada-nymph\n?\n#+end_s= rc" "\n\n") ("forthf" "#+end_src\n?\n#+begin_src forth"= "\n\n") ("forth" "#+begin_src forth\n?\n#+end_src" = "\n\n") ("smlf" "#+end_src\n?\n#+begin_src sml" "\n\n") ("sml" "#+begin_src sml\n?\n#+end_src" "\n\n") ("camlf" "#+end_src\n?\n#+begin_src caml" "= \n\n") ("caml" "#+begin_src caml\n?\n#+end_src" "<= src lang=3D\"?\">\n\n") ("erlangf" "#+end_src\n?\n#+begin_src erlan= g" "\n\n") ("erlang" "#+begin_src erlang\n?\n#+end_src= " "\n\n") ("lfef" "#+end_src\n?\n#+begin_src lfe" "\n\n") ("lfe" "#+begin_src lfe\n?\n#+end_src" "\n\n") ("fasmf" "#+end_src\n?\n#+begin_src fasm" "= \n\n") ("fasm" "#+begin_src fasm\n?\n#+end_src" "<= src lang=3D\"?\">\n\n") ("nasmf" "#+end_src\n?\n#+begin_src nasm" "= \n\n") ("nasm" "#+begin_src nasm\n?\n#+end_src" "<= src lang=3D\"?\">\n\n") ("Cf" "#+end_src\n?\n#+begin_src C" "\n\n") ("C" "#+begin_src C\n?\n#+end_src" "\n\n") ("javaf" "#+end_src\n?\n#+begin_src java" "= \n\n") ("java" "#+begin_src java\n?\n#+end_src" "<= src lang=3D\"?\">\n\n") ("jsf" "#+end_src\n?\n#+begin_src javascrip= t" "\n\n") ("js" "#+begin_src javascript\n?\n#+end_src= " "\n\n") ("luaf" "#+end_src\n?\n#+begin_src lua" "\n\n") ("lua" "#+begin_src lua\n?\n#+end_src" "\n\n") ("perlf" "#+end_src\n?\n#+begin_src perl" "= \n\n") ("perl" "#+begin_src perl\n?\n#+end_src" "<= src lang=3D\"?\">\n\n") ("shf" "#+end_src\n?\n#+begin_src sh" "\n\n") ("sh" "#+begin_src sh\n?\n#+end_src" "\n\n") ("sqlf" "#+end_src\n?\n#+begin_src sql :res= ult value" "\n\n") ("sql" "#+begin_src sql :result value\n?\n#= +end_src" "\n\n") ("rubyf" "#+end_src\n?\n#+begin_src ruby" "= \n\n") ("ruby" "#+begin_src ruby\n?\n#+end_src" "<= src lang=3D\"?\">\n\n") ("tclf" "#+end_src\n?\n#+begin_src tcl" "\n\n") ("tcl" "#+begin_src tcl\n?\n#+end_src" "\n\n") ("hsf" "#+end_src\n?\n#+begin_src haskell" = "\n\n") ("hs" "#+begin_src haskell\n?\n#+end_src" "= \n\n") ("xmonadf" "#+end_src\n?\n#+begin_src haske= ll :tangle \"~/.xmonad/xmonad.hs\"" "\n\n") ("xmonad" "#+begin_src haskell :tangle \"~/= .xmonad/xmonad.hs\"\n?\n#+end_src" "\n\n") ("conff" "#+end_src\n?\n#+begin_src conf :t= angle " "\n\n") ("conf" "#+begin_src conf :tangle \n?\n#+en= d_src" "\n\n") ("confuf" "#+end_src\n?\n#+begin_src conf-u= nix :tangle " "\n\n") ("confu" "#+begin_src conf-unix :tangle \n?= \n#+end_src" "\n\n") ("confxf" "#+end_src\n?\n#+begin_src conf-x= defaults :tangle " "\n\n") ("confx" "#+begin_src conf-xdefaults :tangl= e \n?\n#+end_src" "\n\n")) org-babel-load-languages '((scheme . t) (lisp . t) (emacs-lisp . t) (coq .= t)) org-html-format-inlinetask-function 'org-html-format-inlinetask-default-fu= nction org-agenda-files "~/.org-agenda-files" org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-confirm-babel-evaluate nil )