Last active
January 1, 2016 12:09
-
-
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`)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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