emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Bug: Export to Texinfo Broken [9.2 (9.2-elpaplus @ /Users/lolh/.emac


From: wlharvey4
Subject: [O] Bug: Export to Texinfo Broken [9.2 (9.2-elpaplus @ /Users/lolh/.emacs.d/elpa/org-plus-contrib-20181230/)]
Date: Mon, 21 Jan 2019 08:18:12 -0800

The following Org document exports to Texinfo '.texi’ in Orgmode
9.1.14 but fails under Orgmode 9.2 with the following error message:

'Cannot generate node name for type: src-block'

The source of the problem arises from commit `04f35fc473`.  When the
changes are undone in that one commit, the document will export
to a ‘.texi' file.  There's no documented motivation for the change, so it’s
Hard to figure out what a proper fix would be.

If the Org document does not use #+CAPTION and #+NAME, (and therefore
no links nor listings), then the document will export in 9.2.  For some reason,
when adding a #+CAPTION or #+NAME, the code cannot return a node name.

Wesley Harvey
------------------------------------------------------------------------

# -*- mode:org; -*-
#+TITLE:Hello World in the World
#+SUBTITLE:A Listing of All the Ways to Say /Hello World/
#+AUTHOR:HW
#+DATE:\today
* Introduction
 :PROPERTIES:
 :UNNUMBERED:
 :END:
 This is an introduction to /Hello World/.
* Hello World in Python
 :PROPERTIES:
 :DESCRIPTION: Source code for Hello World
 :ALT_TITLE: HelloWorld Python
 :END:
 #+CAPTION[Hello Python]:Hello World in Python
 #+NAME:src:hello-world-python
 #+BEGIN_SRC python -n :results output
 print("Hello World from Python.")
 #+END_SRC

 #+RESULTS: src:hello-world-python
 : Hello World from Python.

** Reference To Python HelloWorld
  See [[src:hello-world-python][Hello World Python]].
* Hello World in _javascript_
 :PROPERTIES:
 :DESCRIPTION: How to say HelloWorld in _javascript_
 :ALT_TITLE: HelloWorld JS
 :END:
 #+CAPTION[Hello JS]:Hello World in _javascript_
 #+NAME:src:hello-world-js
 #+BEGIN_SRC js -n :results: output
 console.log("Hello World from _javascript_.")
 #+END_SRC

 #+RESULTS: src:hello-world-js
 : Hello World from _javascript_.
 : undefined

** Reference to JS HelloWorld
  _javascript_.  ([[src:hello-world-js][HW JS]])
* Listings
 :PROPERTIES:
 :APPENDIX:
 :END:
 #+TEXINFO: @listoffloats Listing

* EXPORT SETTINGS                                                  :noexport:
#+TEXINFO_CLASS: info
#+TEXINFO_DIR_CATEGORY:Texinfo
#+TEXINFO_DIR_TITLE:HelloWorld
#+TEXINFO_DIR_DESC:How to say HelloWorld in Different Languages
#+TEXINFO_PRINTED_TITLE:Hello World Around the World
-------------------------------------------------------------------------------------------------

Emacs  : GNU Emacs 26.1 (build 1, x86_64-apple-darwin17.7.0, Carbon Version 158 AppKit 1561.6)
of 2018-11-17
Package: Org mode version 9.2 (9.2-elpaplus @ /Users/lolh/.emacs.d/elpa/org-plus-contrib-20181230/)

current state:
==============
(setq
org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-texinfo-format-headline-function 'org-texinfo-format-headline-default-function
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function
org-odt-format-headline-function 'org-odt-format-headline-default-function
org-latex-pdf-process '("%latex -interaction nonstopmode -output-directory %o %f" "makeindex %b" "makeglossaries %b"
                        "%latex -interaction nonstopmode -output-directory %o %f")
org-agenda-files '("/usr/local/work/workorg/wlcases.org" "~/.org/notes.org")
org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
org-modules '(org-bbdb org-bibtex org-docview org-gnus org-info org-irc org-mhe org-rmail org-w3m)
org-mode-hook '(#[0 "\301\211\207" [imenu-create-index-function org-imenu-get-tree] 2]
                #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-all append local] 5]
                #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5]
                org-babel-result-hide-spec org-babel-hide-all-hashes auto-fill-mode org-eldoc-load)
org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
org-archive-hook '(org-attach-archive-delete-maybe)
org-confirm-elisp-link-function 'yes-or-no-p
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n(fn ENTRY)"]
org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
org-babel-pre-tangle-hook '(save-buffer)
org-latex-compiler "xelatex"
org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
org-babel-load-languages '((emacs-lisp . t) (perl . t) (python . t) (ruby . t) (C . t) (clojure . t) (java . t) (latex . t) (js . t) (ocaml . t))
org-log-done 'time
org-export-backends '(ascii html icalendar latex md odt org texinfo)
org-ascii-format-drawer-function #[771 "\207" [] 4 "\n\n(fn NAME CONTENTS WIDTH)"]
org-src-lang-modes '(("arduino" . arduino) ("redis" . redis) ("php" . php) ("C" . c) ("C++" . c++) ("asymptote" . asy) ("bash" . sh)
                     ("beamer" . latex) ("calc" . fundamental) ("cpp" . c++) ("ditaa" . artist) ("dot" . fundamental) ("elisp" . emacs-lisp)
                     ("ocaml" . tuareg) ("screen" . shell-script) ("shell" . sh) ("sqlite" . sql))
org-occur-hook '(org-first-headline-recenter)
org-log-into-drawer t
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines org-optimize-window-after-visibility-change)
org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate)
org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function
org-babel-tangle-lang-exts '(("ocaml" . "ml") ("latex" . "tex") ("java" . "java") ("clojure" . "clj") ("D" . "d") ("C++" . "cpp")
                             ("ruby" . "rb") ("python" . "py") ("perl" . "pl") ("emacs-lisp" . "el") ("elisp" . "el"))
org-confirm-shell-link-function 'yes-or-no-p
org-link-parameters '(("id" :follow org-id-open) ("w3m" :store org-w3m-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link)
                      ("mhe" :follow org-mhe-open :store org-mhe-store-link)
                      ("irc" :follow org-irc-visit :store org-irc-store-link :export org-irc-export)
                      ("info" :follow org-info-open :export org-info-export :store org-info-store-link)
                      ("gnus" :follow org-gnus-open :store org-gnus-store-link)
                      ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link)
                      ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link)
                      ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link)
                      ("file+sys") ("file+emacs") ("doi" :follow org--open-doi-link) ("elisp" :follow org--open-elisp-link)
                      ("file" :complete org-file-complete-link) ("ftp" :follow (lambda (path) (browse-url (concat "ftp:" path))))
                      ("help" :follow org--open-help-link) ("http" :follow (lambda (path) (browse-url (concat "http:" path))))
                      ("https" :follow (lambda (path) (browse-url (concat "https:" path))))
                      ("mailto" :follow (lambda (path) (browse-url (concat "mailto:" path))))
                      ("news" :follow (lambda (path) (browse-url (concat "news:" path)))) ("shell" :follow org--open-shell-link))
org-latex-format-headline-function 'org-latex-format-headline-default-function
org-texinfo-format-inlinetask-function 'org-texinfo-format-inlinetask-default-function
org-texinfo-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function
org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
org-html-format-headline-function 'org-html-format-headline-default-function
org-use-speed-commands t
org-default-notes-file "/usr/local/work/workorg/wlcases.org"
org-list-allow-alphabetical t
)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]