From: NeilBrown Date: Sun, 10 Sep 2023 09:41:04 +0000 (+1000) Subject: Send warning message when nested notification is prohibited. X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=5b884b86aa16f8cc446c468028398c0839b0d7a2;p=edlib.git Send warning message when nested notification is prohibited. As well a logging details - broadcast a message so nested notification get noticed. Signed-off-by: NeilBrown --- diff --git a/DOC/TODO.md b/DOC/TODO.md index 7525cca1..689e924d 100644 --- a/DOC/TODO.md +++ b/DOC/TODO.md @@ -9,6 +9,8 @@ the file. ### Triage +- [ ] adding new lines at end of doc in x11 leaves phantom underline + cursors. - [ ] 20230908090027.6AA0DC05B9@prodcs.lwn.net has a wrapped tag which isn't parsed well. - [X] find-document - if default doc has <>, displays wrongly. @@ -135,7 +137,7 @@ Core features care if the callback succeeded? - [ ] Change Efallthough to -1 so I can return '0' meaningfully. Efalse probably becomes 0. -- [ ] send warning message when recursive notification is prohibited. +- [X] send warning message when recursive notification is prohibited. editor:notify:Message:broadcast - [ ] Make DEF_CB really different from DEF_CMD and ensure it is used properly. - [X] is DocLeaf really a good idea? Maybe panes should have 'leafward' diff --git a/core-pane.c b/core-pane.c index 4594c7ed..f8ff319a 100644 --- a/core-pane.c +++ b/core-pane.c @@ -524,6 +524,9 @@ int do_pane_notify(struct pane *home, const char *notification safe, LOG("Nested notification from %s to %s for %s not permitted.", home->name, n->notifiee->name, notification); LOG_BT(); + call("editor:notify:Message:broadcast", + home, 0, NULL, + "WARNING nested notification blocked - see log"); return Efail; } restart: