(ns-next-frame) to cycle focus between Emacs frames. However, if I place Emacs frames in separate virtual desktops, I would like focus to cycle only among frames on the current desktop.
That is, imagine I have two virtual desktops I and II and four Emacs frames with frames A and B residing on virtual desktop I and frames C and D residing on virtual desktop II.
If frame A has focus, I would expect the first invocation of
ns-next-frame to move focus to frame B. Then, another invocation to move it back to frame A.
Instead, focus moves to frame C, then frame D, then back to A, et cetera.
I tried looking at
frame-visible-p, but it evaluates to
t for all non-iconified frames.
How can I accomplish what I want?
- macOS Sierra 10.12.6
- GNU Emacs 25.3.1