evan Posted October 9, 2019 Share Posted October 9, 2019 Upgrade macOS catalina and Alfred 4, Alfred couldn't switch the window to emacs Link to comment
vitor Posted October 9, 2019 Share Posted October 9, 2019 Welcome @evan, That’s not enough information for us to debug the issue. Per your description, this seems to be related solely to macOS and not Alfred. What do you mean when you say you “couldn't switch the window to emacs”? What exactly was your setup and what were your steps? Link to comment
marcosdeseul Posted November 7, 2019 Share Posted November 7, 2019 The same thing happens to me. I have a workflow to open Emacs, it previously working well. But after upgrading to Catalina, it can open the app initially, but I cannot go back to the app while using other apps. Link to comment
patbl Posted December 8, 2019 Share Posted December 8, 2019 (edited) I have the same problem. I have a workflow that used to launch Emacs if it wasn't open, and switch focus to it if it was open: This worked on Mojave. On Catalina, the shortcut launches the app if Emacs isn't yet running. But if Emacs is running, the shortcut doesn't do anything. Edited December 8, 2019 by patbl Link to comment
Andrew Posted December 9, 2019 Share Posted December 9, 2019 Could you please test what happens if you try launching Emacs from Finder by double clicking the app? I suspect you won't get focus in this situation either (i.e. a little Emacs / Catalina bug). If so, perhaps instead of a Launch Apps / Files, you could use a Run AppleScript in Alfred with something like: tell applications "Emacs" to activate Link to comment
Toontje Posted December 9, 2019 Share Posted December 9, 2019 I have the same problem with MacVim. MacVim is installed using homebrew but there is no icon/.app in Applications. Therefor you cannot drag MacVim into the Launch Apps object. When adding it manually Alfred tries to launch a new instance of MacVim. Link to comment
patbl Posted December 9, 2019 Share Posted December 9, 2019 6 hours ago, Andrew said: Could you please test what happens if you try launching Emacs from Finder by double clicking the app? I suspect you won't get focus in this situation either (i.e. a little Emacs / Catalina bug). In fact, that works as expected. Clicking it the first time launches Emacs, and clicking it subsequent times switches focus to Emacs. 6 hours ago, Andrew said: If so, perhaps instead of a Launch Apps / Files, you could use a Run AppleScript in Alfred with something like: tell applications "Emacs" to activate Thanks, that works! That's good enough for me. Link to comment
deanishe Posted December 9, 2019 Share Posted December 9, 2019 4 hours ago, Toontje said: MacVim is installed using homebrew but there is no icon/.app in Applications. Therefor you cannot drag MacVim into the Launch Apps object. There's still a MacVim.app bundle somewhere. On my machine, it's in /usr/local/Cellar/macvim/…. And if Alfred or Spotlight can find it, you can also drag it from their results lists. Link to comment
patbl Posted December 10, 2019 Share Posted December 10, 2019 I've noticed that tell applications "Emacs" to activate is a bit laggy compared to the normal "Launch Apps / Files" action. Sometimes it takes a couple of seconds to change focus. Link to comment
Andrew Posted December 10, 2019 Share Posted December 10, 2019 16 hours ago, patbl said: In fact, that works as expected. Clicking it the first time launches Emacs, and clicking it subsequent times switches focus to Emacs. Is that in Finder (i.e. Finder window in /Applications/, or the Dock?) Link to comment
patbl Posted December 11, 2019 Share Posted December 11, 2019 19 hours ago, Andrew said: Is that in Finder (i.e. Finder window in /Applications/, or the Dock?) That's in the Dock. Link to comment
MadHun Posted December 17, 2019 Share Posted December 17, 2019 Was still was suffering from the inability to find/raise emacs from Alfred and found this solution: % cd /Applications/Emacs.app/Contents/MacOS % mv Emacs Emacs-launcher % mv Emacs-x86_64-10_14 Emacs % cd /Applications/Emacs.app/Contents/ % rm -rf _CodeSignature This worked on my install from https://emacsformacosx.com/ and according to the blog post, should also work emacs installed from brew. Thanks Chris Farber! --> https://spin.atomicobject.com/2019/12/12/fixing-emacs-macos-catalina/ Link to comment
eegorebulbous Posted April 13, 2020 Share Posted April 13, 2020 Thanks much MadHun -- that worked for me, and solved another problem with Emacs I hadn't realized yet -- permissions to read ~/Documents & ~/Downloads, e.g. Link to comment
Newareaton Posted August 24, 2020 Share Posted August 24, 2020 (edited) With emacs-plus and emacs-mac problem still exists, added every path I could into Alfred's scope, no results. Catalina 10.15.5. They only workaround that work for me is to create workflow with name "Emacs" that launches Emacs app. Edited August 24, 2020 by Newareaton Link to comment
deanishe Posted August 24, 2020 Share Posted August 24, 2020 4 hours ago, Newareaton said: With emacs-plus and emacs-mac problem still exists Did you try following the instructions @MadHun posted above? Link to comment
patbl Posted August 25, 2020 Share Posted August 25, 2020 13 hours ago, deanishe said: Did you try following the instructions @MadHun posted above? Those instructions used to work for me. But when I followed them with Emacs 27.1, Emacs refused to start. Chris Farber, the author the blog post referred to earlier, posted a workaround in a comment. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now