1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-24 07:20:29 +00:00
org-mode/testing/examples/ob-header-arg-defaults.org
Nicolas Goaziou f38f83b4f1 Remove deprecated syntax for Babel properties
* doc/org.texi (Header arguments in Org mode properties): Remove
  reference to deprecated syntax.
* lisp/ob-core.el (org-babel-params-from-properties): Ignore deprecated
  syntax.
* testing/examples/babel.org:
* testing/examples/normal.org:
* testing/examples/ob-header-arg-defaults.org:
* testing/examples/property-inheritance.org:
* testing/lisp/test-ob-header-arg-defaults.el
(test-ob-header-arg-defaults/global/noweb):
(test-ob-header-arg-defaults/global/call):
(test-ob-header-arg-defaults/tree/overwrite/call):
(test-ob-header-arg-defaults/tree/overwrite/noweb):
(test-ob-header-arg-defaults/tree/accumulate/call):
(test-ob-header-arg-defaults/tree/accumulate/noweb):
(test-ob-header-arg-defaults/tree/complex/call):
(test-ob-header-arg-defaults/tree/complex/noweb):
* testing/lisp/test-ob.el (test-ob/elisp-in-header-arguments):
* testing/lisp/test-property-inheritance.el
(test-org-property-accumulation-overwrite-use): Update syntax.
(test-org-property-accumulation-append-use): Use new syntax.
(test-org-property-accumulation-top-val)
(test-org-property-accumulation-overwrite-val)
(test-org-property-accumulation-append-val): Remove tests.
2016-07-04 00:41:56 +02:00

5.1 KiB
Raw Blame History

Tests for default header arguments to Babel source blocks

  (mapconcat (lambda (n)
               (let* ((n (string (+ 48 n)))
                      (p (intern (concat "t" n))))
                 (if (boundp p) (eval p) (concat "--" n))))
             (number-sequence 1 end)
             "/")

Global property

Global t1 t2 t3 t4 t5 t6 t7 t8 t9
header-args gh1 gh2 gh4
header-args:emacs-lisp ge1 ge4 ge5
Result ge1 gh2 3 ge4 ge5 6 7 8 9
<<showvar>>

Tree property

Overwrite

Global t1 t2 t3 t4 t5 t6 t7 t8 t9
header-args gh1 gh2 gh4
header-args:emacs-lisp ge1 ge4 ge5
Tree t1 t2 t3 t4 t5 t6 t7 t8 t9
header-args th7
header-args:emacs-lisp te8
Result #+CALL ge1 gh2 3 ge4 ge5 6 th7 te8 9
Result noweb 1 2 3 4 5 6 th7 te8 9
<<showvar>>

Accumulate

Global t1 t2 t3 t4 t5 t6 t7 t8 t9
header-args gh1 gh2 gh4
header-args:emacs-lisp ge1 ge4 ge5
Tree t1 t2 t3 t4 t5 t6 t7 t8 t9
header-args+ th2 th3
header-args:emacs-lisp+ te5
Result #+CALL ge1 th2 th3 ge4 te5 6 7 8 9
Result noweb ge1 th2 th3 ge4 te5 6 7 8 9
<<showvar>>

Complex

Global t1 t2 t3 t4 t5 t6 t7 t8 t9
header-args gh1 gh2 gh4
header-args:emacs-lisp ge1 ge4 ge5
Tree t1 t2 t3 t4 t5 t6 t7 t8 t9
header-args+ th2
header-args:emacs-lisp te5
Result #+CALL gh1 th2 go3 gh4 te5 6 7 8 9
Result noweb gh1 th2 3 gh4 te5 6 7 8 9
<<showvar>>