Merge branch 'bugfix'
This commit is contained in:
commit
fff9239dc1
|
@ -243,8 +243,8 @@ value of the last statement in BODY, as elisp."
|
||||||
(`output
|
(`output
|
||||||
(setq results
|
(setq results
|
||||||
(if matlabp
|
(if matlabp
|
||||||
(cdr (reverse (delq "" (mapcar #'org-strip-quotes
|
(cdr (reverse (delete "" (mapcar #'org-strip-quotes
|
||||||
(mapcar #'org-trim raw)))))
|
(mapcar #'org-trim raw)))))
|
||||||
(cdr (member org-babel-octave-eoe-output
|
(cdr (member org-babel-octave-eoe-output
|
||||||
(reverse (mapcar #'org-strip-quotes
|
(reverse (mapcar #'org-strip-quotes
|
||||||
(mapcar #'org-trim raw)))))))
|
(mapcar #'org-trim raw)))))))
|
||||||
|
|
|
@ -7333,7 +7333,7 @@ Any match of REMOVE-RE will be removed from TXT."
|
||||||
(let ((s (org-format-outline-path (org-get-outline-path)
|
(let ((s (org-format-outline-path (org-get-outline-path)
|
||||||
(1- (frame-width))
|
(1- (frame-width))
|
||||||
nil org-agenda-breadcrumbs-separator)))
|
nil org-agenda-breadcrumbs-separator)))
|
||||||
(if (eq "" s) "" (concat s org-agenda-breadcrumbs-separator))))))
|
(if (equal "" s) "" (concat s org-agenda-breadcrumbs-separator))))))
|
||||||
(setq time (cond (s2 (concat
|
(setq time (cond (s2 (concat
|
||||||
(org-agenda-time-of-day-to-ampm-maybe s1)
|
(org-agenda-time-of-day-to-ampm-maybe s1)
|
||||||
"-" (org-agenda-time-of-day-to-ampm-maybe s2)
|
"-" (org-agenda-time-of-day-to-ampm-maybe s2)
|
||||||
|
|
|
@ -7567,15 +7567,15 @@ the cache."
|
||||||
;; beginning.
|
;; beginning.
|
||||||
(next-element-re (pcase granularity
|
(next-element-re (pcase granularity
|
||||||
((or `headline
|
((or `headline
|
||||||
(guard (eq '(headline)
|
(guard (equal '(headline)
|
||||||
restrict-elements)))
|
restrict-elements)))
|
||||||
(cons
|
(cons
|
||||||
(org-with-limited-levels
|
(org-with-limited-levels
|
||||||
org-element-headline-re)
|
org-element-headline-re)
|
||||||
'match-beg))
|
'match-beg))
|
||||||
(`headline+inlinetask
|
(`headline+inlinetask
|
||||||
(cons
|
(cons
|
||||||
(if (eq '(inlinetask) restrict-elements)
|
(if (equal '(inlinetask) restrict-elements)
|
||||||
(org-inlinetask-outline-regexp)
|
(org-inlinetask-outline-regexp)
|
||||||
org-element-headline-re)
|
org-element-headline-re)
|
||||||
'match-beg))
|
'match-beg))
|
||||||
|
|
|
@ -32,6 +32,8 @@
|
||||||
(require 'cl-lib)
|
(require 'cl-lib)
|
||||||
(require 'ox)
|
(require 'ox)
|
||||||
|
|
||||||
|
(eval-when-compile (require 'subr-x))
|
||||||
|
|
||||||
(defvar orgtbl-exp-regexp)
|
(defvar orgtbl-exp-regexp)
|
||||||
(defvar org-texinfo-supports-math--cache)
|
(defvar org-texinfo-supports-math--cache)
|
||||||
|
|
||||||
|
@ -2025,12 +2027,14 @@ Once computed, the results remain cached."
|
||||||
(unless (boundp 'org-texinfo-supports-math--cache)
|
(unless (boundp 'org-texinfo-supports-math--cache)
|
||||||
(setq org-texinfo-supports-math--cache
|
(setq org-texinfo-supports-math--cache
|
||||||
(let ((math-example "1 + 1 = 2"))
|
(let ((math-example "1 + 1 = 2"))
|
||||||
(let* ((input-file
|
(let* ((input-file (make-temp-file "test" nil ".info"))
|
||||||
(make-temp-file "test" nil ".info"))
|
(input-content (string-join
|
||||||
(input-content
|
(list (format "@setfilename %s" input-file)
|
||||||
(concat (format "@setfilename %s" input-file) "\n"
|
"@node Top"
|
||||||
"@node Top" "\n"
|
"@displaymath"
|
||||||
(format "@displaymath{%s}" math-example) "\n")))
|
math-example
|
||||||
|
"@end displaymath")
|
||||||
|
"\n")))
|
||||||
(with-temp-file input-file
|
(with-temp-file input-file
|
||||||
(insert input-content))
|
(insert input-content))
|
||||||
(let* ((output-file (org-texinfo-compile input-file))
|
(let* ((output-file (org-texinfo-compile input-file))
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
(require 'cl-lib)
|
(require 'cl-lib)
|
||||||
(require 'ox-texinfo)
|
(require 'ox-texinfo)
|
||||||
|
|
||||||
|
(eval-when-compile (require 'subr-x))
|
||||||
|
|
||||||
(unless (featurep 'ox-texinfo)
|
(unless (featurep 'ox-texinfo)
|
||||||
(signal 'missing-test-dependency "org-export-texinfo"))
|
(signal 'missing-test-dependency "org-export-texinfo"))
|
||||||
|
|
||||||
|
@ -292,5 +294,35 @@
|
||||||
nil
|
nil
|
||||||
'(:with-latex t))))))
|
'(:with-latex t))))))
|
||||||
|
|
||||||
|
|
||||||
|
;;; End-to-end
|
||||||
|
|
||||||
|
(ert-deftest test-ox-texinfo/end-to-end-inline ()
|
||||||
|
"Test end-to-end with inline TeX fragment."
|
||||||
|
(should
|
||||||
|
(org-test-with-temp-text
|
||||||
|
"$a^2 = b$"
|
||||||
|
(let ((export-buffer "*Test Texinfo Export*")
|
||||||
|
(org-export-show-temporary-export-buffer nil))
|
||||||
|
(org-export-to-buffer 'texinfo export-buffer
|
||||||
|
nil nil nil nil nil
|
||||||
|
#'texinfo-mode)))))
|
||||||
|
|
||||||
|
(ert-deftest test-ox-texinfo/end-to-end-sanity-check-displayed ()
|
||||||
|
"Test end-to-end with LaTeX environment."
|
||||||
|
(should
|
||||||
|
(org-test-with-temp-text
|
||||||
|
(string-join
|
||||||
|
(list "\\begin{equation}"
|
||||||
|
"a ^ 2 = b"
|
||||||
|
"b ^ 2 = c"
|
||||||
|
"\\end{equation}")
|
||||||
|
"\n")
|
||||||
|
(let ((export-buffer "*Test Texinfo Export*")
|
||||||
|
(org-export-show-temporary-export-buffer nil))
|
||||||
|
(org-export-to-buffer 'texinfo export-buffer
|
||||||
|
nil nil nil nil nil
|
||||||
|
#'texinfo-mode)))))
|
||||||
|
|
||||||
(provide 'test-ox-texinfo)
|
(provide 'test-ox-texinfo)
|
||||||
;;; test-ox-texinfo.el end here
|
;;; test-ox-texinfo.el end here
|
||||||
|
|
Loading…
Reference in New Issue