org-mode/testing/lisp
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
..
test-ob-C.el cpp->c++-mode, ob-C mode tests 2011-11-08 13:41:43 -07:00
test-ob-R.el org tests using throw/catch rather than errors to avoid loading unsupported tests 2011-09-24 15:57:14 -06:00
test-ob-awk.el only load those test files for which the required executables are present 2011-09-21 16:41:44 -06:00
test-ob-exp.el ensure all tests have unique names 2011-09-06 09:07:00 -06:00
test-ob-fortran.el only load those test files for which the required executables are present 2011-09-21 16:41:44 -06:00
test-ob-lilypond.el Add missing FSF / author headers and org-test dependency to some test files * testing/lisp/test-ob-awk.el: * testing/lisp/test-ob-fortran.el: * testing/lisp/test-ob-lilypond.el: * testing/lisp/test-ob.el: * testing/lisp/test-org-exp.el: Add missing FSF / author headers and org-test dependency to some test files. 2011-09-12 10:39:45 -06:00
test-ob-lob.el correctly resolving load-path in testing files 2011-09-06 11:12:29 -06:00
test-ob-maxima.el fix whitespace errors 2011-11-08 13:52:11 -07:00
test-ob-sh.el Modified testing/README.org to include ERT installation information for Emacs version < 24. Added new tests 2011-03-02 11:46:47 -07:00
test-ob-table.el Modified testing/README.org to include ERT installation information for Emacs version < 24. Added new tests 2011-03-02 11:46:47 -07:00
test-ob-tangle.el test: updated babel tangling test to reflect body-parsing change 2011-07-15 09:31:36 -06:00
test-ob.el Standardized code block keywords 2011-11-15 08:56:24 -07:00
test-org-exp.el Modifications to enable test script to run with emacs-23 and emacs-22 * testing/org-test.el: enable test script to run with emacs-23 and emacs-22 * testing/lisp/test-org-exp.el: added org-ascii requirement 2011-09-20 09:03:41 -06:00
test-org-html.el Use macro to compose html link export tests 2011-09-25 09:49:39 +02:00
test-org-table.el test: adding simple regression test for table formula evaluation 2011-07-04 12:13:41 -06:00
test-org.el Explicitely set coding system for unescaped string 2011-09-18 16:40:01 +02:00
test-property-inheritance.el property names ending in plus accumulate 2011-11-15 08:56:24 -07:00