Add scripts for dumping the org-mode ast to investigate how emacs parses various inputs.

This commit is contained in:
Tom Alexander
2023-03-19 14:07:23 -04:00
parent bf3464c65c
commit 4e7d7d3bcf
5 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
SHELL := bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
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: paragraphs.tree.txt
.PHONY: clean
clean:
> rm -rf *.tree.txt
%.tree.txt: %.org
> ../dump_org_ast.bash $< $@

View File

@@ -0,0 +1,3 @@
1. foo
2. bar
(message "%s" (org-element-parse-buffer))