On Monday, June 26, 2023 at 10:02:40 AM UTC-5 Edward K. Ream wrote: > I'll add p.get_legacy_UNL and p.get_short_legacy_UNL. > I'll add expanded searching to g.findUNL, just as in g.findGNX.
Both done. *Notes* 1. *Warning*: Plugins that call g.findUNL directly must *not *assume that the returned position is in the same outline! Do something like this: p = g.findUNL(unlList, c) # Do not assume that p is in c. if p: c2 = p.v.context c2.redraw(p) 2. g.handleUnl contains code similar to that shown above, so the warning applies only to writers of plugins. 3. g.findUNL no longer does *any* gui-related operations. It was never a clever idea. 4. No, I won't add a kwarg to g.findUNL that suppress other-outline searches. EKR -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/3e3003c0-4992-41bf-9bc2-d9acedd1aeafn%40googlegroups.com.