org-mode/testing/examples
Eric Schulte 3af89e696a property names ending in plus accumulate
This results in the following behavior.

  #+property: var  foo=1
  #+property: var+ bar=2

  #+begin_src emacs-lisp
    (+ foo bar)
  #+end_src

  #+results:
  : 3

  #+begin_src emacs-lisp
    (org-entry-get (point) "var" t)
  #+end_src

  #+results:
  : foo=1 bar=2

  * overwriting a file-wide property
    :PROPERTIES:
    :var:      foo=7
    :END:

  #+begin_src emacs-lisp
    foo
  #+end_src

  #+results:
  : 7

  #+begin_src emacs-lisp
    (org-entry-get (point) "var" t)
  #+end_src

  #+results:
  : foo=7

  * appending to a file-wide property
    :PROPERTIES:
    :var+:      baz=3
    :END:

  #+begin_src emacs-lisp
    (+ foo bar baz)
  #+end_src

  #+results:
  : 6

  #+begin_src emacs-lisp
    (org-entry-get (point) "var" t)
  #+end_src

  #+results:
  : foo=1 bar=2 baz=3

* lisp/org.el (org-update-property-plist): Updates a given property
  list with a property name and a property value.
  (org-set-regexps-and-options): Use org-update-property-plist.
  (org-entry-get): Use org-update-property-plist.
* testing/examples/property-inheritance.org: Example file for testing
  appending property behavior.
* testing/lisp/test-property-inheritance.el: Tests of appending
  property behavior.
* lisp/ob.el (org-babel-balanced-split): Allow splitting on single
  characters as well as groups of two characters.
  (org-babel-parse-multiple-vars): Split variables on single spaces.
2011-11-15 08:56:24 -07:00
..
babel-dangerous.org Standardized code block keywords 2011-11-15 08:56:24 -07:00
babel.org Standardized code block keywords 2011-11-15 08:56:24 -07:00
link-in-heading.org test: re-arranging example files into their own directory 2010-10-05 11:54:48 -06:00
links.org Add links.org to testing/examples/ 2011-01-17 18:23:45 +01:00
no-heading.org ob-exp: fixed export when headings have links, with tests 2010-10-05 11:54:48 -06:00
normal.org test: re-arranging example files into their own directory 2010-10-05 11:54:48 -06:00
ob-C-test.org fix whitespace errors 2011-11-08 13:44:23 -07:00
ob-awk-test.in Awk can be called with no in-file: and no :stdin 2011-07-24 14:05:55 -06:00
ob-awk-test.org Standardized code block keywords 2011-11-15 08:56:24 -07:00
ob-fortran-test.org Standardized code block keywords 2011-11-15 08:56:24 -07:00
ob-lilypond-broken.ly ob-lilypond: test suite, all tests passing 2011-07-01 12:22:33 -07:00
ob-lilypond-broken.org ob-lilypond: test suite, all tests passing 2011-07-01 12:22:33 -07:00
ob-lilypond-test.error ob-lilypond: test suite, all tests passing 2011-07-01 12:22:33 -07:00
ob-lilypond-test.ly ob-lilypond: test suite, all tests passing 2011-07-01 12:22:33 -07:00
ob-lilypond-test.org ob-lilypond: test suite, all tests passing 2011-07-01 12:22:33 -07:00
ob-maxima-test.org fix whitespace errors 2011-11-08 13:52:11 -07:00
org-exp.org test of comma stripping behavior 2011-09-06 21:58:51 -06:00
property-inheritance.org property names ending in plus accumulate 2011-11-15 08:56:24 -07:00
table.org test: adding simple regression test for table formula evaluation 2011-07-04 12:13:41 -06:00