> That's orthogonal. (And it seems to issue the warning in an unrelated > case, handled by the 'else' clause?) Which case? > We should first decide how to > support the context menus with this stuff, and then we can talk how to > find code out there which makes similar assumptions. (But if there is > such code out there, how was it working till now?) Maybe I have not been making myself clear. What I would apply is the attached (modulo any errors it contains): No change in behavior, just a warning in the doc-string and suspicious calls. martin