Just to provide a little more information for other people that experience the same problem.
I've taken the following steps:
Did M-x toggle-frame-maximized once.
results:
- The window became maximized
- The gap at the bottom was gone
- The gap at the right was gone
- Resizing the window returned the right gap
- Restarting Emacs made the gaps return
put (setq frame-resize-pixelwise t) at the top of my init.el.
results:
- No more visible gap.
- Restarting Emacs keeps no visible gap.
There are different versions of Emacs available through homebrew. Both d12frosted/emacs-plus and railwaycat/emacsmacport require you to manually tap these brews.
Formulae
- emacs-plus
- emacs
- emacs-clang-complete-async
- emacs-dracula
- emacs-mac
Casks
- emacs
- emacs-nightly
- emacs-pretest
- emacsclient
- eqmac
- emacs-mac
- emacs-mac-spacemacs-icon
If you install a brew formula, it won't be able to display a GUI. Just don't use this. Make sure you check your brew list, because emacs often gets added as a formula as a dependency!
Make sure it is completely uninstalled from your system, and clean up the cache and symlinks if brew didn't do so already.
Of all the cask versions, only emacs --cask, emacs-nightly and emacs-pretest suffer from the gap problem.
I still use emacs --cask though. The problem is easily solved by adding 1 line to my init.el and I no longer get any bugs with double space ligatures
emacs --cask is the only version that can correctly display glyphs like \ f ( = (
correctly on my system.