Kazu's Log

Jun 28, 2016

Emacs 25 on OS X is much stable than Emacs 24

In my OS X (or macOS?), Emacs has been unstable these days. Particularly minimizing Emacs somehow kills the process.

In the Reddit thread Lots of OS X crashes?, multiple people mentioned that the newer version is better. So I tried that and it is so far so good. At least I can minimize Emacs without any issues.

First I needed to uninstall Emacs.

% brew install emacs --devel --with-cocoa
Warning: emacs-24.5 already installed
% brew uninstall emacs
Uninstalling /usr/local/Cellar/emacs/24.5... (3,923 files, 110.2M)
%

Then I installed Emacs with --devel flag.

% brew install emacs --devel --with-cocoa
==> Downloading http://alpha.gnu.org/gnu/emacs/pretest/emacs-25.0.95.tar.xz
######################################################################## 100.0%
==> ./autogen.sh
==> ./configure --disable-silent-rules --enable-locallisppath=/usr/local/share/e
==> make
==> make install
==> Caveats
A command line wrapper for the cocoa app was installed to:
  /usr/local/Cellar/emacs/25.0.95/bin/emacs
 
To have launchd start emacs now and restart at login:
  brew services start emacs
Or, if you don't want/need a background service you can just run:
  emacs
 
.app bundles were installed.
Run `brew linkapps emacs` to symlink these to /Applications.
==> Summary
🍺  /usr/local/Cellar/emacs/25.0.95: 4,045 files, 119.8M, built in 2 minutes 23 seconds
brew install emacs --devel --with-cocoa  143.99s user 36.41s system 124% cpu 2:24.59 total
%

And then brew linkapps to create /Applications/Emacs.app.

% brew linkapps emacs
Linking: /usr/local/opt/emacs/Emacs.app
Linked 1 app to /Applications
%