From mboxrd@z Thu Jan 1 00:00:00 1970 From: wlharvey4@mac.com Subject: 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 Message-ID: <945FF77B-1EA4-4D1C-B3C8-5D96D295463B@mac.com> Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_432F8BCC-7C5B-48F0-8920-A2D554D85C49" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:57462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glcHL-0002oa-NV for emacs-orgmode@gnu.org; Mon, 21 Jan 2019 11:18:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1glcHD-0004Ju-HZ for emacs-orgmode@gnu.org; Mon, 21 Jan 2019 11:18:23 -0500 Received: from pv50p00im-ztdg10021801.me.com ([17.58.6.56]:60254) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1glcH9-0004GH-W8 for emacs-orgmode@gnu.org; Mon, 21 Jan 2019 11:18:17 -0500 Received: from [10.0.0.5] (unknown [24.20.168.251]) by pv50p00im-ztdg10021801.me.com (Postfix) with ESMTPSA id C115C36012B for ; Mon, 21 Jan 2019 16:18:12 +0000 (UTC) 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" To: emacs-orgmode@gnu.org --Apple-Mail=_432F8BCC-7C5B-48F0-8920-A2D554D85C49 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 The following Org document exports to Texinfo '.texi=E2=80=99 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 =E2=80=98.texi' file. There's no documented motivation for the = change, so it=E2=80=99s 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: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (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=10\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=01\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 "=01\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 )= --Apple-Mail=_432F8BCC-7C5B-48F0-8920-A2D554D85C49 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 The = following Org document exports to Texinfo '.texi=E2=80=99 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 =E2=80=98.texi' file.  There's no documented motivation for = the change, so it=E2=80=99s
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 =             &n= bsp;           &nbs= p;            =             :n= oexport:
#+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:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D
(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"
          &nb= sp;            = ; "%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=10\207" = [imenu-create-index-function org-imenu-get-tree] 2]
          &nb= sp;     #[0 "\300\301\302\303\304$\207" = [add-hook change-major-mode-hook org-show-all append local] 5]
          &nb= sp;     #[0 "\300\301\302\303\304$\207" = [add-hook change-major-mode-hook org-babel-show-result-all append local] = 5]
          &nb= sp;     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=01\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 "=01\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)
          &nb= sp;          ("beamer" = . latex) ("calc" . fundamental) ("cpp" . c++) ("ditaa" . artist) ("dot" = . fundamental) ("elisp" . emacs-lisp)
          &nb= sp;          ("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")
          &nb= sp;            = ;      ("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)
          &nb= sp;           ("mhe= " :follow org-mhe-open :store org-mhe-store-link)
          &nb= sp;           ("irc= " :follow org-irc-visit :store org-irc-store-link :export = org-irc-export)
          &nb= sp;           ("inf= o" :follow org-info-open :export org-info-export :store = org-info-store-link)
          &nb= sp;           ("gnu= s" :follow org-gnus-open :store org-gnus-store-link)
          &nb= sp;           ("doc= view" :follow org-docview-open :export org-docview-export :store = org-docview-store-link)
          &nb= sp;           ("bib= tex" :follow org-bibtex-open :store org-bibtex-store-link)
          &nb= sp;           ("bbd= b" :follow org-bbdb-open :export org-bbdb-export :complete = org-bbdb-complete-link :store org-bbdb-store-link)
          &nb= sp;           ("fil= e+sys") ("file+emacs") ("doi" :follow org--open-doi-link) ("elisp" = :follow org--open-elisp-link)
          &nb= sp;           ("fil= e" :complete org-file-complete-link) ("ftp" :follow (lambda (path) = (browse-url (concat "ftp:" path))))
          &nb= sp;           ("hel= p" :follow org--open-help-link) ("http" :follow (lambda (path) = (browse-url (concat "http:" path))))
          &nb= sp;           ("htt= ps" :follow (lambda (path) (browse-url (concat "https:" path))))
          &nb= sp;           ("mai= lto" :follow (lambda (path) (browse-url (concat "mailto:" path))))
          &nb= sp;           ("new= s" :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
)
= --Apple-Mail=_432F8BCC-7C5B-48F0-8920-A2D554D85C49--