0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-22 06:18:39 +00:00
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
babel.org Standardized code block keywords 2011-11-15 08:56:24 -07:00
link-in-heading.org
links.org Add links.org to testing/examples/ 2011-01-17 18:23:45 +01:00
no-heading.org
normal.org
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
ob-C-test.org fix whitespace errors 2011-11-08 13:44:23 -07:00
ob-fortran-test.org Standardized code block keywords 2011-11-15 08:56:24 -07:00
ob-lilypond-broken.ly
ob-lilypond-broken.org
ob-lilypond-test.error
ob-lilypond-test.ly ob-lilypond: test suite, all tests passing 2011-07-01 12:22:33 -07:00
ob-lilypond-test.org
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