Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On macOS, the new lower-frame call causes Emacs to hide #43

Open
aaronjensen opened this issue May 20, 2020 · 10 comments
Open

On macOS, the new lower-frame call causes Emacs to hide #43

aaronjensen opened this issue May 20, 2020 · 10 comments

Comments

@aaronjensen
Copy link
Contributor

This commit: 4e8f205

Causes emacs to hide when the quickhelp is shown on macOS.

GNU Emacs 27.0.91 (build 2, x86_64-apple-darwin19.4.0, NS appkit-1894.40 Version 10.15.4 (Build 19E287)) of 2020-05-02

@tumashu
Copy link
Owner

tumashu commented May 20, 2020

why, macos emacs's bug?

@aaronjensen
Copy link
Contributor Author

It's not actually the raise-frame, it's the lower-frame. My guess is that on macOS it lowers the entire application rather than just the one window (emacs frame).

@aaronjensen aaronjensen changed the title On macOS, the new raise-frame call causes Emacs to hide On macOS, the new lower-frame call causes Emacs to hide May 20, 2020
@aaronjensen
Copy link
Contributor Author

It's a child frame issue:

M-: (make-frame `((parent-frame . ,(window-frame))))
;; In new frame
M-: (lower-frame)

That causes it to lower both the parent and the child.

@aaronjensen
Copy link
Contributor Author

This reproduces on emacs 28 master, so I'll report.

@aaronjensen
Copy link
Contributor Author

Reported upstream: bug#41422 https://debbugs.gnu.org/cgi/bugreport.cgi?bug=41422

@tumashu
Copy link
Owner

tumashu commented May 21, 2020

Suggest send a mail in emacs-devel.

@sergeyklay
Copy link

Once I realized that because pitkali/pos-tip#11 / company-mode/company-quickhelp#42 make tooltips too ugly on
macOS. So, I was forced to find alternatives. Now I see even worse result using this project. Sadly, default company doc behaviour is the only viable workaround for me now.

I'll leave a link here to help anyone looking for a discussion on this issue: https://lists.gnu.org/archive/html/emacs-devel/2020-05/msg03253.html

@aaronjensen
Copy link
Contributor Author

@sergeyklay I simply remove the lower-frame call in my local copy of company-posframe. I'm not even sure why it's there as everything seems to work without it. Perhaps a patch should be submitted with a var to disable the lower frame call that defaults to true on macOS?

@tumashu
Copy link
Owner

tumashu commented Dec 14, 2020

@aaronjensen maybe this is a good temp solution :-), I will disable lower-frame in macos

@aaronjensen
Copy link
Contributor Author

@tumashu thank you for the fix.

It looks like it was fixed upstream as well, so it will be fixed in Emacs 28:

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=41422

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants