emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
blob 477e25f01fd17a66db32954c174384b730bdc005 1175 bytes (raw)
name: testing/examples/property-inheritance.org 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
 
#+property: var  foo=1
#+property: var+ bar=2

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

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

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

#+begin_src emacs-lisp
  foo
#+end_src

#+begin_src emacs-lisp
  (org-entry-get (point) "var" t)
#+end_src
* appending to a file-wide property
  :PROPERTIES:
  :var+:      baz=3
  :END:

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

#+begin_src emacs-lisp
  (org-entry-get (point) "var" t)
#+end_src
* hierarchy test
:PROPERTIES:
:var+: boo=2
:END:
** appending to a parent property
  :PROPERTIES:
  :var+:      baz=3
  :END:

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

#+begin_src emacs-lisp
  (org-entry-get (point) "var" t)
#+end_src
** resetting a parent property
  :PROPERTIES:
  :var+:       nil
  :END:
#+begin_src emacs-lisp
  (+ foo bar baz)
#+end_src

#+begin_src emacs-lisp
  (org-entry-get (point) "var" t t)
#+end_src
*** setting a new property value
:PROPERTIES:
:var+: bat=5
:END:
#+begin_src emacs-lisp
  (+ foo bar baz)
#+end_src

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

debug log:

solving 477e25f ...
found 477e25f in https://list.orgmode.org/orgmode/1356500304-4525-1-git-send-email-bill@wishon.org/
found de5b539 in https://git.savannah.gnu.org/cgit/emacs/org-mode.git
preparing index
index prepared:
100644 de5b53974bfd28e05f7d6a37b2d04f32962f3db5	testing/examples/property-inheritance.org

applying [1/1] https://list.orgmode.org/orgmode/1356500304-4525-1-git-send-email-bill@wishon.org/
diff --git a/testing/examples/property-inheritance.org b/testing/examples/property-inheritance.org
index de5b539..477e25f 100644

Checking patch testing/examples/property-inheritance.org...
Applied patch testing/examples/property-inheritance.org cleanly.

index at:
100644 477e25f01fd17a66db32954c174384b730bdc005	testing/examples/property-inheritance.org

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).