Last active
November 30, 2019 10:03
-
-
Save takaxp/efe589b4d02ef740528b747f69ccabbd to your computer and use it in GitHub Desktop.
ns-private patch for Emacs 27 (see also https://qiita.com/takaxp/items/e07bb286d80fa9dd8e05)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --exclude .git -crN emacs-27/src/nsfns.m emacs/src/nsfns.m | |
*** emacs-27/src/nsfns.m 2019-02-09 13:11:12.000000000 +0900 | |
--- emacs/src/nsfns.m 2019-02-09 13:18:14.000000000 +0900 | |
*************** | |
*** 1185,1191 **** | |
gui_default_parameter (f, parms, Qborder_width, make_fixnum (0), | |
"borderwidth", "BorderWidth", RES_TYPE_NUMBER); | |
! gui_default_parameter (f, parms, Qinternal_border_width, make_fixnum (2), | |
"internalBorderWidth", "InternalBorderWidth", | |
RES_TYPE_NUMBER); | |
gui_default_parameter (f, parms, Qright_divider_width, make_fixnum (0), | |
--- 1185,1191 ---- | |
gui_default_parameter (f, parms, Qborder_width, make_fixnum (0), | |
"borderwidth", "BorderWidth", RES_TYPE_NUMBER); | |
! gui_default_parameter (f, parms, Qinternal_border_width, make_fixnum (0), | |
"internalBorderWidth", "InternalBorderWidth", | |
RES_TYPE_NUMBER); | |
gui_default_parameter (f, parms, Qright_divider_width, make_fixnum (0), | |
*************** | |
*** 1201,1206 **** | |
--- 1201,1207 ---- | |
#else | |
= Qright; | |
#endif | |
+ spos = Qnil; | |
gui_default_parameter (f, parms, Qvertical_scroll_bars, spos, | |
"verticalScrollBars", "VerticalScrollBars", | |
RES_TYPE_SYMBOL); | |
diff --exclude .git -crN emacs-27/src/nsterm.m emacs/src/nsterm.m | |
*** emacs-27/src/nsterm.m 2019-02-09 13:11:12.000000000 +0900 | |
--- emacs/src/nsterm.m 2019-02-09 13:12:06.000000000 +0900 | |
*************** | |
*** 7154,7163 **** | |
*pos = '\0'; | |
old_title = t; | |
} | |
! size_title = xmalloc (strlen (old_title) + 40); | |
! esprintf (size_title, "%s — (%d x %d)", old_title, cols, rows); | |
! [window setTitle: [NSString stringWithUTF8String: size_title]]; | |
! xfree (size_title); | |
} | |
} | |
#endif /* NS_IMPL_COCOA */ | |
--- 7154,7163 ---- | |
*pos = '\0'; | |
old_title = t; | |
} | |
! // size_title = xmalloc (strlen (old_title) + 40); | |
! // esprintf (size_title, "%s — (%d x %d)", old_title, cols, rows); | |
! // [window setTitle: [NSString stringWithUTF8String: size_title]]; | |
! // xfree (size_title); | |
} | |
} | |
#endif /* NS_IMPL_COCOA */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment