Skip to content

Instantly share code, notes, and snippets.

diff -ruN nethack-3.6.1.orig/include/global.h nethack-3.6.1/include/global.h
--- nethack-3.6.1.orig/include/global.h 2018-04-27 21:07:22.000000000 +0900
+++ nethack-3.6.1/include/global.h 2019-01-29 20:33:51.671000000 +0900
@@ -243,13 +243,14 @@
#undef SAFERHANGUP
#endif
-#define Sprintf (void) sprintf
+#include "my_vsprintf.h"
+#define Sprintf (void) __sprintf
diff --git a/lisp/term/mac-win.el b/lisp/term/mac-win.el
index de87bc4ba7..c99ebdfcd0 100644
--- a/lisp/term/mac-win.el
+++ b/lisp/term/mac-win.el
@@ -996,6 +996,7 @@ mac-startup-options
(put 'core-event 'mac-apple-event-class "aevt") ; kCoreEventClass
(put 'internet-event 'mac-apple-event-class "GURL") ; kAEInternetEventClass
(put 'odb-editor-suite 'mac-apple-event-class "R*ch") ; kODBEditorSuite
+(put 'emp-event 'mac-apple-event-class "EMAx") ; kEmacsMacPortEventClass
diff -ruN nethack-3.6.1.orig/include/extern.h nethack-3.6.1/include/extern.h
--- nethack-3.6.1.orig/include/extern.h 2019-01-04 21:24:10.000000000 +0900
+++ nethack-3.6.1/include/extern.h 2019-01-04 21:53:50.000000000 +0900
@@ -2908,12 +2908,12 @@
E unsigned char *FDECL(e2sj, (unsigned char *));
E unsigned char *FDECL(sj2e, (unsigned char *));
E const char *FDECL(str2ic, (const char *));
-#ifdef SJIS_FILESYSTEM
E const char *FDECL(ic2str, (const char *));
-#endif
diff -ruN nethack-3.6.1.orig/include/extern.h nethack-3.6.1/include/extern.h
--- nethack-3.6.1.orig/include/extern.h 2018-10-13 07:37:46.000000000 +0900
+++ nethack-3.6.1/include/extern.h 2018-10-13 07:39:19.508054098 +0900
@@ -2908,12 +2908,12 @@
E unsigned char *FDECL(e2sj, (unsigned char *));
E unsigned char *FDECL(sj2e, (unsigned char *));
E const char *FDECL(str2ic, (const char *));
-#ifdef SJIS_FILESYSTEM
E const char *FDECL(ic2str, (const char *));
-#endif
diff -ruN nethack-3.6.1.orig/include/global.h nethack-3.6.1/include/global.h
--- nethack-3.6.1.orig/include/global.h 2018-04-27 21:07:22.000000000 +0900
+++ nethack-3.6.1/include/global.h 2018-06-25 01:42:06.122945724 +0900
@@ -243,13 +243,14 @@
#undef SAFERHANGUP
#endif
-#define Sprintf (void) sprintf
+#include "my_vsprintf.h"
+#define Sprintf (void) my_sprintf
/*
* Integer vsnprintf, et. al.
*
* Copyright (C) 2018 MURAMATSU Atsushi <amura@tomato.sakura.ne.jp>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,
* publish, distribute, sublicense, and/or sell copies of the Software,
--- emacs-26.1/src/nsimage.m.orig 2018-04-23 23:18:03.000000000 +0900
+++ emacs-26.1/src/nsimage.m 2018-06-13 00:11:25.342576409 +0900
@@ -259,7 +259,7 @@
c = *s++;
for (k = 0; i < w && k < 8; ++k, ++i)
{
- if (c & 0x80)
+ if (c & 0x01)
{
*rr++ = fgr;
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
import requests
import sys
import argparse
from datetime import datetime
parser = argparse.ArgumentParser()
parser.add_argument(
/*
* Verilog Simulator checker by predefined macro.
*
* Copyright (C) 2017 MURAMATSU Atsushi <amura@tomato.sakura.ne.jp>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,
* publish, distribute, sublicense, and/or sell copies of the Software,
diff -ruN emh-1.14.1-orig/EMH-ELS emh-1.14.1/EMH-ELS
--- emh-1.14.1-orig/EMH-ELS 2000-12-20 17:53:25.000000000 +0900
+++ emh-1.14.1/EMH-ELS 2017-04-24 23:40:12.000000000 +0900
@@ -6,6 +6,6 @@
;; (require 'mh-e)
-(setq emh-modules '(emh emh-def emh-face emh-comp emh-setup))
+(setq emh-modules '(emh emh-def emh-face emh-comp emh-setup mh-e-hack))