]> git.neil.brown.name Git - edlib.git/commit
doc: add default doc:get-attr which returns pane attribute.
authorNeilBrown <neil@brown.name>
Thu, 25 May 2023 23:47:35 +0000 (09:47 +1000)
committerNeilBrown <neil@brown.name>
Fri, 26 May 2023 22:18:43 +0000 (08:18 +1000)
commitd61cc39d4e4c3a18d6f3a024d6693efe624cdfa3
tree700864b5495e576226b0397bf2b309d3d070085a
parent9eab37e153777ec28bdee1e5574bec1759a99438
doc: add default doc:get-attr which returns pane attribute.

Sometimes we want an attribute which can vary with location in the document,
but offen i satisfied with a document-wide value.
fill:start-re is a good example.

Provide a default doc:get-attr, which will be called if no attr can be
found at the specific location.  This returns a pane attribute is
possible.

Also ensure all current doc:get-attr function fall through if they
cannot find a value.

Signed-off-by: NeilBrown <neil@brown.name>
DOC/TODO.md
core-doc.c
doc-text.c
python/module-notmuch.py