On Monday, June 26, 2023 at 1:47:07 PM UTC-4 Edward K. Ream wrote:
On Sun, Jun 25, 2023 at 10:22 AM Thomas Passin <[email protected]> wrote:
> Great! And if you want to do the same for a UNL in another outline, you
can add these two lines (at least until that PR gets merged; I don't know
about after that):
# Add this after the "content =" line.
if c2 is not c0:
g.app.selectLeoWindow(c0)
Oh ye of little faith. In the PR the call to g.app.selectLeoWindow appears
in both g.findUNL and g.findGNX. So these calls have already been done when
g.handleUnl returns.
That's not the point. This bit of code returns the focus to the *original*
node even if the findUNL() call, for a UNL pointing into another outline,
had changed the focus to that other outline. The idea is to retrieve the
body of the node addressed by the unl without changing the focus.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/leo-editor/43ceabdc-61a2-4539-8bd9-be7dc93c8611n%40googlegroups.com.