[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: delete-frame raises other frames
From: |
Matt McClure |
Subject: |
Re: delete-frame raises other frames |
Date: |
Sat, 22 Oct 2016 16:38:05 +0000 |
On Tue, Oct 18, 2016 at 10:50 AM Eli Zaretskii <eliz@gnu.org> wrote:
> Well, this doesn't happen to me, and from lack of other "me too"
> responses, I'm guessing that this is either specific to OS X or even
> to your system's configuration.
>
Thanks, Eli.
My guess is that it's specific to OS X.
I looked at the Emacs source code a bit. I found the following in
delete_frame[1]:
```
#ifdef NS_IMPL_COCOA
else
/* Under NS, there is no system mechanism for choosing a new
window to get focus -- it is left to application code.
So the portion of THIS application interfacing with NS
needs to know about it. We call Fraise_frame, but the
purpose is really to transfer focus. */
Fraise_frame (frame1);
#endif
```
The following might also be relevant:
- Apple's window concepts documentation[2]
- Uses of NSApp[3], e.g.,
- activateIgnoringOtherApps[4]
- makeKeyAndOrderFront[5]
[1]:
https://github.com/emacs-mirror/emacs/blob/d4a32c4d5955ac04c5017a43042d873e42b3ebec/src/frame.c#L1639
[2]:
https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/WinPanel/Concepts/ChangingMainKeyWindow.html
[3]: https://github.com/emacs-mirror/emacs/search?utf8=%E2%9C%93&q=nsapp
[4]:
https://github.com/emacs-mirror/emacs/search?utf8=%E2%9C%93&q=activateIgnoringOtherApps&type=Code
[5]:
https://github.com/emacs-mirror/emacs/search?utf8=%E2%9C%93&q=makeKeyAndOrderFront&type=Code
Re: delete-frame raises other frames, Yuri Khan, 2016/10/15