Pavel Sanda <sa...@lyx.org> writes: > * There has been some work on dispatch results, unfinished now as bugs > reveal. (bug #6417).
As far as #6417 is concerned, we could keep a stack of ongoing dispatch actions in this way: void dispatch(...) { // pushes a DispatchResult on a stack at creation, pops at destruction DispatchContext dc; foo->dispatch(...) } at any place theResult() returns the current active DispatchResult object. Normally, nested dispatch will work correctly. This would mean that we'd have to remove all explicit passing of DispatchResult. Does that make sense, or do we want to reduce to a minimum these `global' variables? JMarc