An error appeared when a header has no text but it has properties. For instance:
```org
* A header
:PROPERTIES:
:ID: 7159694c-0e06-41d6-a2fc-1ae3f9ba0321
:END:
* Another header
```
"A header" is processed by `org-gemini-section` and throws error when
exporting: `contents` parameter is nil instead of empty string. "Another
header" is considered a headline and not a section.
Make uses the first target defined if one is not specified on the
command line. This makes the `compile' target the default one, which
seems more sensible than the `update'.
Signed-off-by: Justin Abrahms <justin@abrah.ms>
string-replace is new of emacs 28, while replace-regexp-in-string is
quite old. This avoids the backport, and should be a tad faster since
it don't have to waste cycle to regexp-quote "\n".
Tested on emacs 27.2
Signed-off-by: Justin Abrahms <justin@abrah.ms>
This makes possible to use a different emacs executable to run the
tests.
$ make
# use system' emacs
...
$ make EMACS=/path/to/emacs
# use the provided emacs executable
...
Signed-off-by: Justin Abrahms <justin@abrah.ms>
Drop the checkdoc-batch library in favour of a simpler approach:
run checkdoc on all *.el files in the repo, bailing out on the first
encountered error.
While here, don't call checkdoc on eval.
Signed-off-by: Justin Abrahms <justin@abrah.ms>
ox-gemini inherits the behavior of ox-ascii of folding the
paragraphs. It's wrong because in gemini paragraphs are a single
long line. This is an attempt at fixing it.
Signed-off-by: Justin Abrahms <justin@abrah.ms>