diff --git a/notes/affiliated_keyword_investigation/analysis.org b/notes/affiliated_keyword_investigation/analysis.org new file mode 100644 index 00000000..32cc1c73 --- /dev/null +++ b/notes/affiliated_keyword_investigation/analysis.org @@ -0,0 +1,42 @@ +* Elisp Structure +| Keyword | Single | Double | Single Optval | Double Optval | +|---------+---------------+---------------+---------------+---------------| +| CAPTION | objtree | objtree | objtree | objtree | +| DATA | quoted(:name) | quoted(:name) | - | - | +| HEADER | list(quoted) | list(quoted) | - | - | +| NAME | quoted(:name) | quoted(:name) | - | - | +| PLOT | quoted(:plot) | quoted(:plot) | - | - | +| RESULTS | optional pair | optional pair | optional pair | optional pair | +* types +** objtree +Outer list: 1 per keyword +next list: first entry = list of objects for value. remaining entries = optval +** list(quoted) +List of quoted strings, 1 per keyword +** quoted(NAME) +Quoted string under the NAME property (for example quoted(:name)) +** optional pair +When optval is supplied this is an alist with the field value being the real value and the 3nd value being the optval. +#+begin_src elisp + ("*f*" . "*bar*") +#+end_src + +When optval is not supplied this is a list containing a single string of the last occurrence of this keyword. +#+begin_src elisp + ("*c*") +#+end_src +* Default settings +#+begin_src text + org-element-dual-keywords ("CAPTION" "RESULTS") + org-element-parsed-keywords ("CAPTION") + org-element-multiple-keywords ("CAPTION" "HEADER") + org-babel-results-keyword "RESULTS" +#+end_src +* Analysis +We don't have an example of a parsed non-dual keyword + +Looks like multiple triggers list 1 per keyword + +dual triggers support for optval + +parsed triggers objects diff --git a/notes/affiliated_keyword_investigation/run_test.bash b/notes/affiliated_keyword_investigation/run_test.bash index e040c21e..641dc707 100755 --- a/notes/affiliated_keyword_investigation/run_test.bash +++ b/notes/affiliated_keyword_investigation/run_test.bash @@ -6,18 +6,26 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" file_path="${DIR}/test_document.org" -INIT_SCRIPT=$(cat < "${DIR}/${TARGET_VARIABLE}" +done + +# exec docker run --init --rm -i -t --mount type=tmpfs,destination=/tmp -v "/:/input:ro" -w /input --entrypoint "" organic-test emacs -q --no-site-file --no-splash --eval "$INIT_SCRIPT" -exec docker run --init --rm -i --mount type=tmpfs,destination=/tmp -v "/:/input:ro" -w /input --entrypoint "" organic-test emacs -q --no-site-file --no-splash --batch --eval "$INIT_SCRIPT" +# org-element-dual-keywords ("CAPTION" "RESULTS") +# org-element-parsed-keywords ("CAPTION") +# org-element-multiple-keywords ("CAPTION" "HEADER") +# org-babel-results-keyword "RESULTS"