diff --git a/org_mode_samples/Makefile b/org_mode_samples/Makefile new file mode 100644 index 0000000..abc7842 --- /dev/null +++ b/org_mode_samples/Makefile @@ -0,0 +1,25 @@ +SHELL := bash +.ONESHELL: +.SHELLFLAGS := -eu -o pipefail -c +.DELETE_ON_ERROR: +MAKEFLAGS += --warn-undefined-variables +MAKEFLAGS += --no-builtin-rules +SUBDIRS := $(wildcard */.) +OUT=out + +ifeq ($(origin .RECIPEPREFIX), undefined) + $(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later) +endif +.RECIPEPREFIX = > + +.PHONY: all +all: +> for dir in $(SUBDIRS); do \ +> make -C $$dir $@; \ +> done + +.PHONY: clean +clean: +> for dir in $(SUBDIRS); do \ +> make -C $$dir $@; \ +> done diff --git a/org_mode_samples/exit_matcher_investigation/Makefile b/org_mode_samples/exit_matcher_investigation/Makefile new file mode 100644 index 0000000..c47a86c --- /dev/null +++ b/org_mode_samples/exit_matcher_investigation/Makefile @@ -0,0 +1,23 @@ +SHELL := bash +.ONESHELL: +.SHELLFLAGS := -eu -o pipefail -c +.DELETE_ON_ERROR: +MAKEFLAGS += --warn-undefined-variables +MAKEFLAGS += --no-builtin-rules +SRCFILES := $(wildcard *.org) +OUTFILES := $(patsubst %.org,%.tree.txt,$(SRCFILES)) + +ifeq ($(origin .RECIPEPREFIX), undefined) + $(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later) +endif +.RECIPEPREFIX = > + +.PHONY: all +all: $(OUTFILES) + +.PHONY: clean +clean: +> rm -rf $(OUTFILES) + +%.tree.txt: %.org ../common.el ../dump_org_ast.bash +> ../dump_org_ast.bash $< $@ diff --git a/org_mode_samples/exit_matcher_investigation/README.org b/org_mode_samples/exit_matcher_investigation/README.org new file mode 100644 index 0000000..4380f41 --- /dev/null +++ b/org_mode_samples/exit_matcher_investigation/README.org @@ -0,0 +1 @@ +This folder is an investigation into whether or not my exit matchers should operate from the top down or bottom up. diff --git a/org_mode_samples/exit_matcher_investigation/list_paragraph_nesting.README.txt b/org_mode_samples/exit_matcher_investigation/list_paragraph_nesting.README.txt new file mode 100644 index 0000000..a002abb --- /dev/null +++ b/org_mode_samples/exit_matcher_investigation/list_paragraph_nesting.README.txt @@ -0,0 +1,3 @@ +Looks like 2 blank lines always exits the top-level plain list. + +Plain lists do not seem to go inside paragraphs but rather exist beside them. diff --git a/org_mode_samples/exit_matcher_investigation/list_paragraph_nesting.org b/org_mode_samples/exit_matcher_investigation/list_paragraph_nesting.org new file mode 100644 index 0000000..843a1e0 --- /dev/null +++ b/org_mode_samples/exit_matcher_investigation/list_paragraph_nesting.org @@ -0,0 +1,10 @@ +1. foo + + bar + + 1. baz + + lorem + + +ipsum diff --git a/org_mode_samples/exit_matcher_investigation/table_list.README.txt b/org_mode_samples/exit_matcher_investigation/table_list.README.txt new file mode 100644 index 0000000..0b2a8cc --- /dev/null +++ b/org_mode_samples/exit_matcher_investigation/table_list.README.txt @@ -0,0 +1 @@ +Looks like table cells cannot contain lists but can contain bolds diff --git a/org_mode_samples/exit_matcher_investigation/table_list.org b/org_mode_samples/exit_matcher_investigation/table_list.org new file mode 100644 index 0000000..3b74a5d --- /dev/null +++ b/org_mode_samples/exit_matcher_investigation/table_list.org @@ -0,0 +1,5 @@ +ip *su* m + +| foo | bar | +|----------+-----| +| 1. lo *re* m | | diff --git a/org_mode_samples/plain_lists/Makefile b/org_mode_samples/plain_lists/Makefile index 61a8d82..c47a86c 100644 --- a/org_mode_samples/plain_lists/Makefile +++ b/org_mode_samples/plain_lists/Makefile @@ -4,7 +4,8 @@ SHELL := bash .DELETE_ON_ERROR: MAKEFLAGS += --warn-undefined-variables MAKEFLAGS += --no-builtin-rules -OUT=out +SRCFILES := $(wildcard *.org) +OUTFILES := $(patsubst %.org,%.tree.txt,$(SRCFILES)) ifeq ($(origin .RECIPEPREFIX), undefined) $(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later) @@ -12,11 +13,11 @@ endif .RECIPEPREFIX = > .PHONY: all -all: paragraphs.tree.txt nested_paragraphs.tree.txt +all: $(OUTFILES) .PHONY: clean clean: -> rm -rf *.tree.txt +> rm -rf $(OUTFILES) %.tree.txt: %.org ../common.el ../dump_org_ast.bash > ../dump_org_ast.bash $< $@