Skip to content

Instantly share code, notes, and snippets.

@rzl24ozi
rzl24ozi / emacs-24.5-image-fit.diff
Last active August 29, 2015 14:09
add image fit option to emacs
--- ./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-cygwin-rsvg.diff
Last active August 29, 2015 14:09
add svg support to cygwin emacs-w32
--- ./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 / README.24.5.txt
Last active September 18, 2016 11:15
about patches and how to build emacs on Windows. (Japanese)
※以下は 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-w32-ime.diff
Last active August 29, 2015 14:01
add w32-ime support to emacs with Windows GUI.
--- ./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 / emacs-24.5-mingw-imagemagick.diff
Last active August 29, 2015 14:01
add imagemagick support to Windows version emacs.
--- ./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-disable-w32-ime.diff
Last active August 29, 2015 14:01
add disable-w32-ime function to emacs with Windows GUI.
--- ./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;