emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* life on the eading bledge
@ 2021-04-05 16:47 Greg Minshall
  2021-04-06  0:51 ` Kyle Meyer
  0 siblings, 1 reply; 5+ messages in thread
From: Greg Minshall @ 2021-04-05 16:47 UTC (permalink / raw)
  To: emacs-orgmode

hi.  running c881b60593b3beeed7b8c7a2bada64157cd9940a, the following 

====
*** this =equals= that

and, so on
====

exporting [C-e l o], gives
: replace-regexp-in-string: Wrong type argument: arrayp, nil

cheers, Greg

=====
backtrace:
----
Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
  substring(nil 0 0)
  replace-regexp-in-string("--\\|[\\{}$%&_#~^]" #f(compiled-function (m) #<bytecode 0x158244740ef5>) nil nil t)
  org-latex--protect-texttt(nil)
  (lambda (_ c _) (org-latex--protect-texttt c))((verbatim (:value "equals" :begin 11 :end 20 :post-blank 1 :parent (headline (:raw-value "this =equals= that" :begin 2 :end 37 :pre-blank 1 :contents-begin 26 :contents-end 37 :level 3 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 2 :title (#("this " 0 5 (:parent #13)) #1 #("that" 0 4 (:parent #13))) :parent (org-data nil #13)) (section (:begin 26 :end 37 :contents-begin 26 :contents-end 37 :post-blank 0 :post-affiliated 26 :parent #13) (paragraph (:begin 26 :end 37 :contents-begin 26 :contents-end 37 :post-blank 0 :post-affiliated 26 :parent #16) #("and, so on\n" 0 11 (:parent #19))))))) nil (:export-options nil :back-end #s(org-export-backend :name nil :parent latex :transcoders ((underline lambda (o c i) (format "\\underline{%s}" c)) (code lambda (_ c _) (org-latex--protect-texttt c)) (verbatim lambda (_ c _) (org-latex--protect-texttt c))) :options nil :filters nil :blocks nil :menu nil) :translate-alist ((underline lambda (o c i) (format "\\underline{%s}" c)) (code lambda (_ c _) (org-latex--protect-texttt c)) (verbatim lambda (_ c _) (org-latex--protect-texttt c)) (bold . org-latex-bold) (center-block . org-latex-center-block) (clock . org-latex-clock) (code . org-latex-code) (drawer . org-latex-drawer) (dynamic-block . org-latex-dynamic-block) (entity . org-latex-entity) (example-block . org-latex-example-block) (export-block . org-latex-export-block) (export-snippet . org-latex-export-snippet) (fixed-width . org-latex-fixed-width) (footnote-definition . org-latex-footnote-definition) (footnote-reference . org-latex-footnote-reference) (headline . org-latex-headline) (horizontal-rule . org-latex-horizontal-rule) (inline-src-block . org-latex-inline-src-block) (inlinetask . org-latex-inlinetask) (italic . org-latex-italic) (item . org-latex-item) (keyword . org-latex-keyword) (latex-environment . org-latex-latex-environment) (latex-fragment . org-latex-latex-fragment) (line-break . org-latex-line-break) (link . org-latex-link) (node-property . org-latex-node-property) (paragraph . org-latex-paragraph) (plain-list . org-latex-plain-list) (plain-text . org-latex-plain-text) (planning . org-latex-planning) (property-drawer . org-latex-property-drawer) (quote-block . org-latex-quote-block) (radio-target . org-latex-radio-target) (section . org-latex-section) (special-block . org-latex-special-block) (src-block . org-latex-src-block) (statistics-cookie . org-latex-statistics-cookie) (strike-through . org-latex-strike-through) (subscript . org-latex-subscript) (superscript . org-latex-superscript) (table . org-latex-table) (table-cell . org-latex-table-cell) (table-row . org-latex-table-row) (target . org-latex-target) (template . org-latex-template) (timestamp . org-latex-timestamp) (underline . org-latex-underline) (verbatim . org-latex-verbatim) ...) :exported-data #<hash-table eq 1/401 0x158244e7f291> :input-buffer "ffff.org" :input-file "/home/minshall/ffff.org" :latex-class "article" :latex-class-options nil :latex-header nil :latex-header-extra nil :description nil :keywords nil :subtitle nil :latex-active-timestamp-format "\\textit{%s}" :latex-caption-above (table) :latex-classes (("memoir" "\\documentclass{memoir}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("beamer" "\\documentclass[presentation]{beamer}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("article" "\\documentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))) :latex-default-figure-position "htbp" :latex-default-table-environment "tabular" :latex-default-table-mode table :latex-diary-timestamp-format "\\textit{%s}" :latex-footnote-defined-format "\\textsuperscript{\\ref{%s}}" :latex-footnote-separator "\\textsuperscript{,}\\," :latex-format-drawer-function #f(compiled-function (_ contents) #<bytecode 0x15824473e14d>) :latex-format-headline-function org-latex-format-headline-default-function :latex-format-inlinetask-function org-latex-format-inlinetask-default-function ...))
  org-export-data((verbatim (:value "equals" :begin 11 :end 20 :post-blank 1 :parent (headline (:raw-value "this =equals= that" :begin 2 :end 37 :pre-blank 1 :contents-begin 26 :contents-end 37 :level 3 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 2 :title (#("this " 0 5 (:parent #13)) #1 #("that" 0 4 (:parent #13))) :parent (org-data nil #13)) (section (:begin 26 :end 37 :contents-begin 26 :contents-end 37 :post-blank 0 :post-affiliated 26 :parent #13) (paragraph (:begin 26 :end 37 :contents-begin 26 :contents-end 37 :post-blank 0 :post-affiliated 26 :parent #16) #("and, so on\n" 0 11 (:parent #19))))))) (:export-options nil :back-end #s(org-export-backend :name nil :parent latex :transcoders ((underline lambda (o c i) (format "\\underline{%s}" c)) (code lambda (_ c _) (org-latex--protect-texttt c)) (verbatim lambda (_ c _) (org-latex--protect-texttt c))) :options nil :filters nil :blocks nil :menu nil) :translate-alist ((underline lambda (o c i) (format "\\underline{%s}" c)) (code lambda (_ c _) (org-latex--protect-texttt c)) (verbatim lambda (_ c _) (org-latex--protect-texttt c)) (bold . org-latex-bold) (center-block . org-latex-center-block) (clock . org-latex-clock) (code . org-latex-code) (drawer . org-latex-drawer) (dynamic-block . org-latex-dynamic-block) (entity . org-latex-entity) (example-block . org-latex-example-block) (export-block . org-latex-export-block) (export-snippet . org-latex-export-snippet) (fixed-width . org-latex-fixed-width) (footnote-definition . org-latex-footnote-definition) (footnote-reference . org-latex-footnote-reference) (headline . org-latex-headline) (horizontal-rule . org-latex-horizontal-rule) (inline-src-block . org-latex-inline-src-block) (inlinetask . org-latex-inlinetask) (italic . org-latex-italic) (item . org-latex-item) (keyword . org-latex-keyword) (latex-environment . org-latex-latex-environment) (latex-fragment . org-latex-latex-fragment) (line-break . org-latex-line-break) (link . org-latex-link) (node-property . org-latex-node-property) (paragraph . org-latex-paragraph) (plain-list . org-latex-plain-list) (plain-text . org-latex-plain-text) (planning . org-latex-planning) (property-drawer . org-latex-property-drawer) (quote-block . org-latex-quote-block) (radio-target . org-latex-radio-target) (section . org-latex-section) (special-block . org-latex-special-block) (src-block . org-latex-src-block) (statistics-cookie . org-latex-statistics-cookie) (strike-through . org-latex-strike-through) (subscript . org-latex-subscript) (superscript . org-latex-superscript) (table . org-latex-table) (table-cell . org-latex-table-cell) (table-row . org-latex-table-row) (target . org-latex-target) (template . org-latex-template) (timestamp . org-latex-timestamp) (underline . org-latex-underline) (verbatim . org-latex-verbatim) ...) :exported-data #<hash-table eq 1/401 0x158244e7f291> :input-buffer "ffff.org" :input-file "/home/minshall/ffff.org" :latex-class "article" :latex-class-options nil :latex-header nil :latex-header-extra nil :description nil :keywords nil :subtitle nil :latex-active-timestamp-format "\\textit{%s}" :latex-caption-above (table) :latex-classes (("memoir" "\\documentclass{memoir}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("beamer" "\\documentclass[presentation]{beamer}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("article" "\\documentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))) :latex-default-figure-position "htbp" :latex-default-table-environment "tabular" :latex-default-table-mode table :latex-diary-timestamp-format "\\textit{%s}" :latex-footnote-defined-format "\\textsuperscript{\\ref{%s}}" :latex-footnote-separator "\\textsuperscript{,}\\," :latex-format-drawer-function #f(compiled-function (_ contents) #<bytecode 0x15824473e14d>) :latex-format-headline-function org-latex-format-headline-default-function :latex-format-inlinetask-function org-latex-format-inlinetask-default-function ...))
  #f(compiled-function (obj) #<bytecode 0x158244e7f2bd>)((verbatim (:value "equals" :begin 11 :end 20 :post-blank 1 :parent (headline (:raw-value "this =equals= that" :begin 2 :end 37 :pre-blank 1 :contents-begin 26 :contents-end 37 :level 3 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 2 :title (#("this " 0 5 (:parent #13)) #1 #("that" 0 4 (:parent #13))) :parent (org-data nil #13)) (section (:begin 26 :end 37 :contents-begin 26 :contents-end 37 :post-blank 0 :post-affiliated 26 :parent #13) (paragraph (:begin 26 :end 37 :contents-begin 26 :contents-end 37 :post-blank 0 :post-affiliated 26 :parent #16) #("and, so on\n" 0 11 (:parent #19))))))))
  mapconcat(#f(compiled-function (obj) #<bytecode 0x158244e7f2bd>) (#("this " 0 5 (:parent (headline (:raw-value "this =equals= that" :begin 2 :end 37 :pre-blank 1 :contents-begin 26 :contents-end 37 :level 3 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 2 :title #2 :parent (org-data nil #6)) (section (:begin 26 :end 37 :contents-begin 26 :contents-end 37 :post-blank 0 :post-affiliated 26 :parent #6) (paragraph (:begin 26 :end 37 :contents-begin 26 :contents-end 37 :post-blank 0 :post-affiliated 26 :parent #9) #("and, so on\n" 0 11 ...)))))) (verbatim (:value "equals" :begin 11 :end 20 :post-blank 1 :parent (headline (:raw-value "this =equals= that" :begin 2 :end 37 :pre-blank 1 :contents-begin 26 :contents-end 37 :level 3 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 2 :title #2 :parent (org-data nil #16)) (section (:begin 26 :end 37 :contents-begin 26 :contents-end 37 :post-blank 0 :post-affiliated 26 :parent #16) (paragraph (:begin 26 :end 37 :contents-begin 26 :contents-end 37 :post-blank 0 :post-affiliated 26 :parent #19) #("and, so on\n" 0 11 ...)))))) #("that" 0 4 (:parent (headline (:raw-value "this =equals= that" :begin 2 :end 37 :pre-blank 1 :contents-begin 26 :contents-end 37 :level 3 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 2 :title #2 :parent (org-data nil #8)) (section (:begin 26 :end 37 :contents-begin 26 :contents-end 37 :post-blank 0 :post-affiliated 26 :parent #8) (paragraph (:begin 26 :end 37 :contents-begin 26 :contents-end 37 :post-blank 0 :post-affiliated 26 :parent #11) #("and, so on\n" 0 11 ...))))))) "")
  org-export-data((#("this " 0 5 (:parent (headline (:raw-value "this =equals= that" :begin 2 :end 37 :pre-blank 1 :contents-begin 26 :contents-end 37 :level 3 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 2 :title #1 :parent ...) (section ... ...)))) (verbatim (:value "equals" :begin 11 :end 20 :post-blank 1 :parent (headline (:raw-value "this =equals= that" :begin 2 :end 37 :pre-blank 1 :contents-begin 26 :contents-end 37 :level 3 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 2 :title #1 :parent ...) (section ... ...)))) #("that" 0 4 (:parent (headline (:raw-value "this =equals= that" :begin 2 :end 37 :pre-blank 1 :contents-begin 26 :contents-end 37 :level 3 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 2 :title #1 :parent ...) (section ... ...))))) (:export-options nil :back-end #s(org-export-backend :name nil :parent latex :transcoders ((underline lambda (o c i) (format "\\underline{%s}" c)) (code lambda (_ c _) (org-latex--protect-texttt c)) (verbatim lambda (_ c _) (org-latex--protect-texttt c))) :options nil :filters nil :blocks nil :menu nil) :translate-alist ((underline lambda (o c i) (format "\\underline{%s}" c)) (code lambda (_ c _) (org-latex--protect-texttt c)) (verbatim lambda (_ c _) (org-latex--protect-texttt c)) (bold . org-latex-bold) (center-block . org-latex-center-block) (clock . org-latex-clock) (code . org-latex-code) (drawer . org-latex-drawer) (dynamic-block . org-latex-dynamic-block) (entity . org-latex-entity) (example-block . org-latex-example-block) (export-block . org-latex-export-block) (export-snippet . org-latex-export-snippet) (fixed-width . org-latex-fixed-width) (footnote-definition . org-latex-footnote-definition) (footnote-reference . org-latex-footnote-reference) (headline . org-latex-headline) (horizontal-rule . org-latex-horizontal-rule) (inline-src-block . org-latex-inline-src-block) (inlinetask . org-latex-inlinetask) (italic . org-latex-italic) (item . org-latex-item) (keyword . org-latex-keyword) (latex-environment . org-latex-latex-environment) (latex-fragment . org-latex-latex-fragment) (line-break . org-latex-line-break) (link . org-latex-link) (node-property . org-latex-node-property) (paragraph . org-latex-paragraph) (plain-list . org-latex-plain-list) (plain-text . org-latex-plain-text) (planning . org-latex-planning) (property-drawer . org-latex-property-drawer) (quote-block . org-latex-quote-block) (radio-target . org-latex-radio-target) (section . org-latex-section) (special-block . org-latex-special-block) (src-block . org-latex-src-block) ...) :exported-data #<hash-table eq 1/401 0x158244e7f291> :input-buffer "ffff.org" :input-file "/home/minshall/ffff.org" :latex-class "article" :latex-class-options nil :latex-header nil :latex-header-extra nil :description nil :keywords nil :subtitle nil :latex-active-timestamp-format "\\textit{%s}" :latex-caption-above (table) :latex-classes (("memoir" "\\documentclass{memoir}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("beamer" "\\documentclass[presentation]{beamer}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("article" "\\documentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))) :latex-default-figure-position "htbp" :latex-default-table-environment "tabular" :latex-default-table-mode table ...))
  org-export-data-with-backend((#("this " 0 5 (:parent ...)) (verbatim (:value "equals" :begin 11 :end 20 :post-blank 1 :parent ...)) #("that" 0 4 (:parent ...))) #s(org-export-backend :name nil :parent latex :transcoders ((underline lambda ... ...) (code lambda ... ...) (verbatim lambda ... ...)) :options nil :filters nil :blocks nil :menu nil) (:export-options nil :back-end #s(org-export-backend :name latex :parent nil :transcoders (... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) :options (... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) :filters (... ... ... ...) :blocks nil :menu (108 "Export to LaTeX" ...)) :translate-alist ((bold . org-latex-bold) (center-block . org-latex-center-block) (clock . org-latex-clock) (code . org-latex-code) (drawer . org-latex-drawer) (dynamic-block . org-latex-dynamic-block) (entity . org-latex-entity) (example-block . org-latex-example-block) (export-block . org-latex-export-block) (export-snippet . org-latex-export-snippet) (fixed-width . org-latex-fixed-width) (footnote-definition . org-latex-footnote-definition) (footnote-reference . org-latex-footnote-reference) (headline . org-latex-headline) (horizontal-rule . org-latex-horizontal-rule) (inline-src-block . org-latex-inline-src-block) (inlinetask . org-latex-inlinetask) (italic . org-latex-italic) (item . org-latex-item) (keyword . org-latex-keyword) (latex-environment . org-latex-latex-environment) (latex-fragment . org-latex-latex-fragment) (line-break . org-latex-line-break) (link . org-latex-link) (node-property . org-latex-node-property) (paragraph . org-latex-paragraph) ...) :exported-data #<hash-table eq 3/4001 0x158244e3f6f9> :input-buffer "ffff.org" :input-file "/home/minshall/ffff.org" :latex-class "article" :latex-class-options nil :latex-header nil :latex-header-extra nil :description nil :keywords nil :subtitle nil ...))
  org-latex-headline((headline (:raw-value "this =equals= that" :begin 2 :end 37 :pre-blank 1 :contents-begin 26 :contents-end 37 :level 3 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil ...) (section (:begin 26 :end 37 :contents-begin 26 :contents-end 37 :post-blank 0 :post-affiliated 26 :parent #1) (paragraph ... ...))) #("and, so on\n" 0 10 (:parent (paragraph ... ...))) (:export-options nil :back-end #s(org-export-backend :name latex :parent nil :transcoders (... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) :options (... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) :filters (... ... ... ...) :blocks nil :menu (108 "Export to LaTeX" ...)) :translate-alist ((bold . org-latex-bold) (center-block . org-latex-center-block) (clock . org-latex-clock) (code . org-latex-code) (drawer . org-latex-drawer) (dynamic-block . org-latex-dynamic-block) (entity . org-latex-entity) (example-block . org-latex-example-block) (export-block . org-latex-export-block) (export-snippet . org-latex-export-snippet) (fixed-width . org-latex-fixed-width) (footnote-definition . org-latex-footnote-definition) (footnote-reference . org-latex-footnote-reference) (headline . org-latex-headline) (horizontal-rule . org-latex-horizontal-rule) (inline-src-block . org-latex-inline-src-block) (inlinetask . org-latex-inlinetask) (italic . org-latex-italic) (item . org-latex-item) (keyword . org-latex-keyword) (latex-environment . org-latex-latex-environment) (latex-fragment . org-latex-latex-fragment) (line-break . org-latex-line-break) (link . org-latex-link) (node-property . org-latex-node-property) (paragraph . org-latex-paragraph) ...) :exported-data #<hash-table eq 3/4001 0x158244e3f6f9> :input-buffer "ffff.org" :input-file "/home/minshall/ffff.org" :latex-class "article" :latex-class-options nil :latex-header nil :latex-header-extra nil :description nil :keywords nil :subtitle nil ...))
  org-export-data((headline (:raw-value "this =equals= that" :begin 2 :end 37 :pre-blank 1 :contents-begin 26 :contents-end 37 :level 3 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil ...) (section (:begin 26 :end 37 :contents-begin 26 :contents-end 37 :post-blank 0 :post-affiliated 26 :parent #1) (paragraph ... ...))) (:export-options nil :back-end #s(org-export-backend :name latex :parent nil :transcoders (... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) :options (... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) :filters (... ... ... ...) :blocks nil :menu (108 "Export to LaTeX" ...)) :translate-alist ((bold . org-latex-bold) (center-block . org-latex-center-block) (clock . org-latex-clock) (code . org-latex-code) (drawer . org-latex-drawer) (dynamic-block . org-latex-dynamic-block) (entity . org-latex-entity) (example-block . org-latex-example-block) (export-block . org-latex-export-block) (export-snippet . org-latex-export-snippet) (fixed-width . org-latex-fixed-width) (footnote-definition . org-latex-footnote-definition) (footnote-reference . org-latex-footnote-reference) (headline . org-latex-headline) (horizontal-rule . org-latex-horizontal-rule) (inline-src-block . org-latex-inline-src-block) (inlinetask . org-latex-inlinetask) (italic . org-latex-italic) (item . org-latex-item) (keyword . org-latex-keyword) (latex-environment . org-latex-latex-environment) (latex-fragment . org-latex-latex-fragment) (line-break . org-latex-line-break) (link . org-latex-link) (node-property . org-latex-node-property) (paragraph . org-latex-paragraph) ...) :exported-data #<hash-table eq 3/4001 0x158244e3f6f9> :input-buffer "ffff.org" :input-file "/home/minshall/ffff.org" :latex-class "article" :latex-class-options nil :latex-header nil :latex-header-extra nil :description nil :keywords nil :subtitle nil ...))
  #f(compiled-function (element) #<bytecode 0x158244e7ee7d>)((headline (:raw-value "this =equals= that" :begin 2 :end 37 :pre-blank 1 :contents-begin 26 :contents-end 37 :level 3 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 2 :title (#("this " 0 5 (:parent #1)) (verbatim (:value "equals" :begin 11 :end 20 :post-blank 1 :parent #1)) #("that" 0 4 (:parent #1))) :parent (org-data nil #1)) (section (:begin 26 :end 37 :contents-begin 26 :contents-end 37 :post-blank 0 :post-affiliated 26 :parent #1) (paragraph (:begin 26 :end 37 :contents-begin 26 :contents-end 37 :post-blank 0 :post-affiliated 26 :parent #4) #("and, so on\n" 0 11 (:parent #7))))))
  mapconcat(#f(compiled-function (element) #<bytecode 0x158244e7ee7d>) ((headline (:raw-value "this =equals= that" :begin 2 :end 37 :pre-blank 1 :contents-begin 26 :contents-end 37 :level 3 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 2 :title (#("this " 0 5 (:parent #3)) (verbatim (:value "equals" :begin 11 :end 20 :post-blank 1 :parent #3)) #("that" 0 4 (:parent #3))) :parent (org-data nil . #2)) (section (:begin 26 :end 37 :contents-begin 26 :contents-end 37 :post-blank 0 :post-affiliated 26 :parent #3) (paragraph (:begin 26 :end 37 :contents-begin 26 :contents-end 37 :post-blank 0 :post-affiliated 26 :parent #6) #("and, so on\n" 0 11 (:parent #9)))))) "")
  org-export-data((org-data nil (headline (:raw-value "this =equals= that" :begin 2 :end 37 :pre-blank 1 :contents-begin 26 :contents-end 37 :level 3 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil ...) (section ... ...))) (:export-options nil :back-end #s(org-export-backend :name latex :parent nil :transcoders (... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) :options (... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) :filters (... ... ... ...) :blocks nil :menu (108 "Export to LaTeX" ...)) :translate-alist ((bold . org-latex-bold) (center-block . org-latex-center-block) (clock . org-latex-clock) (code . org-latex-code) (drawer . org-latex-drawer) (dynamic-block . org-latex-dynamic-block) (entity . org-latex-entity) (example-block . org-latex-example-block) (export-block . org-latex-export-block) (export-snippet . org-latex-export-snippet) (fixed-width . org-latex-fixed-width) (footnote-definition . org-latex-footnote-definition) (footnote-reference . org-latex-footnote-reference) (headline . org-latex-headline) (horizontal-rule . org-latex-horizontal-rule) (inline-src-block . org-latex-inline-src-block) (inlinetask . org-latex-inlinetask) (italic . org-latex-italic) (item . org-latex-item) (keyword . org-latex-keyword) (latex-environment . org-latex-latex-environment) (latex-fragment . org-latex-latex-fragment) (line-break . org-latex-line-break) (link . org-latex-link) (node-property . org-latex-node-property) (paragraph . org-latex-paragraph) ...) :exported-data #<hash-table eq 3/4001 0x158244e3f6f9> :input-buffer "ffff.org" :input-file "/home/minshall/ffff.org" :latex-class "article" :latex-class-options nil :latex-header nil :latex-header-extra nil :description nil :keywords nil :subtitle nil ...))
  org-export-as(latex nil nil nil (:output-file "ffff.tex"))
  org-export-to-file(latex "ffff.tex" nil nil nil nil nil #f(compiled-function (file) #<bytecode 0x158244744941>))
  org-latex-export-to-pdf(nil nil nil nil)
  (org-open-file (org-latex-export-to-pdf nil s v b))
  (if a (org-latex-export-to-pdf t s v b) (org-open-file (org-latex-export-to-pdf nil s v b)))
  (lambda (a s v b) (if a (org-latex-export-to-pdf t s v b) (org-open-file (org-latex-export-to-pdf nil s v b))))(nil nil nil nil)
  org-export-dispatch(nil)
  funcall-interactively(org-export-dispatch nil)
  call-interactively(org-export-dispatch nil nil)
  command-execute(org-export-dispatch)


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: life on the eading bledge
  2021-04-05 16:47 life on the eading bledge Greg Minshall
@ 2021-04-06  0:51 ` Kyle Meyer
  2021-04-06  2:25   ` Greg Minshall
  2021-04-06 11:52   ` Nicolas Goaziou
  0 siblings, 2 replies; 5+ messages in thread
From: Kyle Meyer @ 2021-04-06  0:51 UTC (permalink / raw)
  To: Greg Minshall; +Cc: emacs-orgmode, Nicolas Goaziou

Greg Minshall writes:

> hi.  running c881b60593b3beeed7b8c7a2bada64157cd9940a, the following 
>
> ====
> *** this =equals= that
>
> and, so on
> ====
>
> exporting [C-e l o], gives
> : replace-regexp-in-string: Wrong type argument: arrayp, nil

Thanks for reporting.  The failure was introduced by bcfe6f985
(ox-latex: convert verbatim text in headings to texttt, 2021-04-04).
The below change seems to fix the issue, though Nicolas may be able to
suggest a more appropriate change.

diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 932f38530..ac24f1f74 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -1961,8 +1961,16 @@ (defun org-latex-headline (headline contents info)
                ;; commands (like \section, etc.), and this causes compilation to fail.
                ;; So, within headings it's a good idea to replace any instances of \verb
                ;; with \texttt.
-               (code . (lambda (_ c _) (org-latex--protect-texttt c)))
-               (verbatim . (lambda (_ c _) (org-latex--protect-texttt c))))))
+               (code . (lambda (o c i)
+                         (org-latex--protect-texttt
+                          (or c
+                              (org-export-data
+                               (org-element-property :value o) i)))))
+               (verbatim . (lambda (o c i)
+                             (org-latex--protect-texttt
+                              (or c
+                                  (org-export-data
+                                   (org-element-property :value o) i))))))))
 	   (text
 	    (org-export-data-with-backend
 	     (org-element-property :title headline) section-back-end info))



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: life on the eading bledge
  2021-04-06  0:51 ` Kyle Meyer
@ 2021-04-06  2:25   ` Greg Minshall
  2021-04-06 11:52   ` Nicolas Goaziou
  1 sibling, 0 replies; 5+ messages in thread
From: Greg Minshall @ 2021-04-06  2:25 UTC (permalink / raw)
  To: Kyle Meyer; +Cc: emacs-orgmode, Nicolas Goaziou

Kyle,

> The below change seems to fix the issue, though Nicolas may be able to
> suggest a more appropriate change.

yes, that seems to work for me.

cheers, Greg
----
> diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
> index 932f38530..ac24f1f74 100644
> --- a/lisp/ox-latex.el
> +++ b/lisp/ox-latex.el
> @@ -1961,8 +1961,16 @@ (defun org-latex-headline (headline contents info)
>                 ;; commands (like \section, etc.), and this causes compilation to fail.
>                 ;; So, within headings it's a good idea to replace any instances of \verb
>                 ;; with \texttt.
> -               (code . (lambda (_ c _) (org-latex--protect-texttt c)))
> -               (verbatim . (lambda (_ c _) (org-latex--protect-texttt c))))))
> +               (code . (lambda (o c i)
> +                         (org-latex--protect-texttt
> +                          (or c
> +                              (org-export-data
> +                               (org-element-property :value o) i)))))
> +               (verbatim . (lambda (o c i)
> +                             (org-latex--protect-texttt
> +                              (or c
> +                                  (org-export-data
> +                                   (org-element-property :value o) i))))))))
>  	   (text
>  	    (org-export-data-with-backend
>  	     (org-element-property :title headline) section-back-end info))
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: life on the eading bledge
  2021-04-06  0:51 ` Kyle Meyer
  2021-04-06  2:25   ` Greg Minshall
@ 2021-04-06 11:52   ` Nicolas Goaziou
  2021-04-06 12:23     ` Greg Minshall
  1 sibling, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2021-04-06 11:52 UTC (permalink / raw)
  To: Kyle Meyer; +Cc: Greg Minshall, emacs-orgmode

Hello,

Kyle Meyer <kyle@kyleam.com> writes:

> Greg Minshall writes:
>
>> hi.  running c881b60593b3beeed7b8c7a2bada64157cd9940a, the following 
>>
>> ====
>> *** this =equals= that
>>
>> and, so on
>> ====
>>
>> exporting [C-e l o], gives
>> : replace-regexp-in-string: Wrong type argument: arrayp, nil
>
> Thanks for reporting.  The failure was introduced by bcfe6f985
> (ox-latex: convert verbatim text in headings to texttt, 2021-04-04).
> The below change seems to fix the issue, though Nicolas may be able to
> suggest a more appropriate change.

Indeed. I pushed a fix. I forgot verbatim objects have no contents since
they are leaf objects.

Regards,
-- 
Nicolas Goaziou


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: life on the eading bledge
  2021-04-06 11:52   ` Nicolas Goaziou
@ 2021-04-06 12:23     ` Greg Minshall
  0 siblings, 0 replies; 5+ messages in thread
From: Greg Minshall @ 2021-04-06 12:23 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Kyle Meyer, emacs-orgmode

Nicolas, thanks, your fix also seem to solve the problem i was having.
cheers, Greg


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-04-06 12:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-05 16:47 life on the eading bledge Greg Minshall
2021-04-06  0:51 ` Kyle Meyer
2021-04-06  2:25   ` Greg Minshall
2021-04-06 11:52   ` Nicolas Goaziou
2021-04-06 12:23     ` Greg Minshall

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