I am using Emacs (25.2.1) on macOS High Sierra 10.13.2, and when trying to open a simple .txt file using Emacs as the editor, I get the error "The application Emacs is not open anymore".

Details: This error happens when Emacs is already open, and I try to open a file with it via double-clicking in Finder. Somehow, it does not happen when Emacs is closed and I open a file with it via double-clicking in Finder. After the first file is open, double-clicking does not work anymore (I get the error mentioned above), and the only way to open a file with Emacs is via C-x C-f.

Question: How can I fix the problem so that I can double-click in finder to have a file be opened with Emacs?

  • 1
    Do you see the same thing when you start Emacs using emacs -Q (no init file)? If not, bisect your init file to find the culprit. – Drew Jan 30 '18 at 1:50
  • 1
    I started Emacs using /Applications/Emacs.app/Contents/MacOS/Emacs -Q & on terminal (for some reason just emacs -Q or emacs -Q & would not open the GUI), and then loading the text files worked. I guess it is time to bisect. – Guilherme Salomé Jan 31 '18 at 1:08
  • I also have this issue, but on Mojave. – Glyph Aug 1 '19 at 0:46
  • The issue mysteriously went away for me, then came back; no idea why. It happens now on Catalina. – Glyph Apr 30 at 20:58
  • @Drew It's definitely not an issue with init files; it seems to have something to do the launchservices database, maybe? – Glyph Apr 30 at 21:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.