Skip to content

Instantly share code, notes, and snippets.

View henry0312's full-sized avatar
💭
I may be slow to respond.

OMOTO Tsukasa henry0312

💭
I may be slow to respond.
View GitHub Profile
@henry0312
henry0312 / fix-shiftmodifier-patch-for-emacs-inline-patch.diff
Created January 29, 2012 08:27
FIx typester's fix-shiftmodifier-with-ime.patch for emacs-inline.patch
diff --git a/src/nsterm.m b/src/nsterm.m
index 211b029..5a650b6 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -4508,7 +4508,7 @@ ns_term_shutdown (int sig)
if (mac_pass_key_directly_to_emacs ()
|| fnKeysym
- || (emacs_event->modifiers
+ || (emacs_event->modifiers && (emacs_event->modifiers != shift_modifier)
@henry0312
henry0312 / emacs-23-lion-fullscreen-test-for-emacs-24.1.patch
Created June 11, 2012 09:38
Fix typester's emacs-23-lion-fullscreen-test.patch to follow Emacs 24.1
diff --git a/src/nsterm.m b/src/nsterm.m
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -5507,6 +5507,7 @@ ns_term_shutdown (int sig)
[win setAcceptsMouseMovedEvents: YES];
[win setDelegate: self];
[win useOptimizedDrawing: YES];
+ [win setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
sz.width = FRAME_COLUMN_WIDTH (f);
@henry0312
henry0312 / build_emacs24.1.sh
Created June 11, 2012 10:24
Build Emacs 24.1 on Mac OS X Lion 10.7.4
#!/bin/sh
# 初期設定
EMACS_VER=24.1
WORK_DIR=$HOME/Builds/Emacs
BUILD_DIR=$WORK_DIR/build
PATCH_DIR=$WORK_DIR/patch
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export CC='/usr/bin/llvm-gcc'
@henry0312
henry0312 / build_gcc4.7.1.sh
Created June 14, 2012 17:32
Build GCC 4.7.1 on Mac OS X Lion
#!/bin/sh
# GCC
## Prerequisites for GCC
## http://gcc.gnu.org/install/prerequisites.html
## Installing GCC: Configuration
## http://gcc.gnu.org/install/configure.html
# 初期設定
GCC_VER=4.7.1
@henry0312
henry0312 / atok25.diff
Created August 27, 2012 10:04
Add support of ATOK 2012 to inline_patch
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el
index 360397a..fb8e50a 100644
--- a/lisp/term/ns-win.el
+++ b/lisp/term/ns-win.el
@@ -1233,6 +1233,26 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.")
(title . "半英")
(cursor-color)
(cursor-type))
+ ("com.justsystems.inputmethod.atok25.Roman"
+ (title . "A")
@henry0312
henry0312 / build_emacs24.2.sh
Created August 27, 2012 10:07
Build Emacs 24.2 on OS X 10.8.1
#!/bin/sh
# 初期設定
EMACS_VER=24.2
WORK_DIR=$HOME/Builds/Emacs
BUILD_DIR=$WORK_DIR/build
PATCH_DIR=$WORK_DIR/patch
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export CC='/usr/bin/clang'
@henry0312
henry0312 / lib-asprintf.h.diff
Created October 18, 2012 11:56
Fix compiling libasprintf
--- lib-asprintf.h.orig 2012-10-18 17:28:50.854969895 +0900
+++ lib-asprintf.h 2012-10-18 17:24:19.707008903 +0900
@@ -29,6 +29,7 @@
#else
/* Get asprintf(), vasprintf() declarations. */
-#include "vasprintf.h"
+//#include "vasprintf.h"
+#include <stdio.h>
@henry0312
henry0312 / rules.mak.diff
Created October 18, 2012 11:57
Fix compiling libdvdnav
diff --git a/contrib/src/dvdnav/rules.mak b/contrib/src/dvdnav/rules.mak
--- a/contrib/src/dvdnav/rules.mak
+++ b/contrib/src/dvdnav/rules.mak
@@ -24,7 +24,7 @@ $(TARBALLS)/libdvdnav-git.tar.xz:
dvdnav: libdvdnav-$(LIBDVDNAV_VERSION).tar.xz .sum-dvdnav
$(UNPACK)
- $(APPLY) $(SRC)/dvdnav/dvdnav.patch
+ #$(APPLY) $(SRC)/dvdnav/dvdnav.patch
$(MOVE)
@henry0312
henry0312 / taglib1.7.2.diff
Created October 18, 2012 14:41
Revert 276e2eb46735726eff17ecda1ead08c6001db9af
diff --git a/contrib/src/taglib/7036.patch b/contrib/src/taglib/7036.patch
new file mode 100644
index 0000000..4c8f98c
--- /dev/null
+++ b/contrib/src/taglib/7036.patch
@@ -0,0 +1,27 @@
+From 7cc36db7606dfc85d2e344d35c4e26fe8f698bdc Mon Sep 17 00:00:00 2001
+From: Jonathan Liu <[email protected]>
+Date: Sat, 6 Aug 2011 11:05:11 +0200
+Subject: [PATCH] Use the default frame factory when it's necessary to parse
@henry0312
henry0312 / build_gcc4.7.2.sh
Created October 19, 2012 17:28
Build GCC 4.7.2 on OS X Mountain Lion
#!/bin/sh
# GCC
## Prerequisites for GCC
## http://gcc.gnu.org/install/prerequisites.html
## Installing GCC: Configuration
## http://gcc.gnu.org/install/configure.html
# 初期設定
GCC_VER=4.7.2