homebrew-emacsmacport
homebrew-emacsmacport copied to clipboard
`emacsclient -e '(make-frame)` does not raise Emacs.app when hidden
Start vanilla Emacs:
/usr/local/opt/emacs-mac/Emacs.app/Contents/MacOS/Emacs -q
Start server (M-x server-start RET
), hide Emacs.app, and run
emacsclient -e '(make-frame)'
from the terminal. Nothing will happen until you Cmd-TAB your way back to Emacs.app, at which point you will witness the new frame being created.
From brew info emacs-mac
I get:
railwaycat/emacsmacport/emacs-mac: stable emacs-26.3-z-mac-7.9, HEAD
...
I'm running macOS 10.14.6.
I've ran the same commands using the emacs-plus
build and the behavior is different: Emacs.app 'unhides' and you see the new frame being created 'in the background', as it were.
This isn't a big issue, I suppose, but it prevents me from using yequake. See this issue. If anyone knows of a way around this, I'd be thankful for some suggestions.
I can verify that this bug still exists. The workaround is to run this:
emacsclient -e '(select-frame-set-input-focus (make-frame))'
ETA: this "bug" also exists using builds from http://emacsformacosx.com so this might be expected behavior.
I can verify that this bug still exists. The workaround is to run this:
emacsclient -e '(select-frame-set-input-focus (make-frame))'
ETA: this "bug" also exists using builds from http://emacsformacosx.com so this might be expected behavior.
This doesn't work for me if I am triggering a new frame from within emacs when it is not in focus.
Any updates on that?