Skip to content

Instantly share code, notes, and snippets.

@false-git
Created June 17, 2011 01:20
Show Gist options
  • Save false-git/1030680 to your computer and use it in GitHub Desktop.
Save false-git/1030680 to your computer and use it in GitHub Desktop.
emacs23.3でカーソルキーを使うと位置がずれる問題に対応するpatch
--- src/coding.c.orig 2011-01-09 02:45:14.000000000 +0900
+++ src/coding.c 2011-06-17 09:45:43.000000000 +0900
@@ -3867,8 +3867,14 @@
else
charset = CHARSET_FROM_ID (charset_id_3);
ONE_MORE_BYTE (c1);
- if (c1 < 0x20 || (c1 >= 0x80 && c1 < 0xA0))
- goto invalid_code;
+ if (CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_SEVEN_BITS) {
+ if (c1 < 0x20 || c1 >= 0x80)
+ goto invalid_code;
+ }
+ else {
+ if (c1 < 0xA0)
+ goto invalid_code;
+ }
break;
case '0': case '2': case '3': case '4': /* start composition */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment