blob f2c68e2bde53d8aef38b55bebfa54812e60b68c5 1203 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
| | #+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.5
:END:
** appending to a parent property
:PROPERTIES:
:var+: baz=3
:END:
The result should be 8.5
#+begin_src emacs-lisp
(+ foo bar boo baz)
#+end_src
The result should be "foo=1 bar=2 boo=2.5 baz=3"
#+begin_src emacs-lisp
(org-entry-get (point) "var" t)
#+end_src
** resetting a parent property
:PROPERTIES:
:var+: nil
:END:
The result should be "nil"
#+begin_src emacs-lisp
(org-entry-get (point) "var" t t)
#+end_src
*** setting a new property value
:PROPERTIES:
:var+: bat=4
:END:
The result should be "bat=4"
#+begin_src emacs-lisp
(org-entry-get (point) "var" t)
#+end_src
|
debug log:
solving f2c68e2 ...
found f2c68e2 in https://yhetil.org/emacs/1356500304-4525-2-git-send-email-bill@wishon.org/
found 477e25f in https://yhetil.org/emacs/1356500304-4525-1-git-send-email-bill@wishon.org/
found de5b539 in https://git.savannah.gnu.org/cgit/emacs.git
preparing index
index prepared:
100644 de5b53974bfd28e05f7d6a37b2d04f32962f3db5 testing/examples/property-inheritance.org
applying [1/2] https://yhetil.org/emacs/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
applying [2/2] https://yhetil.org/emacs/1356500304-4525-2-git-send-email-bill@wishon.org/
diff --git a/testing/examples/property-inheritance.org b/testing/examples/property-inheritance.org
index 477e25f..f2c68e2 100644
Checking patch testing/examples/property-inheritance.org...
Applied patch testing/examples/property-inheritance.org cleanly.
Checking patch testing/examples/property-inheritance.org...
Applied patch testing/examples/property-inheritance.org cleanly.
index at:
100644 f2c68e2bde53d8aef38b55bebfa54812e60b68c5 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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.