]> git.neil.brown.name Git - edlib.git/commit
mark: separate mark:moving from mark:arrived
authorNeilBrown <neil@brown.name>
Sat, 27 May 2023 07:46:18 +0000 (17:46 +1000)
committerNeilBrown <neil@brown.name>
Sun, 28 May 2023 23:25:52 +0000 (09:25 +1000)
commit6d4969805fdad40174b6d0fb62a0149478ba21da
tree2c0afa9395b259c269d66cfacd357cb4a17954fe
parent274383f72f3995cb4dbc331885f1af46f8b279cf
mark: separate mark:moving from mark:arrived

The mark:moving notification was originally for when a specific mark
moved at all.
For b64 I extended it to also notify when *any* mark moved to a specific
mark.
This can cause illegal nested notification if a mark:moving handler
tries to move a (non-specific) mark.  That is bad.

So separate the two: Add mark:arrived for when a mark is moved to a
flagged marks.

Also make sure all new marks aren't flagged.  I invert the sense of the
flag and call it "MARK_FLAG_WATCHED".  This will be clear by default,
and only set once the (renamed) mark_watch() is called.

Signed-off-by: NeilBrown <neil@brown.name>
DOC/Developer/03-documents.md
DOC/TODO.md
core-doc.c
core-mark.c
core.h
lang-python.c
lib-base64.c
lib-view.c
python/render-c-mode.py