Git Product home page Git Product logo

homebrew-emacs-plus's Introduction

Banner

Emacs Plus

Emacs 30 CI Status Badge Emacs 29 CI Status Badge Emacs 28 CI Status Badge Emacs 27 CI Status Badge Emacs 26 CI Status Badge

About

Screenshot

Emacs+ is → GNU Emacs formulae for macOS → Homebrew package manager. It offers a wide range of extra functionality over regular → Emacs package. Emacs+ intent is to give the most of ‘plus’ stuff by default, leaving only controversial options as opt-in. Please refer to → Options section for more information.

$ brew tap d12frosted/emacs-plus
$ brew install emacs-plus    [options] # install the latest release (Emacs 29)
$ brew install emacs-plus@30 [options] # install Emacs 30 (master)
$ brew install emacs-plus@29 [options] # install Emacs 29
$ brew install emacs-plus@28 [options] # install Emacs 28
$ brew install emacs-plus@27 [options] # install Emacs 27
$ brew install emacs-plus@26 [options] # install Emacs 26

Feel free to open an issue or contact me via email if you face any issues, questions or feature requests. I love pull requests, so do send them. You might want to check → Development guidelines to have better understanding on how to contribute.

Table of Contents

Install

Emacs Plus contains separate formulas for different Emacs versions:

  • emacs-plus install current release version (Emacs 29);
  • emacs-plus@30 install Emacs 30, development version.
  • emacs-plus@29 install Emacs 29, current version.
  • emacs-plus@28 install Emacs 28, previous release version.
  • emacs-plus@27 install Emacs 27, previous release version;
  • emacs-plus@26 install Emacs 26, previous release version;
    $ brew tap d12frosted/emacs-plus
    $ brew install emacs-plus    [options] # install the latest release (Emacs 29)
    $ brew install emacs-plus@30 [options] # install Emacs 30
    $ brew install emacs-plus@29 [options] # install Emacs 29
    $ brew install emacs-plus@28 [options] # install Emacs 28
    $ brew install emacs-plus@27 [options] # install Emacs 27
    $ brew install emacs-plus@26 [options] # install Emacs 26
        

By default (without any addition options) this formula install Cocoa version of Emacs with support of gnutls, imagemagick (not included by default with emacs-plus@29 and emacs-plus@30), librsvg, libxml2, dynamic modules and multicolor fonts. Please see the list of available options to disable any bit of default behaviour or add even more stuff.

Installing from feature branch

Sometimes you might want to install from a feature branch. In that case you can switch the branch in the tap and install Emacs+ again.

Prerequisites are:

  • Emacs+ is tapped (e.g. brew tap d12frosted/emacs-plus).
  • jq is available (e.g. brew install jq).

Open terminal and type the following commands (don’t forget to use correct Emacs+ version, branch and options):

$ brew uninstall emacs-plus@29
$ cd $(brew tap-info --json d12frosted/emacs-plus@29 | jq -r '.[0].path') && git switch BRANCH
$ brew install emacs-plus@29 [OPTIONS]

Reinstall

If you wish to reinstall emacs-plus with you should not use reinstall command of brew (not related to this formula, it’s a general advice). Instead, you should uninstall a package and then install it with desired options.

Avoid reinstall even if you want to reinstall with the same set of options, otherwise you will likely to get compilation errors! For example, #218 and #321.

In short, brew doesn’t really support options. They break time to time (brew#4793, brew#7397, brew#7498 to show a few).

$ brew uninstall emacs-plus
$ brew install emacs-plus [options]

Emacs 30

Included

By default emacs-plus@30 uses the following features.

  • Injected PATH value from user shell (see separate section explaining this feature).
  • Cocoa version, e.g. builds Emacs.app.
  • Unconditional support for gnutls, librsvg, webp, libxml2, little-cms2 and dynamic modules.

Options

OptionDescription
--with-ctagsdon’t remove the ctags executable that Emacs provides
--with-dbusbuild with dbus support
--with-debugbuild with debug symbols and debugger friendly optimizations
--with-mailutilsbuild with mailutils support
--with-no-frame-refocusdisables frame re-focus (ie. closing one frame does not refocus another one)
--with-x11build with x11 support
--with-xwidgetsbuild → with xwidgets support
--without-cocoabuild a non-Cocoa version of Emacs (terminal only)
--with-imagemagickbuild with imagemagick support
--with-native-compbuild with native compilation aka → gccemacs
--with-pollbuild with poll() instead of select() to enable more file descriptors

No title bar

Please note, that --with-no-titlebar is no longer needed in Emacs 30, since the same can be achieved natively using this method.

Emacs 29

Included

By default emacs-plus@29 uses the following features.

  • Injected PATH value from user shell (see separate section explaining this feature).
  • Cocoa version, e.g. builds Emacs.app.
  • Unconditional support for gnutls, librsvg, libxml2, little-cms2 and dynamic modules.

Options

OptionDescription
--with-ctagsdon’t remove the ctags executable that Emacs provides
--with-dbusbuild with dbus support
--with-debugbuild with debug symbols and debugger friendly optimizations
--with-mailutilsbuild with mailutils support
--with-no-frame-refocusdisables frame re-focus (ie. closing one frame does not refocus another one)
--with-x11build with x11 support
--with-xwidgetsbuild → with xwidgets support
--without-cocoabuild a non-Cocoa version of Emacs (terminal only)
--with-imagemagickbuild with imagemagick support
--with-native-compbuild with native compilation aka → gccemacs
--with-pollbuild with poll() instead of select() to enable more file descriptors

No title bar

Please note, that --with-no-titlebar is no longer needed in Emacs 29, since the same can be achieved natively using this method.

Emacs 28

Included

By default emacs-plus@28 uses the following features.

  • Injected PATH value from user shell (see separate section explaining this feature).
  • Cocoa version, e.g. builds Emacs.app.
  • Unconditional support for gnutls, librsvg, libxml2, little-cms2 and dynamic modules.

Options

OptionDescription
--with-ctagsdon’t remove the ctags executable that Emacs provides
--with-dbusbuild with dbus support
--with-debugbuild with debug symbols and debugger friendly optimizations
--with-mailutilsbuild with mailutils support
--with-no-frame-refocusdisables frame re-focus (ie. closing one frame does not refocus another one)
--with-no-titlebarbuild → without titlebar
--with-no-titlebar-and-round-cornersbuild → without titlebar, but round corners instead of square
--with-x11build with x11 support
--with-xwidgetsbuild → with xwidgets support
--without-cocoabuild a non-Cocoa version of Emacs (terminal only)
--with-imagemagickbuild with imagemagick support
--HEADbuild from emacs-28 branch
--with-native-compbuild with native compilation aka → gccemacs

Emacs 27

Included

By default emacs-plus@27 uses the following features.

  • Cocoa version, e.g. builds Emacs.app.
  • Unconditional support for gnutls, librsvg, libxml2, little-cms2 and dynamic modules.

Options

OptionDescription
--with-ctagsdon’t remove the ctags executable that Emacs provides
--with-dbusbuild with dbus support
--with-debugbuild with debug symbols and debugger friendly optimizations
--with-mailutilsbuild with mailutils support
--with-no-frame-refocusdisables frame re-focus (ie. closing one frame does not refocus another one)
--with-no-titlebarbuild → without titlebar
--with-x11build with x11 support
--with-xwidgetsbuild → with xwidgets support
--without-cocoabuild a non-Cocoa version of Emacs (terminal only)
--without-imagemagickbuild without imagemagick support
--HEADbuild from emacs-27 branch

Emacs 26

Emacs 26 comes without any available options due to → #195.

Features explained

Injected PATH

Ever find that a command works in your shell, but not in Emacs?

(c) @purcell

In macOS applications are started in the login environment, meaning that all user defined environment variables are not available in application process. In the most cases it’s not a big deal, but in Emacs it becomes a source of troubles as we want to use binaries from the non-standard locations (for example, those installed via package managers).

There is a wonderful solution to overcome this problem, purcell/exec-path-from-shell. As with any package that is not preinstalled with Emacs, you need to discover it first, and then install it. And while being a well known package and popular package (top 100 on MELPA), not everyone install it. In addition, with native-comp feature you might need it’s functionality before any package is bootstrapped.

All that being said, during installation Emacs+ injects value of PATH into Emacs.app/Contents/Info.plist file, making this value available whenever you start Emacs.app from Finder, Docker, Spotlight, open command in Terminal or via launchd. This solves a wide range of problems for GUI users without the need to use purcell/exec-path-from-shell, but if needed you can still fall back to this wonderful package, especially if you need other variables.

In case you have a non-trivial setup relying on specific value of PATH inherited from current terminal session, it is advised to start Emacs using /opt/homebrew/bin/emacs instead of open -n -a /path/to/Emacs.app, because open messes around with PATH value even without Emacs+ injection. You can find more information in #469.

And if for some reason PATH injection doesn’t work for you, report it either in #469 or open a new issue.

No Titlebar

square cornersround corners
/images/screenshot-no-titlebar-square-corners.png/images/screenshot-no-titlebar-round-corners.png

Emacs 28 and Emacs 27

This patch is enabled with the --with-no-titlebar option for emacs-plus@27 and emacs-plus@28. It is meant for use with window tiling applications like → yabai, → chunkwm or → amethyst so that the titlebar won’t take up screen real estate.

Use --with-no-titlebar-and-round-corners option (instead of --with-no-titlebar), if you want to keep round corners (for example, to be consistent with other macOS applications).

If you see gaps between your emacs frames and other windows, try this:

(setq frame-resize-pixelwise t)

Emacs 29 and Emacs 30

In emacs-plus@29 and emacs-plus@30 this option is not available anymore as you can achieve the same result using Emacs Lisp by adding the following line in your early-init.el file:

(add-to-list 'default-frame-alist '(undecorated . t))

Add the following line instead for round corners:

(add-to-list 'default-frame-alist '(undecorated-round . t))

Xwidgets (webkit)

Browse the web in Emacs as in modern browser.

The original → Emacs xwidgets builds and works on macOS however must be used with X11 and hence not practical option on macOS. This version enables xwidgets on native macOS Cocoa via embedding a native webkit window.

More details can be seen here → Veshboo’s emacs branch.

System appearance change

This patch is enabled by default and can’t be disabled. It adds a hook, ns-system-appearance-change-functions, that is called once the system appearance is changed. Functions added to this hook will be called with one argument, a symbol that is either light or dark. This mainly allows loading a different theme to better match the system appearance.

(defun my/apply-theme (appearance)
  "Load theme, taking current system APPEARANCE into consideration."
  (mapc #'disable-theme custom-enabled-themes)
  (pcase appearance
    ('light (load-theme 'tango t))
    ('dark (load-theme 'tango-dark t))))

(add-hook 'ns-system-appearance-change-functions #'my/apply-theme)

Note that this hook is also run once when Emacs is initialized, so simply adding the above to your init.el will allow matching the system appearance upon startup. You can also determine what the current system appearance is by inspecting the value of the ns-system-appearance variable.

The hook is NOT run in TTY Emacs sessions.

gccemacs

gccemacs is a modified Emacs capable of compiling and running Emacs Lisp as native code in form of re-loadable elf files. As the name suggests this is achieved blending together Emacs and the gcc infrastructure.

→ Andrea Corallo

While gccemacs gives performance boost in many scenarios, this feature is still experimental and might require time and effort from your side for it to work! Use at our own risk :)

Please see official → gccemacs documentation for more information.

Knows issues:

  • ld: library not found for -lSystem. This only happens on older versions of gcc installed by Homebrew. Please execute $ brew reinstall gcc libgccjit to resolve this issue.
  • Errors during compilation of your init.el. Try running Emacs with -Q option and give it some time to compile everything (maybe run M-x to force compilation) - you shall see buffer *Async-native-compile-log* in the list of buffers.

Icons

OptionAuthorImageURL
--with-EmacsIcon1-icon→ Jason Milkins/icons/preview/EmacsIcon1_128.png→ Link
--with-EmacsIcon2-icon→ Jason Milkins/icons/preview/EmacsIcon2_128.png→ Link
--with-EmacsIcon3-icon→ Jason Milkins/icons/preview/EmacsIcon3_128.png→ Link
--with-EmacsIcon4-icon→ Jason Milkins/icons/preview/EmacsIcon4_128.png→ Link
--with-EmacsIcon5-icon→ Jason Milkins/icons/preview/EmacsIcon5_128.png→ Link
--with-EmacsIcon6-icon→ Jason Milkins/icons/preview/EmacsIcon6_128.png→ Link
--with-EmacsIcon7-icon→ Jason Milkins/icons/preview/EmacsIcon7_128.png→ Link
--with-EmacsIcon8-icon→ Jason Milkins/icons/preview/EmacsIcon8_128.png→ Link
--with-EmacsIcon9-icon→ Jason Milkins/icons/preview/EmacsIcon9_128.png→ Link
--with-cacodemon-icon→ Christian Westrom/icons/preview/cacodemon_128.png→ Link
--with-dragon-icon→ Will B Chang/icons/preview/dragon_128.png→ Link
--with-elrumo1-icon→ Elias/icons/preview/elrumo1_128.png→ Link
--with-elrumo2-icon→ Elias/icons/preview/elrumo2_128.png→ Link
--with-emacs-card-blue-deep-icon→ Jason Milkins/icons/preview/emacs-card-blue-deep_128.png→ Link
--with-emacs-card-british-racing-green-icon→ Jason Milkins/icons/preview/emacs-card-british-racing-green_128.png→ Link
--with-emacs-card-carmine-icon→ Jason Milkins/icons/preview/emacs-card-carmine_128.png→ Link
--with-emacs-card-green-icon→ Jason Milkins/icons/preview/emacs-card-green_128.png→ Link
--with-gnu-head-icon→ Aurélio A. Heckert/icons/preview/gnu-head_128.png→ Link
--with-memeplex-slim-icon→ memeplex/icons/preview/memeplex-slim_128.png→ Link
--with-memeplex-wide-icon→ memeplex/icons/preview/memeplex-wide_128.png→ Link
--with-modern-alecive-flatwoken-icon→ Alessandro Roncone/icons/preview/modern-alecive-flatwoken_128.png→ Link
--with-modern-asingh4242-icon→ Asingh4242/icons/preview/modern-asingh4242_128.png→ Link
--with-modern-azhilin-iconAndrew Zhilin/icons/preview/modern-azhilin_128.png→ Link
--with-modern-bananxan-icon→ BananXan/icons/preview/modern-bananxan_128.png→ Link
--with-modern-black-dragon-icon→ Osike/icons/preview/modern-black-dragon_128.png→ Link
--with-modern-black-gnu-head-icon→ Aha-Soft/icons/preview/modern-black-gnu-head_128.png→ Link
--with-modern-black-variant-icon→ BlackVariant/icons/preview/modern-black-variant_128.png→ Link
--with-modern-bokehlicia-captiva-icon→ Bokehlicia/icons/preview/modern-bokehlicia-captiva_128.png→ Link
--with-modern-cg433n-icon→ cg433n/icons/preview/modern-cg433n_128.png→ Link
--with-modern-doom-icon→ Eccentric J/icons/preview/modern-doom_128.png→ Link
--with-modern-doom3-icon→ Eccentric J/icons/preview/modern-doom3_128.png→ Link
--with-modern-iconUnknown/icons/preview/modern_128.pngUnknown
--with-modern-mzaplotnik-icon→ Matjaz Zaplotnik/icons/preview/modern-mzaplotnik_128.png→ Link
--with-modern-nuvola-icon→ David Vignoni/icons/preview/modern-nuvola_128.png→ Link
--with-modern-orange-icon→ Omar Jair Purata Funes/icons/preview/modern-orange_128.png→ Link
--with-modern-paper-icon→ Sam Hewitt/icons/preview/modern-paper_128.png→ Link
--with-modern-papirus-icon→ Papirus Development Team/icons/preview/modern-papirus_128.png→ Link
--with-modern-pen-3d-iconUnknown/icons/preview/modern-pen-3d_128.png→ Link
--with-modern-pen-black-icon→ Cayetano Santos/icons/preview/modern-pen-black_128.png→ Link
--with-modern-pen-icon→ Kentaro Ohkouchi/icons/preview/modern-pen_128.png→ Link
--with-modern-pen-lds56-icon→ lds56/icons/preview/modern-pen-lds56_128.png→ Link
--with-modern-purple-flat-icon→ Jeremiah Foster/icons/preview/modern-purple-flat_128.png→ Link
--with-modern-sexy-v1-icon→ Emacs is Sexy/icons/preview/modern-sexy-v1_128.png→ Link
--with-modern-sexy-v2-icon→ Emacs is Sexy/icons/preview/modern-sexy-v2_128.png→ Link
--with-modern-sjrmanning-icon→ sjrmannings/icons/preview/modern-sjrmanning_128.png→ Link
--with-modern-vscode-icon→ Valentin Degenne/icons/preview/modern-vscode_128.png→ Link
--with-modern-yellow-iconUnknown/icons/preview/modern-yellow_128.png→ Link
--with-nobu417-big-sur-icon→ Nobuyuki Sato/icons/preview/nobu417-big-sur_128.png→ Link
--with-retro-emacs-logo-icon→ Luis Fernandes/icons/preview/retro-emacs-logo_128.png→ Link
--with-retro-gnu-meditate-levitate-iconNevrax Design Team/icons/preview/retro-gnu-meditate-levitate_128.png→ Link
--with-retro-sink-bw-iconUnknown/icons/preview/retro-sink-bw_128.png→ Link
--with-retro-sink-icon→ Erik Mugele/icons/preview/retro-sink_128.png→ Link
--with-savchenkovaleriy-big-sur-icon→ Valeriy Savchenko/icons/preview/savchenkovaleriy-big-sur_128.png→ Link
--with-skamacs-icon→ compufox/icons/preview/skamacs_128.png→ Link
--with-spacemacs-icon→ Nasser Alshammari/icons/preview/spacemacs_128.png→ Link
--with-savchenkovaleriy-big-sur-3d-icon→ Valeriy Savchenko/icons/preview/savchenkovaleriy-big-sur-3d_128.png→ Link
--with-savchenkovaleriy-big-sur-curvy-3d-icon→ Valeriy Savchenko/icons/preview/savchenkovaleriy-big-sur-curvy-3d_128.png→ Link

Emacs configuration

Emacs is a journey. And for some of you these projects might be inspiring.

Known Issues

Please checkout → Issues page for a list of all known issues. But here are several you should be aware of.

emacs dependency in other formulas

In some cases (like when installing cask) regular emacs package will be required. In such cases you might want to install all dependencies manually (except for emacs) and then install desired package with --ignore-dependencies option.

$ brew install cask --ignore-dependencies

FAQ

How to change/pin commit emacs-plus@30 is built from

The most current development version is consistently compiled from a specific branch. At the time of this writing, for instance, emacs-plus@30 is being built from the master branch.

Ordinarily, brew will update to the latest commit in the specified branch during installation, meaning the exact commit you’re building from varies depending on the installation timing. As development versions are less stable than official releases, some users may prefer to pin a specific commit.

Usually this is done by modifying formula (i.e. by executing brew edit emacs-plus@30 and altering the url directive), but you can also set HOMEBREW_EMACS_PLUS_30_REVISION environment variable before installing emacs-plus@30:

$ HOMEBREW_EMACS_PLUS_30_REVISION=6abea4d98d1d964c68a78cb9b5321071da851654 brew install emacs-plus@30 [OPTIONS]

Screenshots

Acknowledgements

Many thanks to all → contributors, issue reporters and bottle providers (→ Sudarshan Wadkar, → Jon Hermansen).

Special thanks to patrons supporting existence of this project:

homebrew-emacs-plus's People

Contributors

aaronjensen avatar aatxe avatar alexander-akhmetov avatar bajacali avatar bbenchen avatar belak avatar benmezger avatar braham-snyder avatar d12frosted avatar d12golem avatar daviderestivo avatar dependabot[bot] avatar dustinfarris avatar goranmoomin avatar hirozy avatar jakejx avatar jidicula avatar jwintz avatar ksexton avatar licht1stein avatar longminwang avatar makohoek avatar mikeh-stripe avatar mkvoya avatar ngquerol avatar savchenkovaleriy avatar shuxiao9058 avatar theutz avatar tsuu32 avatar wildwestrom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebrew-emacs-plus's Issues

<f20> keypress registers as C-p

Hi! I map a key on my keyboard to <f20> using Karabiner-Elements, for use in Emacs. In emacs-plus, pressing <f20> moves the point up one line. Sure enough, C-h k <f20> reveals says that the keypress was C-p, bound to (previous-line). In emacs-mac, <f20> works correctly.

Thank you!

Command + Tilde does nothing (if deadkeys kb)

When using multiple frames (MacOS windows) ⌘ + tilde won't do what it is supposed to, which is changing to the next OS window (emacs frame in this case). It could be programmatically done, but I wasn't able to map this keystroke to the proper function, apparently it gets swallowed by before it can hit any lisp code. There's no message stating that the said command wasn't defined!

PS: It works correctly in emacs mac port (emacs-mac homebrew package), but I can't use Applescript to change windows sizes there, so I'm still on both boats!

Trying to install with natural bars patch

I am trying install emacs-plus after being redirected from the spacemacs guide to installing the prerequisites on OSX. https://github.com/syl20bnr/spacemacs#macos

brew install emacs-plus --HEAD --with-natural-title-bar

Lands me this output: https://pastebin.com/09MRsynS

I am rather new to managing packages with brew and also relatively new to configuring emacs, so I can't really tell where it's being hung up. For what it's worth, I used to have GNU Emacs installed through homebrew using the some options that I think d12frosted suggested in a comment (like --with-cocoa, --with-libxsrvg, etc.). I have since uninstalled it using brew uninstall emacs and it seemed to alleviate some of the conflicts except for the ones outlined above. I apologize in advance if this is mundance, but any help is much appreciated.

brew services stop doesn't work

Hi there! Thanks for the great Emacs macOS build! I noticed this earlier, but if I start the service, and then later want to restart the server, I have to kill everything by hand, because stop/restart don't seem to be working?

screen shot 2018-03-23 at 12 43 04 am

Install stuck on make

brew install emacs-plus stuck on make.

$ emacs-25.1 make
/Library/Developer/CommandLineTools/usr/bin/make -C lib all
/Library/Developer/CommandLineTools/usr/bin/make  all-am
make[2]: Nothing to be done for `all-am'.
/Library/Developer/CommandLineTools/usr/bin/make -C lib-src all
make[1]: Nothing to be done for `all'.
/Library/Developer/CommandLineTools/usr/bin/make -C src VCSWITNESS='' all
make[1]: Circular bootstrap-emacs <- temacs dependency dropped.
/Library/Developer/CommandLineTools/usr/bin/make -C ../admin/unidata all EMACS="../../src/bootstrap-emacs"
for f in `sed -n 's/^;; FILE: //p' < ../../lisp/international/charprop.el`; do \
	  [ -f ../../lisp/international/$f ] || exec /Library/Developer/CommandLineTools/usr/bin/make PHONY_EXTRAS=../../lisp/international/charprop.el ../../lisp/international/charprop.el; \
	done
/Library/Developer/CommandLineTools/usr/bin/make -C ../admin/charsets all
make[2]: Nothing to be done for `all'.
/Library/Developer/CommandLineTools/usr/bin/make -C ../admin/unidata charscript.el
make[2]: Nothing to be done for `charscript.el'.
/Library/Developer/CommandLineTools/usr/bin/make -C ../admin/charsets cp51932.el
make[2]: Nothing to be done for `cp51932.el'.
/Library/Developer/CommandLineTools/usr/bin/make -C ../admin/charsets eucjp-ms.el
make[2]: Nothing to be done for `eucjp-ms.el'.
/Library/Developer/CommandLineTools/usr/bin/make -C ../admin/unidata all EMACS="../../src/bootstrap-emacs"
for f in `sed -n 's/^;; FILE: //p' < ../../lisp/international/charprop.el`; do \
	  [ -f ../../lisp/international/$f ] || exec /Library/Developer/CommandLineTools/usr/bin/make PHONY_EXTRAS=../../lisp/international/charprop.el ../../lisp/international/charprop.el; \
	done
/Library/Developer/CommandLineTools/usr/bin/make -C ../leim leim-list.el EMACS="../src/bootstrap-emacs"
rm -f ../lisp/leim/leim-list.el
EMACSLOADPATH= '../src/bootstrap-emacs' -batch --no-site-file --no-site-lisp -l international/quail \
	  --eval "(update-leim-list-file (unmsys--file-name \"./../lisp/leim\"))"
...lisp/leim/leim-list.el locked by pico@Pico@Mac... (pid 31263): (s, q, p, ?)?

and ps aux|grep 31263 the process is bootstrap-emacs

Is it possible to enable xwidgets?

As your version lets one choose many new configuration options, I was wondering if it could be used to build an xwidgets-enabled emacs.

Migration to `brew cask`

Is a migration to casks planned? Brew linkapps seems to be deprecated and superceded by brew cask.

Emoji don't render

I was under the impression that the multicolor font patch should enable emoji rendering, but my emoji mostly just render as blank.

$ brew info emacs-plus
d12frosted/emacs-plus/emacs-plus: stable 25.3, HEAD
GNU Emacs text editor
https://www.gnu.org/software/emacs/
/usr/local/Cellar/emacs-plus/HEAD-dcb8658 (3,972 files, 122.6MB) *
  Built from source on 2017-10-14 at 10:51:36 with: --with-natural-title-bar
From: https://github.com/d12frosted/homebrew-emacs-plus/blob/master/Formula/emacs-plus.rb

During the build process there is a message about the multicolor patch being interrupted but claims to have successfully applied it by using a fuzzy match, I'm not sure if this is relevant at all.

I'm using the Operator Mono typeface but I tried Source Code Pro and it was the same. I've also tried emacs -Q. I've also noticed that the first time loading a file with an emoji or pasting an emoji into emacs, the editor hangs for several seconds before becoming responsive again, albeit without any emoji rendering just a blank space.

Any suggestions would be greatly appreciated.

Here are the results of M-x describe-char on a fire emoji.
image

Title bar text color broken

I am having an issue with the transparent title bar.

I am using Spacemacs, and the config for the title bar can be seen at the top of this screenshot. I have seen screenshots where it doesn't look like this. Is there a way to fix it?

screen shot 2017-11-25 at 9 45 51 am

issue compiling with --HEAD --with-natural-title-bars

Hi,

I love spacemacs but I did a clean install of macOS High Sierra and performed the following steps:

brew tap d12frosted/emacs-plus
brew install emacs-plus
brew linkapps emacs-plus
brew unlink emacs-plus
brew install emacs-plus --HEAD --with-natural-title-bars
brew linkapps emacs-plus
brew uninstall emacs-plus
brew tap d12frosted/emacs-plus
brew install emacs-plus --HEAD --with-natural-title-bars
brew linkapps emacs-plus
rm -rf .emacs.d
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
brew tap d12frosted/emacs-plus
brew install emacs-plus --HEAD --with-natural-title-bars
brew linkapps emacs-plus

And I got the following error:

$ brew install emacs-plus --HEAD --with-natural-title-bars
==> Installing emacs-plus from d12frosted/emacs-plus
==> Installing dependencies for d12frosted/emacs-plus/emacs-plus: librsvg
==> Installing d12frosted/emacs-plus/emacs-plus dependency: librsvg
==> Downloading https://homebrew.bintray.com/bottles/librsvg-2.42.2.high_sierra.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/cc/ccd7d4d609ffcacb28750b0df677d784910a3880e467e0ed10dd44b405b69983?__gda__=exp=1517820956~hmac=cf17853f2c73ffbbd9120be3ce9a743054fd4cb
######################################################################## 100.0%
==> Pouring librsvg-2.42.2.high_sierra.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink lib/pkgconfig/librsvg-2.0.pc
/usr/local/lib/pkgconfig is not writable.

You can try again using:
  brew link librsvg
==> /usr/local/opt/gdk-pixbuf/bin/gdk-pixbuf-query-loaders --update-cache
==> Summary
🍺  /usr/local/Cellar/librsvg/2.42.2: 55 files, 5MB
Warning: d12frosted/emacs-plus/emacs-plus: this formula has no --with-natural-title-bars option so it will be ignored!
==> Installing d12frosted/emacs-plus/emacs-plus --HEAD
==> Cloning https://github.com/emacs-mirror/emacs.git
Updating /Users/nskalis/Library/Caches/Homebrew/emacs-plus--git
==> Checking out branch master
==> Downloading https://gist.githubusercontent.com/aatxe/260261daf70865fbf1749095de9172c5/raw/214b50c62450be1cbee9f11cecba846dd66c7d06/patch-multicolor-font.diff
Already downloaded: /Users/nskalis/Library/Caches/Homebrew/emacs-plus--patch-5af2587e986db70999d1a791fca58df027ccbabd75f45e4a2af1602c75511a8c.diff
==> Patching
==> Applying patch-multicolor-font.diff
patching file src/macfont.m
Hunk #1 succeeded at 2344 (offset -29 lines).
==> ./autogen.sh
==> ./configure --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-plus/HEAD-8fbf285/share/info/emacs --prefix=/usr/local
==> make
Last 15 lines from /Users/nskalis/Library/Logs/Homebrew/emacs-plus/03.make:

In toplevel form:
gnus/deuglify.el:221:1:Error: Searching for program: Is a directory, /private/tmp/emacs-plus-20180205-1760-zfgulg/lib-src/movemail
make[2]: *** [gnus/deuglify.elc] Error 1
make[2]: *** Waiting for unfinished jobs....

In gnus-article-browse-html-parts:
gnus/gnus-art.el:2923:39:Warning: ‘string-as-unibyte’ is an obsolete function
    (as of 26.1); use ‘encode-coding-string’.

In gnus-request-article-this-buffer:
gnus/gnus-art.el:7036:22:Warning: ‘string-to-multibyte’ is an obsolete
    function (as of 26.1); use ‘decode-coding-string’.
make[1]: *** [compile-main] Error 2
make: *** [lisp] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/d12frosted/homebrew-emacs-plus/issues

Nikoss-MacBook-Air:~ nskalis$ emacs
emacs           emacs-undumped  emacsclient     
Nikoss-MacBook-Air:~ nskalis$ brew linkapps emacs-plus
Warning: Calling 'brew linkapps' is deprecated!
There is no replacement.
/usr/local/Homebrew/Library/Homebrew/cmd/linkapps.rb:18:in `linkapps'

Error: No such keg: /usr/local/Cellar/emacs-plus

Could you please advise how to resolve this issue ?

PS. the very first time I did it without --HEAD --with-natural-title-bars and worked.

404: tiff_4.0.6-1

$ brew install emacs-plus --with-cocoa --with-gnutls --with-librsvg --with-imagemagick --with-spacemacs-ico

...

==> Downloading https://mirrors.ocf.berkeley.edu/debian/pool/main/t/tiff/tiff_4.0.6-1.debian.tar.xz

curl: (22) The requested URL returned error: 404 Not Found
Trying a mirror...
==> Downloading https://mirrorservice.org/sites/ftp.debian.org/debian/pool/main/t/tiff/tiff_4.0.6-1.debian.tar.xz

curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "libtiff--patch"
Download failed: https://mirrorservice.org/sites/ftp.debian.org/debian/pool/main/t/tiff/tiff_4.0.6-1.debian.tar.xz

Debian is on patch -2, and removed the old patch. Assuming this is upstream, but reporting here to start.

Adding white title bar option for ns build

Hello, that patch #21 is awesome, but it would be nice to have back compatibility with light schemes (it has white text title when window is active, and it's not really readably)

Do you have any ideas how to fix it?

screen shot 2017-04-20 at 09 16 43

Enabling Flycheck throws error

This is repeatable across different computers with the same config.

(use-package flycheck
  :ensure t
    :diminish flycheck-mode
    :commands (flycheck-mode)
    :init
    (setq flycheck-idle-change-delay 2)
    (setq-default flycheck-emacs-lisp-load-path 'inherit)
    (setq-default flycheck-disabled-checkers '(emacs-lisp-checkdoc)))

M-x flycheck-mode

An error dialog will show up.

'Emacs quit unexpectedly.

Click Reopen to open the application again. Click Report to see more detailed information and send a report to Apple'

Install throws error "Error: undefined method `rebuild' for #<BottleSpecification:0x007f8f7d9e2c80>"

After running
brew tap d12frosted/emacs-plus

==> Tapping d12frosted/emacs-plus
Cloning into '/usr/local/Library/Taps/d12frosted/homebrew-emacs-plus'...
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 5 (delta 0), reused 3 (delta 0), pack-reused 0
Unpacking objects: 100% (5/5), done.
Checking connectivity... done.
Tapped 1 formula (28 files, 120K)

And fails on
brew install emacs-plus

Error: undefined method `rebuild' for #<BottleSpecification:0x007fad4d126c48>
Please report this bug:
    https://git.io/brew-troubleshooting
/usr/local/Library/Taps/d12frosted/homebrew-emacs-plus/Formula/emacs-plus.rb:9:in `block in <class:EmacsPlus>'

404 error downloading bottle file

$ brew tap d12frosted/emacs-plus
$ brew install emacs-plus
==> Installing emacs-plus from d12frosted/emacs-plus
==> Downloading https://homebrew.bintray.com/bottles-emacs-plus/emacs-plus-25.1.el_capitan.bottle.tar.gz

curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "emacs-plus"
Download failed: https://homebrew.bintray.com/bottles-emacs-plus/emacs-plus-25.1.el_capitan.bottle.tar.gz
Warning: Bottle installation failed: building from source.

The build continued on and Emacs starts fine. Perhaps because of this error I just got the base GNU Emacs install without the "plus" features?

V26.1 debugger hang - high CPU cycles

I'll borrow spacemacs report:

Description :octocat:

Once entering into the debugger, emacs hangs with high CPU use.

Reproduction guide 🪲

  • Start Emacs
  • Enable dugger
  • cause some error

Observed behaviour: 👀 💔
hang

Expected behaviour: ❤️ 😄
don't hang. have the backtrace.

System Info 💻

  • OS: darwin
  • Emacs: 26.0.91
  • Spacemacs: 0.300.0
  • Spacemacs branch: develop (rev. d4017b1ca)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
((auto-completion :variables auto-completion-enable-help-tooltip 'manual auto-completion-enable-snippets-in-popup t auto-completion-enable-sort-by-usage t)
 ansible better-defaults bibtex
 (c-c++ :variables c-c++-enable-clang-support t)
 chrome
 (clojure :variables clojure-enable-fancify-symbols t)
 command-log common-lisp coq cscope csv dash deft docker emacs-lisp erc
 (ess :variables ess-use-auto-complete t ess-use-eldoc t ess-ask-about-transfile nil)
 fasd finance git github go gpu
 (haskell :variables haskell-completion-backend 'intero)
 helm html ibuffer imenu-list ipython-notebook java
 (javascript :variables)
 (latex :variables latex-enable-folding t latex-enable-auto-fill t latex-build-command "LatexMk" latex-enable-magic t)
 lua lsp
 (markdown :variables markdown-live-preview-engine 'vmd)
 nim ocaml
 (osx :variables osx-use-option-as-meta t)
 (org :variables org-enable-github-support t org-enable-reveal-js-support t org-enable-bootstrap-support t org-startup-indented t org-startup-folded t)
 pandoc php python racket ranger
 (rust :variables rust-format-on-save t)
 (scala :variables scala-auto-insert-asterisk-in-comments t scala-enable-eldoc t scala-indent:use-javadoc-style t)
 scheme search-engine
 (spell-checking :variables spell-checking-enable-by-default nil)
 sql syntax-checking
 (shell :variables shell-default-height 30 shell-default-position 'right)
 themes-megapack tmux
 (treemacs :variables treemacs-use-follow-mode t treemacs-use-filewatch-mode t)
 vagrant version-control yaml zotero)
  • System configuration features: NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES

Backtrace 🐾

No backtrace here

Broken by upgrade to imagemagick@6 till manual reinstall

Symptoms: after doing a Spacemacs upgrade, clicking on the Spacemacs icon stopped working.

Thankfully, I soon ran emacs from commandline and figured out what actually happened. I just upgraded homebrew, that upgraded Imagemagick@6, and that broke the existing bottle for emacs-plus—required file libMagickWand-6.Q16.4.dylib was removed, now they offer libMagickWand-6.Q16.5.dylib or libMagickWand-6.Q16.8.dylib.

Removing and reinstalling fixed the issue—maybe due to 541ae75?

But having to do that seems bad*—I've never had to do that after brew upgrade, so I suspect (or hope!) there's some mechanism to automate such upgrades (maybe bumping the formula version?).

Anyway, thanks for already fixing the bottle at least!

*This seems annoying especially for those who might not guess this would be a fix, including me—my best hope was that the reinstall would figure it could not use the bottle. I didn't consider a bottle upgrade possible.

$ ls '/usr/local/opt/imagemagick@6/lib/'
ImageMagick                libMagick++-6.Q16.a      libMagick++-6.Q16.la         libMagickCore-6.Q16.a      libMagickCore-6.Q16.la       libMagickWand-6.Q16.a      libMagickWand-6.Q16.la
libMagick++-6.Q16.8.dylib  libMagick++-6.Q16.dylib  libMagickCore-6.Q16.5.dylib  libMagickCore-6.Q16.dylib  libMagickWand-6.Q16.5.dylib  libMagickWand-6.Q16.dylib  pkgconfig
$ emacs
dyld: Library not loaded: /usr/local/opt/imagemagick@6/lib/libMagickWand-6.Q16.4.dylib
  Referenced from: /usr/local/Cellar/emacs-plus/25.2/Emacs.app/Contents/MacOS/Emacs
  Reason: image not found
Trace/BPT trap: 5

Can't install due to some makeinfo problems

Sorry for dumping entire log of the command, I thought verbose log would be helpful.
note the lines:

configure: error: You do not seem to have makeinfo >= 4.13, and your
source tree does not seem to have pre-built manuals in the 'info' directory.
Either install a suitable version of makeinfo, or re-run configure
with the '--without-makeinfo' option to build without the manuals. 

I've tried brew install texinfo and then brew ln texinfo --force and now makeinfo --version shows texi2any (GNU texinfo) 6.3, but installing emacs-plus still fails

@d12frosted Can you give me and insight of what's missing on my machine (OS X El Capitan)? Until recently everything worked fine. Thanks!

brew reinstall emacs-plus --HEAD --verbose

rm /usr/local/bin/ebrowse
rm /usr/local/bin/emacs
rm /usr/local/bin/emacs-26.0.50
rm /usr/local/bin/emacsclient
rm /usr/local/bin/etags
rm /usr/local/lib/systemd
rm /usr/local/share/appdata
rm /usr/local/share/applications/emacs.desktop
rm /usr/local/share/emacs/26.0.50
rm /usr/local/share/emacs/site-lisp/subdirs.el
rm /usr/local/share/icons/hicolor/128x128/apps/emacs.png
rm /usr/local/share/icons/hicolor/16x16/apps/emacs.png
rm /usr/local/share/icons/hicolor/24x24/apps/emacs.png
rm /usr/local/share/icons/hicolor/32x32/apps/emacs.png
rm /usr/local/share/icons/hicolor/48x48/apps/emacs.png
rm /usr/local/share/icons/hicolor/scalable/apps/emacs.svg
rm /usr/local/share/icons/hicolor/scalable/mimetypes/emacs-document.svg
rm /usr/local/share/icons/hicolor/scalable/mimetypes/emacs-document23.svg
rm /usr/local/share/info/emacs
rm /usr/local/share/man/man1/ebrowse.1.gz
rm /usr/local/share/man/man1/emacs.1.gz
rm /usr/local/share/man/man1/emacsclient.1.gz
rm /usr/local/share/man/man1/etags.1.gz
rmdir /usr/local/share/icons/hicolor/scalable/mimetypes
rmdir /usr/local/share/icons/hicolor/scalable/apps
rmdir /usr/local/share/icons/hicolor/scalable
rmdir /usr/local/share/icons/hicolor/48x48/apps
rmdir /usr/local/share/icons/hicolor/48x48
rmdir /usr/local/share/icons/hicolor/32x32/apps
rmdir /usr/local/share/icons/hicolor/32x32
rmdir /usr/local/share/icons/hicolor/24x24/apps
rmdir /usr/local/share/icons/hicolor/24x24
rmdir /usr/local/share/icons/hicolor/16x16/apps
rmdir /usr/local/share/icons/hicolor/16x16
rmdir /usr/local/share/icons/hicolor/128x128/apps
rmdir /usr/local/share/icons/hicolor/128x128
rmdir /usr/local/share/icons/hicolor
rmdir /usr/local/share/icons
rmdir /usr/local/share/applications
==> Reinstalling d12frosted/emacs-plus/emacs-plus 
==> Cloning https://github.com/emacs-mirror/emacs.git
Updating /Users/ag.ibragimov/Library/Caches/Homebrew/emacs-plus--git
git config remote.origin.url https://github.com/emacs-mirror/emacs.git
git config remote.origin.fetch +refs/heads/master:refs/remotes/origin/master
git fetch origin
==> Checking out branch master
git checkout -f master --
Your branch is up-to-date with 'origin/master'.
git reset --hard origin/master
HEAD is now at eb3416016b * nt/gnulib.mk (stdint.h): Update to match lib/gnulib.mk here.
==> ./autogen.sh
Checking whether you have the necessary tools...
(Read INSTALL.REPO for more details on building Emacs)
Checking for autoconf (need at least version 2.65)...
ok
Checking for automake (need at least version 1.11)...
ok
Your system has the required tools.
Running 'autoreconf -fi -I m4' ...
configure.ac:802: installing 'build-aux/ar-lib'
configure.ac:139: installing 'build-aux/config.guess'
configure.ac:139: installing 'build-aux/config.sub'
configure.ac:136: installing 'build-aux/install-sh'
configure.ac:136: installing 'build-aux/missing'
lib/Makefile.am: installing 'build-aux/depcomp'
You can now run './autogen.sh git'.
==> ./configure --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-plus/HEAD-eb34160/share/info/emacs --prefix=/usr/local/Cellar/emacs-plus/HEAD-eb34160 --with-xml2 --without-dbus --with-gnutls --with-imagemagick --with-modules --with-rsvg --with-ns --disable-ns-self-contained
checking for xcrun... xcrun
checking for make... yes
checking for GNU Make... make
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-apple-darwin15.6.0
checking host system type... x86_64-apple-darwin15.6.0
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to enable C11 features... none needed
checking for style of include used by make... GNU
checking dependency style of clang... none
checking for ar... ar
checking for putenv... yes
checking for sbrk... yes
checking for tzset... yes
checking for fchmod... yes
checking for readlinkat... yes
checking for faccessat... yes
checking for fcntl... yes
checking for fdopendir... yes
checking for fstatat... yes
checking for fsync... yes
checking for gettimeofday... yes
checking for nanotime... no
checking for lstat... yes
checking for mkostemp... (cached) no
checking for pipe2... no
checking for pselect... yes
checking for readlink... yes
checking for strtoimax... yes
checking for strtoumax... yes
checking for symlink... yes
checking for localtime_r... yes
checking for timegm... yes
checking for futimes... yes
checking for futimesat... no
checking for futimens... no
checking for utimensat... no
checking for lutimes... yes
checking for getdtablesize... yes
checking for secure_getenv... no
checking for getuid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getegid... yes
checking how to run the C preprocessor... clang -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for Minix Amsterdam compiler... no
checking the archiver (ar) interface... ar
checking for ranlib... ranlib
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking whether clang accepts -g3 -O2... yes
checking whether the compiler is clang... yes
checking whether C compiler handles -Werror -Wunknown-warning-option... yes
checking whether C compiler handles -Wno-switch... yes
checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... yes
checking whether C compiler handles -Wno-pointer-sign... yes
checking whether C compiler handles -Wno-string-plus-int... yes
checking whether C compiler handles -Wno-unknown-attributes... yes
checking whether make supports nested variables... (cached) yes
checking whether ln -s works for files in the same directory... yes
checking for install-info... :
checking for gzip... /usr/bin/gzip
configure: error: You do not seem to have makeinfo >= 4.13, and your
source tree does not seem to have pre-built manuals in the 'info' directory.
Either install a suitable version of makeinfo, or re-run configure
with the '--without-makeinfo' option to build without the manuals. 
ln -s ../Cellar/emacs-plus/HEAD-112460d/bin/ebrowse ebrowse
ln -s ../Cellar/emacs-plus/HEAD-112460d/bin/emacs emacs
ln -s ../Cellar/emacs-plus/HEAD-112460d/bin/emacs-26.0.50 emacs-26.0.50
ln -s ../Cellar/emacs-plus/HEAD-112460d/bin/emacsclient emacsclient
ln -s ../Cellar/emacs-plus/HEAD-112460d/bin/etags etags
ln -s ../Cellar/emacs-plus/HEAD-112460d/share/appdata appdata
mkdir -p /usr/local/share/applications
ln -s ../../Cellar/emacs-plus/HEAD-112460d/share/applications/emacs.desktop emacs.desktop
ln -s ../../Cellar/emacs-plus/HEAD-112460d/share/emacs/26.0.50 26.0.50
ln -s ../../../Cellar/emacs-plus/HEAD-112460d/share/emacs/site-lisp/subdirs.el subdirs.el
mkdir -p /usr/local/share/icons
mkdir -p /usr/local/share/icons/hicolor
mkdir -p /usr/local/share/icons/hicolor/128x128
mkdir -p /usr/local/share/icons/hicolor/128x128/apps
ln -s ../../../../../Cellar/emacs-plus/HEAD-112460d/share/icons/hicolor/128x128/apps/emacs.png emacs.png
mkdir -p /usr/local/share/icons/hicolor/16x16
mkdir -p /usr/local/share/icons/hicolor/16x16/apps
ln -s ../../../../../Cellar/emacs-plus/HEAD-112460d/share/icons/hicolor/16x16/apps/emacs.png emacs.png
mkdir -p /usr/local/share/icons/hicolor/24x24
mkdir -p /usr/local/share/icons/hicolor/24x24/apps
ln -s ../../../../../Cellar/emacs-plus/HEAD-112460d/share/icons/hicolor/24x24/apps/emacs.png emacs.png
mkdir -p /usr/local/share/icons/hicolor/32x32
mkdir -p /usr/local/share/icons/hicolor/32x32/apps
ln -s ../../../../../Cellar/emacs-plus/HEAD-112460d/share/icons/hicolor/32x32/apps/emacs.png emacs.png
mkdir -p /usr/local/share/icons/hicolor/48x48
mkdir -p /usr/local/share/icons/hicolor/48x48/apps
ln -s ../../../../../Cellar/emacs-plus/HEAD-112460d/share/icons/hicolor/48x48/apps/emacs.png emacs.png
mkdir -p /usr/local/share/icons/hicolor/scalable
mkdir -p /usr/local/share/icons/hicolor/scalable/apps
ln -s ../../../../../Cellar/emacs-plus/HEAD-112460d/share/icons/hicolor/scalable/apps/emacs.svg emacs.svg
mkdir -p /usr/local/share/icons/hicolor/scalable/mimetypes
ln -s ../../../../../Cellar/emacs-plus/HEAD-112460d/share/icons/hicolor/scalable/mimetypes/emacs-document.svg emacs-document.svg
ln -s ../../../../../Cellar/emacs-plus/HEAD-112460d/share/icons/hicolor/scalable/mimetypes/emacs-document23.svg emacs-document23.svg
ln -s ../../Cellar/emacs-plus/HEAD-112460d/share/info/emacs emacs
ln -s ../../../Cellar/emacs-plus/HEAD-112460d/share/man/man1/ebrowse.1.gz ebrowse.1.gz
ln -s ../../../Cellar/emacs-plus/HEAD-112460d/share/man/man1/emacs.1.gz emacs.1.gz
ln -s ../../../Cellar/emacs-plus/HEAD-112460d/share/man/man1/emacsclient.1.gz emacsclient.1.gz
ln -s ../../../Cellar/emacs-plus/HEAD-112460d/share/man/man1/etags.1.gz etags.1.gz
ln -s ../Cellar/emacs-plus/HEAD-112460d/lib/systemd systemd

==> Formula
Tap: d12frosted/emacs-plus
Path: /usr/local/Homebrew/Library/Taps/d12frosted/homebrew-emacs-plus/Formula/emacs-plus.rb
==> Configuration
HOMEBREW_VERSION: 1.1.5
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: 9cd5a21b473f0271b162bbe7f77f7d1468c0cfa1
Last commit: 3 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 89d4961d7f3d64874512094ee108733ddf87ccdb
Core tap last commit: 3 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: quad-core 64-bit haswell
Homebrew Ruby: 2.0.0-p648
Clang: 8.0 build 800
Git: 2.11.0 => /usr/local/bin/git
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /Users/ag.ibragimov/.rvm/rubies/ruby-2.2.1/bin/ruby
Java: 1.8.0_74
macOS: 10.11.6-x86_64
Xcode: 8.2.1
CLT: 8.2.0.0.1.1480973914
X11: N/A
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /usr/local/opt/libffi:/usr/local/opt/gettext:/usr/local/opt/icu4c:/usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
MACOSX_DEPLOYMENT_TARGET: 10.11
PKG_CONFIG_PATH: /usr/local/opt/libtasn1/lib/pkgconfig:/usr/local/opt/nettle/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/p11-kit/lib/pkgconfig:/usr/local/opt/gnutls/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig:/usr/local/opt/fontconfig/lib/pkgconfig:/usr/local/opt/pixman/lib/pkgconfig:/usr/local/opt/pcre/lib/pkgconfig:/usr/local/opt/glib/lib/pkgconfig:/usr/local/opt/cairo/lib/pkgconfig:/usr/local/opt/libtiff/lib/pkgconfig:/usr/local/opt/gobject-introspection/lib/pkgconfig:/usr/local/opt/gdk-pixbuf/lib/pkgconfig:/usr/local/opt/libcroco/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/harfbuzz/lib/pkgconfig:/usr/local/opt/pango/lib/pkgconfig:/usr/local/opt/librsvg/lib/pkgconfig:/usr/local/opt/xz/lib/pkgconfig:/usr/local/opt/imagemagick/lib/pkgconfig:/usr/local/opt/shared-mime-info/share/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.11
ACLOCAL_PATH: /usr/local/opt/gettext/share/aclocal:/usr/local/share/aclocal
PATH: /usr/local/Homebrew/Library/Homebrew/shims/super:/usr/local/opt/autoconf/bin:/usr/local/opt/automake/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/libtasn1/bin:/usr/local/opt/nettle/bin:/usr/local/opt/p11-kit/bin:/usr/local/opt/gnutls/bin:/usr/local/opt/libpng/bin:/usr/local/opt/freetype/bin:/usr/local/opt/fontconfig/bin:/usr/local/opt/gettext/bin:/usr/local/opt/pcre/bin:/usr/local/opt/glib/bin:/usr/local/opt/cairo/bin:/usr/local/opt/jpeg/bin:/usr/local/opt/libtiff/bin:/usr/local/opt/gobject-introspection/bin:/usr/local/opt/shared-mime-info/bin:/usr/local/opt/gdk-pixbuf/bin:/usr/local/opt/libcroco/bin:/usr/local/opt/icu4c/bin:/usr/local/opt/harfbuzz/bin:/usr/local/opt/pango/bin:/usr/local/opt/librsvg/bin:/usr/local/opt/libtool/bin:/usr/local/opt/xz/bin:/usr/local/opt/imagemagick/bin:/usr/local/opt/git/bin:/usr/bin:/bin:/usr/sbin:/sbin

Logs:
     /Users/ag.ibragimov/Library/Logs/Homebrew/emacs-plus/00.options.out
     /Users/ag.ibragimov/Library/Logs/Homebrew/emacs-plus/01.autogen.sh
     /Users/ag.ibragimov/Library/Logs/Homebrew/emacs-plus/02.configure
     /Users/ag.ibragimov/Library/Logs/Homebrew/emacs-plus/02.configure.cc
     /Users/ag.ibragimov/Library/Logs/Homebrew/emacs-plus/config.log
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/d12frosted/homebrew-emacs-plus/issues


homebrew has deprecated some syntax

It gives me these warning when I try to install emacs.

Warning: Calling <<-EOS.undent is deprecated!
Use <<~EOS instead.
Warning: Calling 'depends_on :python' is deprecated!
Use 'depends_on "python"' instead.

Not building with imagemagick

as the title says, emacs-plus doesn't seem to have imagemagick compiled in. I thought it might be a path issue but after inspecting the ./configure logs when building it says something along the lines of checking for imagemagick.... no, so this is a compilation issue.

I built the home-brew standard formula with brew install emacs --with-cocoa --with-gnutls --with-librsvg --with-imagemagick@6, with which imagemagick is compiled in and works. Is this to do with the old version of imagemagick (hence the @6)? Can this part of the recipe be used in emacs-plus?

Compilation fails on fresh High Sierra install

Hi,

I'm trying to install on a fresh High Sierra install and am running into compilation errors:

$ brew install emacs-plus
==> Installing emacs-plus from d12frosted/emacs-plus
==> Downloading https://ftp.gnu.org/gnu/emacs/emacs-25.3.tar.xz
Already downloaded: /Users/hovlast/Library/Caches/Homebrew/emacs-plus-25.3.tar.xz
==> Downloading https://gist.githubusercontent.com/aatxe/260261daf70865fbf1749095de9172c5/raw/214b50c62450be1cbee9f11cecba846dd66c7d06/patch-multicolor-font.diff
Already downloaded: /Users/hovlast/Library/Caches/Homebrew/emacs-plus--patch-5af2587e986db70999d1a791fca58df027ccbabd75f45e4a2af1602c75511a8c.diff
==> Downloading https://gist.githubusercontent.com/aaronjensen/f45894ddf431ecbff78b1bcf533d3e6b/raw/6a5cd7f57341aba673234348d8b0d2e776f86719/Emacs-25-OS-X-use-vfork.patch
Already downloaded: /Users/hovlast/Library/Caches/Homebrew/emacs-plus--patch-f2fdbc5adab80f1af01ce120cf33e3b0590d7ae29538999287986beb55ec9ada.patch
==> Patching
==> Applying patch-multicolor-font.diff
patching file src/macfont.m
==> Applying Emacs-25-OS-X-use-vfork.patch
patching file src/callproc.c
patching file src/conf_post.h
patching file src/process.c
==> ./configure --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-plus/25.3/share/info/emacs --prefix=/usr/local/Cellar/em
==> make
Last 15 lines from /Users/hovlast/Library/Logs/Homebrew/emacs-plus/02.make:
	      -e 's|@''HAVE_WINSOCK2_H''@|0|g' \
	      -e 's|@''HAVE_PSELECT''@|1|g' \
	      -e 's|@''REPLACE_PSELECT''@|0|g' \
	      -e 's|@''REPLACE_SELECT''@|0|g' \
	      -e '/definitions of _GL_FUNCDECL_RPL/r c++defs.h' \
	      -e '/definition of _GL_WARN_ON_USE/r warn-on-use.h' \
	      < ./sys_select.in.h; \
	} > sys/select.h-t && \
	mv sys/select.h-t sys/select.h
../build-aux/install-sh -c -d sys
make[1]: ../build-aux/install-sh: Permission denied
make[1]: *** [sys/stat.h] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [sys/time.h] Error 1
make: *** [lib] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/d12frosted/homebrew-emacs-plus/issues

I am able to manually ./configure && make install the emacs-plus-25.3.tar.xz tar without any issues. I'm not sure if this is some quirk with the High Sierra install? My XCode tools should be properly setup and working, I'm unsure what exactly the issue might be. Please let me know if you need any more info I'd be happy to provide it.

Here's the full make log: https://gist.github.com/res0nat0r/28dfe8d95c87196be0089abaf8965f56

Launching from the Emacs.app doesn't set $EMACS environment variable.

The Prezto configuration manager for zsh has a feature that can automatically start tmux when a new shell is created. Before it does this though it checks to see if the shell was created in a tmux window or by an editor. It does this through the $EMACS, $VIM, or $TMUX variables. If any of those are set Prezto won't try to use tmux.

When I launch emacs-plus from a shell it sets the $EMACS variable and I am able to use the shell both in emacs configurations (like in part of the spacemacs startup process) and in shell mode. But if I use the Emacs.app in the Cellar $EMACS is not set and Prezto proceeds to start tmux.

For example when starting spacemacs I get the following warning about halfway through my packages getting loaded.

Error (use-package): exec-path-from-shell/:config: Non-zero exit code from shell /usr/local/bin/zsh invoked with args ("-l" "-i" "-c" "/usr/bin/printf '__RESULT\\000%s\\000%s\\000__RESULT' \"${PATH-5b357592b274f24cd652d4aebc6827a9}\" \"${MANPATH-5b357592b274f24cd652d4aebc6827a9}\"").  Output was:
"open terminal failed: not a terminal
"

Railwaycat emacs-mac support

In my experience, railwaycat emacs-mac is the best emacs to use in a mac. It has smooth scrolling and touchpad gesture support among other things. It would be awesome if there's an option that would install the railwaycat version instead of the cocoa version.

Heavy download on upgrade

Hi,
I was trying to upgrade emacs plus with this command :
brew upgrade emacs-plus

Dependencies were installed and then git was stuck in updating of cache:

🍺  /usr/local/Cellar/imagemagick@6/6.9.9-14: 1,469 files, 22.5MB
==> Installing d12frosted/emacs-plus/emacs-plus --HEAD
==> Cloning https://github.com/emacs-mirror/emacs.git
Updating /Users/ashish/Library/Caches/Homebrew/emacs-plus--git

git has downloaded almost 666 mb of data and there were no signs stopping.
screen shot 2017-09-21 at 6 26 19 pm

I don't know what went wrong.

Help.

Thanks,
Ashish

Gotta rebuild emacs-plus bottle and bump version again because some library got updated

$ brew upgrade
[...]
$ /usr/local/Cellar/emacs-plus/25.3/Emacs.app/Contents/MacOS/Emacs
dyld: Library not loaded: /usr/local/opt/imagemagick@6/lib/libMagickWand-6.Q16.5.dylib
  Referenced from: /usr/local/Cellar/emacs-plus/25.3/Emacs.app/Contents/MacOS/Emacs
  Reason: image not found
Abort trap: 6

Workaround I'm testing:

cd /usr/local/opt/imagemagick@6/lib/
ln -s libMagickWand-6.Q16.6.dylib libMagickWand-6.Q16.5.dylib
ln -s libMagickCore-6.Q16.6.dylib libMagickCore-6.Q16.5.dylib

But I'm confused, I'd expect emacs-plus to link to libMagickCore-6.Q16.dylib and libMagickWand-6.Q16.dylib, I'd think they exist for that? But never done native development on Mac, only Linux.

Re-enabling multicolor font support in Emacs 25.1

As you may or may not be aware, in Emacs 25.1, the FSF made the decision to remove multicolor font support from the macOS version of Emacs because it is not currently supported by GNU/Linux. I just recently discovered this through this blogpost and now understand why my wasted hours of trying to get multicolor fonts working were just banging my head into a wall.

I'm not sure if you have any interest in changing this in your formula, but in order to resolve the issue personally, I prepared a patch that I used locally with this formula to get working multicolor font support once again. So, I thought I would bring this up here with the patch, in case you wish to integrate it. I would make a PR but my local copy is using homebrew's embedded patch feature. That being said I can also prepare one if you're interested in adding this.

How does this compare to railwaycat/homebrew-emacsmacport?

I came across this repository from the Spacemacs#develop installation instructions, which I noticed recently changed from recommending https://github.com/railwaycat/homebrew-emacsmacport to this.

What's the difference between this and that?

The Spacemacs instructions only mention that this provides a Spacemacs icon, yet emacs-mac has --with-spacemacs-icon (at least it did last time I installed it).

I'm happy to use this repo, just wanted to understand which of the two might be better choices going forward. I know that you're involved in Spacemacs, so perhaps this emacs distribution might have a better chance at alignment with Spacemacs?

Fail to install without cocoa

$ brew install emacs-plus --HEAD --without-cocoa

==> Installing emacs-plus from d12frosted/emacs-plus
==> Cloning https://github.com/emacs-mirror/emacs.git
Updating ~/.cache/homebrew/emacs-plus--git
==> Checking out branch master
==> Downloading https://gist.githubusercontent.com/aatxe/260261daf70865fbf1749095de9172c5/raw/214b50c62450be1cbee9f11cecba846dd66c7d06/patch-multicolor-font.diff
Already downloaded: ~/.cache/homebrew/emacs-plus--patch-5af2587e986db70999d1a791fca58df027ccbabd75f45e4a2af1602c75511a8c.diff
==> Patching
==> Applying patch-multicolor-font.diff
patching file src/macfont.m
Hunk #1 succeeded at 2360 (offset -13 lines).
==> ./autogen.sh
==> ./configure --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-plus/HEAD-b6a57fb/share/info/emacs --prefix=/usr/local/Cellar/emacs-plus/HEAD-b6a57fb --with-xml2 --without-dbus --with-gnutls --with-imagemagick --with-modules --with-rsvg --without-ns
Last 15 lines from ~/Library/Logs/Homebrew/emacs-plus/02.configure:
checking for png... yes
checking whether png_longjmp is declared... yes
checking tiffio.h usability... yes
checking tiffio.h presence... yes
checking for tiffio.h... yes
checking for TIFFGetVersion in -ltiff... yes
checking gif_lib.h usability... no
checking gif_lib.h presence... no
checking for gif_lib.h... no
configure: error: The following required libraries were not found:
     libgif/libungif
Maybe some development libraries/packages are missing?
If you don't want to link with them give
     --with-gif=no
as options to configure

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/d12frosted/homebrew-emacs-plus/issues

verbose: https://pastebin.com/raw/pX51M4MK

After brew install giflib:

==> Installing emacs-plus from d12frosted/emacs-plus
==> Cloning https://github.com/emacs-mirror/emacs.git
Updating ~/.cache/homebrew/emacs-plus--git
==> Checking out branch master
==> Downloading https://gist.githubusercontent.com/aatxe/260261daf70865fbf1749095de9172c5/raw/214b50c62450be1cbee9f11cecba846dd66c7d06/patch-multicolor-font.diff
Already downloaded: ~/.cache/homebrew/emacs-plus--patch-5af2587e986db70999d1a791fca58df027ccbabd75f45e4a2af1602c75511a8c.diff
==> Patching
==> Applying patch-multicolor-font.diff
patching file src/macfont.m
Hunk #1 succeeded at 2360 (offset -13 lines).
==> ./autogen.sh
==> ./configure --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-plus/HEAD-cd56490/share/info/emacs --prefix=/usr/local/Cellar/emacs-plus/HEAD-cd56490 --with-xml2 --without-dbus --with-gnutls --with-imagemagick --with-modules --with-rsvg --without-ns
==> make
Last 15 lines from ~/Library/Logs/Homebrew/emacs-plus/03.make:
      -o ../../info/url.info url.texi
makeinfo --force -I./../emacs --no-split  \
      -o ../../info/vhdl-mode.info vhdl-mode.texi
makeinfo --force -I./../emacs --no-split  \
      -o ../../info/vip.info vip.texi
makeinfo --force -I./../emacs --no-split  \
      -o ../../info/viper.info viper.texi
makeinfo --force -I./../emacs --no-split  \
      -o ../../info/widget.info widget.texi
makeinfo --force -I./../emacs --no-split  \
      -o ../../info/wisent.info wisent.texi
makeinfo --force -I./../emacs --no-split  \
      -o ../../info/woman.info woman.texi
makeinfo --force -I./../emacs --no-split  \
      -o ../../info/efaq-w32.info efaq-w32.texi

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/d12frosted/homebrew-emacs-plus/issues

verbose: https://pastebin.com/raw/URGnprxg

Unable to load Emacs after upgrading imagemagick

I'm not sure how useful this is, or if I just ran into an issue with my setup. But thought I'd share incase it's helpful or a bug. I ran brew upgrade this morning, which upgraded imagemagick from 6.9.6-7 -> 6.9.6-8. After that emacs failed to launch with the following crash report:

Process:               Emacs [7407]
Path:                  /usr/local/Cellar/emacs-plus/25.1/Emacs.app/Contents/MacOS/Emacs
Identifier:            org.gnu.Emacs
Version:               Version 25.1 (9.0)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Emacs [7407]
User ID:               501

Date/Time:             2016-12-12 14:17:21.384 -0700
OS Version:            Mac OS X 10.12.1 (16B2555)
Report Version:        12
Anonymous UUID:        F3F7193A-368B-DA41-54C0-C1DCC1F7E8B3

Sleep/Wake UUID:       49DDE676-7039-45BB-9F59-CCBCB37BA280

Time Awake Since Boot: 12000 seconds
Time Since Wake:       10000 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    DYLD, [0x1] Library missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: /usr/local/opt/imagemagick/lib/libMagickWand-6.Q16.2.dylib
  Referenced from: /usr/local/Cellar/emacs-plus/25.1/Emacs.app/Contents/MacOS/Emacs
  Reason: image not found

Binary Images:
       0x100000000 -        0x1001d0ff3 +org.gnu.Emacs (Version 25.1 - 9.0) <19B9DC42-8259-32E9-9A4F-EA65990A85CF> /usr/local/Cellar/emacs-plus/25.1/Emacs.app/Contents/MacOS/Emacs
       0x10062f000 -        0x10065bfff +libjpeg.8.dylib (0) <7A528846-854A-370E-AE9A-EEA0842EEC9C> /usr/local/lib/libjpeg.8.dylib
       0x100662000 -        0x10068affb +librsvg-2.2.dylib (0) <D9411CA8-358E-328A-A318-2A3091F8DE4F> /usr/local/opt/librsvg/lib/librsvg-2.2.dylib
       0x100698000 -        0x100794ff3 +libgio-2.0.0.dylib (0) <2DBF7ED7-3FCE-38D0-85A2-7278000C95EA> /usr/local/opt/glib/lib/libgio-2.0.0.dylib
       0x100802000 -        0x100818ff3 +libgdk_pixbuf-2.0.0.dylib (0) <924C11BE-3CD7-37B5-B36B-A4273E5BEA75> /usr/local/opt/gdk-pixbuf/lib/libgdk_pixbuf-2.0.0.dylib
       0x100822000 -        0x100853ffb +libgobject-2.0.0.dylib (0) <E9890BF9-9560-398D-B91C-2F37BED483CB> /usr/local/opt/glib/lib/libgobject-2.0.0.dylib
       0x100866000 -        0x10092fffb +libglib-2.0.0.dylib (0) <ED97756D-A429-3762-BF2D-0F8EE9493CD1> /usr/local/opt/glib/lib/libglib-2.0.0.dylib
       0x100954000 -        0x10095cff3 +libintl.8.dylib (0) <89A49B65-40E2-340A-A6B3-B344F7AEEB32> /usr/local/opt/gettext/lib/libintl.8.dylib
       0x100961000 -        0x100a09ff3 +libcairo.2.dylib (0) <67E1756D-1B98-3273-946E-08FF7D98F991> /usr/local/opt/cairo/lib/libcairo.2.dylib
       0x111753000 -        0x111790287  dyld (421.2) <13A9466A-2576-3ABB-AD9D-D6BC16439B8F> /usr/lib/dyld
    0x7fffa2f65000 -     0x7fffa3c45ff3  com.apple.AppKit (6.9 - 1504.60) <5DA1E013-575C-34D5-A028-1639EB7B0040> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x7fffa725b000 -     0x7fffa72f0ff7  com.apple.framework.IOKit (2.0.2 - 1324.21.1) <EEFE7FF0-CE41-326A-A571-8AA0B2E89271> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x7fffb8e58000 -     0x7fffb8e59ff3  libSystem.B.dylib (1238) <CFC3669C-FB44-3A51-8815-1E84A168F3C5> /usr/lib/libSystem.B.dylib

Model: MacBookPro11,1, BootROM MBP111.0138.B17, 2 processors, Intel Core i5, 2.6 GHz, 8 GB, SMC 2.16f68
Graphics: Intel Iris, Intel Iris, Built-In
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x02FE, -
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x02FE, -

Re-installing/building from source fixed things:

  • brew uninstall emacs-plus
  • brew install emacs-plus
  • brew linkapps emacs-plus not sure if this is necessary

Borderless feature

I've applied the patch in the borderlass branch:

$ brew install --HEAD ./emacs-plus.rb                                                                                                                                              master
==> Cloning https://github.com/emacs-mirror/emacs.git
Updating /Users/krisz/Library/Caches/Homebrew/emacs-plus--git
==> Checking out branch master
==> Downloading https://lists.gnu.org/archive/html/bug-gnu-emacs/2016-10/binh950gCIBLY.bin
Already downloaded: /Users/krisz/Library/Caches/Homebrew/emacs-plus--patch-184301d28dabab5e2115cfd3c4875b89b408c31845ef04f909a6e0710523f082.bin
==> Patching
==> Applying binh950gCIBLY.bin
patching file lisp/cus-start.el
Hunk #1 succeeded at 448 (offset 2 lines).
patching file src/nsterm.m
Hunk #1 succeeded at 6748 (offset -27 lines).
Hunk #2 succeeded at 6787 (offset -27 lines).
Hunk #3 succeeded at 6809 (offset -27 lines).
Hunk #4 succeeded at 8736 with fuzz 1 (offset -27 lines).
==> ./autogen.sh
==> ./configure --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-plus/HEAD-877c525/share/info/emacs --prefix=/usr/local/Cellar/emacs-plus/HEAD-877c525 --with-xml2 --without-d
==> make
==> make install
...

but there is no ns-use-titled-windows variable in Emacs.

Could You give me some hints to achieve borderless frame?

I've found another patch which conflicts with emacs' source http://stackoverflow.com/questions/24021624/in-gnu-emacs-osx-how-to-hide-title-bar .

add option to add binaries to $PATH

I am running into magit/magit#2318

Also, when typing emacsclient -V , I see that it still points to /usr/bin/, which is at 22.1

Would be great to have an option to setup links for binaries under /usr/local/Cellar/emacs-plus/25.1/bin

Install failed without any error.

I try to install with
brew install emacs-plus --HEAD --with-natural-title-bar

==> Installing emacs-plus from d12frosted/emacs-plus
==> Cloning https://github.com/emacs-mirror/emacs.git
Updating /Users/shitianshu/Library/Caches/Homebrew/emacs-plus--git
==> Checking out branch master
==> Downloading https://gist.githubusercontent.com/aatxe/260261daf70865fbf1749095de9172c5/raw/214b50c62450be1cbee9f11cecba846dd66
Already downloaded: /Users/shitianshu/Library/Caches/Homebrew/emacs-plus--patch-5af2587e986db70999d1a791fca58df027ccbabd75f45e4a2af1602c75511a8c.diff
==> Downloading https://gist.githubusercontent.com/jwintz/853f0075cf46770f5ab4f1dbf380ab11/raw/bc30bd2e9a7bf6873f3a3e301d0085bcbe
Already downloaded: /Users/shitianshu/Library/Caches/Homebrew/emacs-plus--patch-742f7275f3ada695e32735fa02edf91a2ae7b1fa87b7e5f5c6478dd591efa162.patch
==> Patching
==> Applying patch-multicolor-font.diff
patching file src/macfont.m
Hunk #1 succeeded at 2360 (offset -13 lines).
==> Applying emacs_dark_title_bar.patch
patching file src/nsterm.m
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 6744 with fuzz 1.
==> ./autogen.sh
==> ./configure --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-
==> make
Last 15 lines from /Users/shitianshu/Library/Logs/Homebrew/emacs-plus/03.make:
	  -o ../../info/url.info url.texi
makeinfo --force -I./../emacs --no-split  \
	  -o ../../info/vhdl-mode.info vhdl-mode.texi
makeinfo --force -I./../emacs --no-split  \
	  -o ../../info/vip.info vip.texi
makeinfo --force -I./../emacs --no-split  \
	  -o ../../info/viper.info viper.texi
makeinfo --force -I./../emacs --no-split  \
	  -o ../../info/widget.info widget.texi
makeinfo --force -I./../emacs --no-split  \
	  -o ../../info/wisent.info wisent.texi
makeinfo --force -I./../emacs --no-split  \
	  -o ../../info/woman.info woman.texi
makeinfo --force -I./../emacs --no-split  \
	  -o ../../info/efaq-w32.info efaq-w32.texi

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/d12frosted/homebrew-emacs-plus/issues

Looks very strange, installation stop here without error message.

OS: MacOS Sierra 10.12.3
XCode: 8.3.1

Any other information should I provide?

[macOS] Emacs freezes if file contains unicode emojis

When opening a file containing unicode emojis, emacs will consume 100% of CPU and become unresponsive; so far it never seems to come out of this loop and has to be killed. I've tried opening the file with emacs running in -q mode, but I encountered the same problem.

This happens with 2 versions (that I have available), one is 25.2, the other is HEAD-b372e56 (--with-natural-title-bar enabled, former version is installed without this)

The same file can be opened in neovim, macvim, xcode, ... and it seems to work just fine in those editors.

I've also tried renaming the file to various extensions to see if any modes could be responsible, but the results are no different (tried .swift, .cpp, .txt)

Any ideas as to what's happening?

Emacs 26.1

RC1 is already out. Waiting for the official release to update.

macOS 10.12.6 upgrade seems to break emacs-plus

After upgrading macOS, my Spacemacs install refused to start.

I've tried upgrading emacs-plus, removing and reinstalling, all with the same result — I can't start emacs.

I uninstalled emacs-plus and installed plain ol' emacs via homebrew. That will start normally.

Here is the output I get from attempting to start with emacs-plus:

Path:                  /usr/local/Cellar/emacs-plus/25.2_1/Emacs.app/Contents/MacOS/Emacs
Identifier:            Emacs
Version:               Version 25.2 (9.0)
Code Type:             X86-64 (Native)
Parent Process:        zsh [19940]
Responsible:           Emacs [21359]
User ID:               386003728

Date/Time:             2017-08-08 12:49:12.077 -0500
OS Version:            Mac OS X 10.12.6 (16G29)
Report Version:        12
Anonymous UUID:        5313FAE0-883D-F119-D098-FDDECE047F74

Sleep/Wake UUID:       3462E68E-BAA6-42FD-B0ED-52FC5F359CBE

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    DYLD, [0x1] Library missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: /usr/local/lib/libjpeg.8.dylib
  Referenced from: /usr/local/Cellar/emacs-plus/25.2_1/Emacs.app/Contents/MacOS/Emacs
  Reason: image not found

Binary Images:
       0x100000000 -        0x1001c8ff3 +org.gnu.Emacs (Version 25.2 - 9.0) <4306198F-272F-306D-9ACC-8C67C86CDBAD> /usr/local/Cellar/emacs-plus/25.2_1/Emacs.app/Contents/MacOS/Emacs
       0x113ee3000 -        0x113f20dc7  dyld (433.5) <322C06B7-8878-311D-888C-C8FD2CA96FF3> /usr/lib/dyld
    0x7fff90674000 -     0x7fff9144dff3  com.apple.AppKit (6.9 - 1504.83.101) <AE51ACB3-D501-3F91-B369-3D3711F24D0A> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x7fff94b19000 -     0x7fff94bafff7  com.apple.framework.IOKit (2.0.2 - 1324.60.3) <7CE4C98B-107C-3AAA-B49A-F2ACFCBBF526> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit

Please let me know if there is anything further I can add to this report.

new bottles needed: JPEG 9

The jpeg upgrade we shipped yesterday has broken your bottles, so the formula will need a revision bump and new bottles.

Install fails with "Error: No such file or directory - nextstep/Emacs.app/Contents/PkgInfo"

I'm trying to install emacs-plus using

brew -v install emacs-plus --with-cocoa --with-gnutls --with-librsvg --with-imagemagick

Th command fails with:

...
Installing utilities for users to run.
umask 022; ../build-aux/install-sh -c -d "/usr/local/Cellar/emacs-plus/24.5/bin"
for file in etags ctags emacsclient  ebrowse ; do \
      /usr/bin/install -c  ${file} "/usr/local/Cellar/emacs-plus/24.5/bin"/`echo ${file} | sed -e 's/$//' -e 's,x,x,'` ; \
    done
for file in grep-changelog ; do \
      /usr/bin/install -c ./${file} "/usr/local/Cellar/emacs-plus/24.5/bin"/`echo ${file} | sed 's,x,x,'`  ; \
    done
if test "no" = "no"; then \
      /usr/bin/install -c  src/emacs "/usr/local/Cellar/emacs-plus/24.5/bin/`echo emacs-24.5 | sed 's,x,x,'`" || exit 1 ; \
      chmod 1755 "/usr/local/Cellar/emacs-plus/24.5/bin/`echo emacs-24.5 | sed 's,x,x,'`" || true; \
      if test "x" = x; then \
        rm -f "/usr/local/Cellar/emacs-plus/24.5/bin/`echo emacs | sed 's,x,x,'`" ; \
        cd "/usr/local/Cellar/emacs-plus/24.5/bin" && ln -s `echo emacs-24.5 | sed 's,x,x,'` `echo emacs | sed 's,x,x,'`; \
      fi; \
    else \
      subdir=/private/tmp/emacs-plus-20160802-97149-1qh10hh/emacs-24.5/nextstep/Emacs.app/Contents/Resources/site-lisp; \
      if [ -f "${subdir}/subdirs.el" ]; then true; else umask 022; build-aux/install-sh -c -d "${subdir}"; (echo "(if (fboundp 'normal-top-level-add-subdirs-to-load-path)"; echo "    (normal-top-level-add-subdirs-to-load-path))") > "${subdir}/subdirs.el"; fi || exit 1; \
      rm -rf /private/tmp/emacs-plus-20160802-97149-1qh10hh/emacs-24.5/nextstep/Emacs.app/Contents/Resources/share; \
    fi
Error: No such file or directory - nextstep/Emacs.app/Contents/PkgInfo

Odd error messages about stashed changes on brew update & upgrade commands

I run brew update and brew upgrade regularly. I noticed yesterday that these commands started giving me strange errors related to this repo. Here is the message I'm getting:

git-lfs filter-process: git-lfs: command not found
fatal: The remote end hung up unexpectedly
could not detach HEAD
To restore the stashed changes to /usr/local/Homebrew/Library/Taps/d12frosted/homebrew-emacs-plus run:
  'cd /usr/local/Homebrew/Library/Taps/d12frosted/homebrew-emacs-plus && git stash pop'

Not sure if it's related to the commits made recently, or if this is a homebrew error that should be reported to their repo. If that's the case just let me know and I'll post the issue over there. Thanks!

install conflicts with gnupg from pass

brew install emacs-plus [NORMAL]
==> Installing emacs-plus from d12frosted/emacs-plus
==> Installing dependencies for d12frosted/emacs-plus/emacs-plus: libtasn1, p11-kit, gnutls, freetype, fontconfig, pixman, glib, cairo, jpeg, libtiff, gobject-introspection, shared-mime-info, gdk-pixbuf, libcroco, graphite2, harfbuzz, pango, librsvg, imagemagick@6
Error: Cannot link libtasn1
Another version is already linked: /usr/local/Cellar/libtasn1/4.10

new bottles needed

The imagemagick@6 upgrade we shipped today has broken your bottles, so the formula will need a revision bump and new bottles.

Possible typo in formulae

I know I just reported a false issue, but I think this is a real one.

In

  if build.with? "natural-title-bar"
    if build.head? or build.devel?
      odie "--with-natural-title-bars is unnecessary on --HEAD or --devel, try (setq 'default-frame-alist '((ns-transparent-titlebar . t) (ns-appearance . 'nil)))"
    end

(setq 'default-frame-alist '((ns-transparent-titlebar . t) (ns-appearance . 'nil)))
should be
(setq default-frame-alist '((ns-transparent-titlebar . t) (ns-appearance . 'nil)))
right?
The expression with quote gives me error and expression without it works fine.

And putting quote in front of variable doesn't make sense anyway.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.