Skip to content

Instantly share code, notes, and snippets.

rzl24ozi

Block or report user

Report or block rzl24ozi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rzl24ozi
rzl24ozi / emacs-24.5-disable-w32-ime.diff
Last active Aug 29, 2015
add disable-w32-ime function to emacs with Windows GUI.
View emacs-24.5-disable-w32-ime.diff
--- ./src/w32fns.c.orig 2015-04-02 16:23:06.000000000 +0900
+++ ./src/w32fns.c 2015-04-11 07:30:51.510841300 +0900
@@ -89,6 +89,8 @@
extern const char *map_w32_filename (const char *, const char **);
extern char * w32_strerror (int error_no);
+static int ime_disabled = 0;
+
/* If non-NULL, a handle to a frame where to display the hourglass cursor. */
static HWND hourglass_hwnd = NULL;
@rzl24ozi
rzl24ozi / emacs-24.5-mingw-imagemagick.diff
Last active Aug 29, 2015
add imagemagick support to Windows version emacs.
View emacs-24.5-mingw-imagemagick.diff
--- ./configure.ac.orig 2015-04-02 16:23:06.000000000 +0900
+++ ./configure.ac 2015-04-11 07:29:31.587123600 +0900
@@ -2269,9 +2269,13 @@
if test $HAVE_IMAGEMAGICK = yes; then
AC_DEFINE(HAVE_IMAGEMAGICK, 1, [Define to 1 if using imagemagick.])
+ OLD_CFLAGS=$CFLAGS
+ OLD_LIBS=$LIBS
CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
LIBS="$IMAGEMAGICK_LIBS $LIBS"
@rzl24ozi
rzl24ozi / emacs-24.5-w32-ime.diff
Last active Aug 29, 2015
add w32-ime support to emacs with Windows GUI.
View emacs-24.5-w32-ime.diff
--- ./configure.ac.orig 2015-04-02 16:23:06.000000000 +0900
+++ ./configure.ac 2015-04-11 07:28:36.226147400 +0900
@@ -263,6 +263,10 @@
OPTION_DEFAULT_OFF([ns],[use NeXTstep (Cocoa or GNUstep) windowing system])
OPTION_DEFAULT_OFF([w32], [use native MS Windows GUI in a Cygwin build])
+OPTION_DEFAULT_ON([w32-ime], [don't compile with W32-IME support])
+OPTION_DEFAULT_ON([reconversion], [don't compile with RECONVERSION support])
+OPTION_DEFAULT_ON([documentfeed], [don't compile with DOCUMENTFEED support])
+
@rzl24ozi
rzl24ozi / README.24.5.txt
Last active Sep 18, 2016
about patches and how to build emacs on Windows. (Japanese)
View README.24.5.txt
※以下は emacs-25 リリース前のものなので現在では内容が古くなっているかもしれません。
emacs-25(以降)の README.txt も参照してみてください。
■各パッチについて
emacs-24.5-*.diff は emacs-24.5 に対するパッチです。
□emacs-24.5-x64.diff (https://gist.github.com/rzl24ozi/68c29ac4fe64f1aa8887)
GNU emacs(x64) (http://hp.vector.co.jp/authors/VA052357/emacs.html)
に同梱のパッチ
(GNU emacs(x64) インストール後に C:\Program Files\GNU\Emacs23\distfiles\
@rzl24ozi
rzl24ozi / emacs-24.5-cygwin-rsvg.diff
Last active Aug 29, 2015
add svg support to cygwin emacs-w32
View emacs-24.5-cygwin-rsvg.diff
--- ./configure.ac.orig 2015-04-02 16:23:06.000000000 +0900
+++ ./configure.ac 2015-04-11 07:31:33.786673500 +0900
@@ -2236,7 +2236,7 @@
### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
HAVE_RSVG=no
-if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${opsys}" = "mingw32"; then
+if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${HAVE_W32}" = "yes"; then
if test "${with_rsvg}" != "no"; then
RSVG_REQUIRED=2.11.0
@rzl24ozi
rzl24ozi / emacs-24.5-image-fit.diff
Last active Aug 29, 2015
add image fit option to emacs
View emacs-24.5-image-fit.diff
--- ./lisp/image.el.orig 2015-02-02 02:27:17.000000000 +0900
+++ ./lisp/image.el 2015-04-11 07:30:10.847912500 +0900
@@ -126,6 +126,15 @@
:type '(repeat (choice directory variable))
:initialize 'custom-initialize-delay)
+;;;###autoload
+(defcustom image-fit-option-alist nil
+ "Alist of (IMAGE-TYPE . FIT-OPTION) pairs used by image loader to specify image size.
+the FIT-OPTION is one of 'never, 'frame, 'width-or-height, 'width or 'height.
@rzl24ozi
rzl24ozi / emacs-24.5-cmigemo.diff
Last active Aug 29, 2015
add cmigemo support to emacs
View emacs-24.5-cmigemo.diff
--- ./configure.ac.orig 2015-04-02 16:23:06.000000000 +0900
+++ ./configure.ac 2015-04-11 07:32:09.938337400 +0900
@@ -271,6 +271,8 @@
OPTION_DEFAULT_ON([gnutls],[don't use -lgnutls for SSL/TLS support])
OPTION_DEFAULT_ON([zlib],[don't compile with zlib decompression support])
+OPTION_DEFAULT_ON([cmigemo], [don't compile with CMIGEMO support])
+
AC_ARG_WITH([file-notification],[AS_HELP_STRING([--with-file-notification=LIB],
[use a file notification library (LIB one of: yes, gfile, inotify, w32, no)])],
@rzl24ozi
rzl24ozi / emacs-24.5-x64.diff
Last active Aug 29, 2015
add w32-ime support to emacs with Windows GUI and various modifications
View emacs-24.5-x64.diff
--- ./configure.ac.orig 2015-04-02 16:23:06.000000000 +0900
+++ ./configure.ac 2015-04-11 07:27:30.430112300 +0900
@@ -263,6 +263,12 @@
OPTION_DEFAULT_OFF([ns],[use NeXTstep (Cocoa or GNUstep) windowing system])
OPTION_DEFAULT_OFF([w32], [use native MS Windows GUI in a Cygwin build])
+OPTION_DEFAULT_ON([w32-ime], [don't compile with W32-IME support])
+OPTION_DEFAULT_ON([reconversion], [don't compile with RECONVERSION support])
+OPTION_DEFAULT_ON([documentfeed], [don't compile with DOCUMENTFEED support])
+
@rzl24ozi
rzl24ozi / emacs-master-diffs
Last active Apr 18, 2018
patches for emacs master branch
View emacs-master-diffs
emacs master branch へのパッチ
.tar.xz を展開
*-w32-ime.diff : IME 関連
*-cmigemo.diff : cmigemo 組み込み
cmigemo.el を migemo.el を require して変更が必要な関数だけ変更するようにしてみました。
(変更点が分かりやすくなるかと思いましたがあまりかわらんか^^;)
なので migemo.el を melpa package から、あるいは 手動で load-path の通っている場所に置くなどして
インストールしておく必要があるのでご注意。
@rzl24ozi
rzl24ozi / emacs-24.5-ImmDisableIME.diff
Last active Aug 29, 2015
disable w32-ime by using ImmDisableIME()
View emacs-24.5-ImmDisableIME.diff
--- ./src/w32fns.c.orig 2015-04-02 16:23:06.000000000 +0900
+++ ./src/w32fns.c 2015-04-25 20:00:47.429173300 +0900
@@ -8664,6 +8664,9 @@
{
HMODULE imm32_lib = GetModuleHandle ("imm32.dll");
+ BOOL (WINAPI * disable_ime_fn) (DWORD) = (BOOL (WINAPI *) (DWORD))
+ GetProcAddress (imm32_lib, "ImmDisableIME");
+ if (disable_ime_fn) disable_ime_fn (-1);
get_composition_string_fn = (ImmGetCompositionString_Proc)
You can’t perform that action at this time.