Compare commits

...

3 Commits

1 changed files with 16 additions and 5 deletions

View File

@ -3743,6 +3743,7 @@ facilities for [[https://orgmode.org/worg/org-tests/index.html][Testing Org]].
#+name: lst:setup-org-mode-test-2
#+begin_src emacs-lisp -n
(with-eval-after-load 'emacs
;; Stolen from `org-test-run-all-tests'.
(defun org-test-run-some-tests ()
"Run some defined tests.
Load all test files first."
@ -3771,11 +3772,21 @@ Load all test files first."
(org-test-load)
(let (;; Catch errors in diary sexps better.
(calendar-debug-sexp t))
(ert "ob/"))))
(ert "ob/")))
(defun org-test-run-a-test-file ()
"Run all tests in an Org test file (trailing `/' matters).
Examples: `ob/' or `ob-maxima'."
(interactive)
(let ((text (read-string "Org test file (without leading test-): "
nil nil "ob-maxima")))
(org-test-load)
(let (;; Catch errors in diary sexps better.
(calendar-debug-sexp t))
(ert text)))))
#+end_src
*** [[info:org#Export Settings][File inclusion (info)]] and [[info:org#Noweb Reference Syntax][Noweb (info)]] trickery
*** [[info:org#Noweb Reference Syntax][Noweb (info)]] trickery
:PROPERTIES:
:CUSTOM_ID: sec:file-inclusion-and-noweb
:END:
@ -3787,8 +3798,8 @@ Listing [[lst:source-file-export-keyword-settings]] shows the preamble lines of
the [[https://orgmode.org/][Org mode]] =kbd= macro and the source block that generates part of the LaTeX
preamble. Listing [[lst:latex-header-1]], [[lst:latex-header-2]], [[lst:latex-header-3]],
[[lst:latex-header-4]], and [[lst:latex-header-5]] show the LaTeX source blocks that
generate the LaTeX preamble. All listings in this section exists thanks to [[info:org#Export Settings][file
inclusion (info)]] and [[info:org#Noweb Reference Syntax][noweb (info)]] trickery.
contain the LaTeX preamble. All LaTeX listings in this section *can be and are*
handled by [[info:org#Noweb Reference Syntax][noweb (info)]].
#+caption[Source file export keyword settings]:
#+caption: The preamble lines of README.org containing the export keyword