Skip to content

Instantly share code, notes, and snippets.

@znz
Last active January 1, 2016 12:09
Show Gist options
  • Save znz/8143104 to your computer and use it in GitHub Desktop.
Save znz/8143104 to your computer and use it in GitHub Desktop.
http://blog.n-z.jp/blog/2013-11-13-killall-distnoted-periodically.html のコメントのパッチを試す (`brew edit emacs` で以下の emacs.rb.diff のように変更して `brew reinstall emacs`)
diff --git a/emacs-inline.patch.sfjp b/emacs-inline.patch.gist
index 52f2052..d67ad1d 100644
--- a/emacs-inline.patch.sfjp
+++ b/emacs-inline.patch.gist
@@ -1015,7 +1015,7 @@ diff -r -N -p ../emacs-24.3.org/src/nsterm.m src/nsterm.m
name: nil object: nil]; */
+ [[NSDistributedNotificationCenter defaultCenter] addObserver: NSApp
+ selector: @selector (changeInputMethod:)
-+ name: @"AppleSelectedInputSourcesChangedNotification" object: nil];
++ name: @"AppleSelectedInputSourcesChangedNotification" object: nil suspensionBehavior:NSNotificationSuspensionBehaviorDeliverImmediately];
dpyinfo = xzalloc (sizeof *dpyinfo);
diff --git a/Library/Formula/emacs.rb b/Library/Formula/emacs.rb
index 712c3d1..5ce4ce2 100644
--- a/Library/Formula/emacs.rb
+++ b/Library/Formula/emacs.rb
@@ -47,7 +47,7 @@ class Emacs < Formula
# "--japanese" option:
# to apply a patch from MacEmacsJP for Japanese input methods
if build.include? "cocoa" and build.include? "japanese"
- p[:p0].push("http://sourceforge.jp/projects/macemacsjp/svn/view/inline_patch/trunk/emacs-inline.patch?view=co&revision=583&root=macemacsjp&pathrev=583")
+ p[:p0].push("https://gist.github.com/anonymous/8142555/raw/d67ad1dc814579d125afbd18de3a62ba69895601/emacs-inline.patch")
end
p
end unless build.head?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment