diff options
| author | Adrian Robert | 2008-07-28 01:41:57 +0000 |
|---|---|---|
| committer | Adrian Robert | 2008-07-28 01:41:57 +0000 |
| commit | bd6ce2baf7e701efdb42df45cf25e1789e9d66f4 (patch) | |
| tree | 2f7021e1b364d067bf726a5db662b29e5c7ad8b5 /src/nsfns.m | |
| parent | 0eafa5a7046ee3f4238a0127aeb8b3d783a8dc30 (diff) | |
| download | emacs-bd6ce2baf7e701efdb42df45cf25e1789e9d66f4.tar.gz emacs-bd6ce2baf7e701efdb42df45cf25e1789e9d66f4.zip | |
code cleanups in NS port
Diffstat (limited to 'src/nsfns.m')
| -rw-r--r-- | src/nsfns.m | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/nsfns.m b/src/nsfns.m index 493885f3531..40e8791c318 100644 --- a/src/nsfns.m +++ b/src/nsfns.m | |||
| @@ -78,7 +78,6 @@ extern Lisp_Object Qheight, Qminibuffer, Qname, Qonly, Qwidth; | |||
| 78 | extern Lisp_Object Qunsplittable, Qmenu_bar_lines, Qbuffer_predicate, Qtitle; | 78 | extern Lisp_Object Qunsplittable, Qmenu_bar_lines, Qbuffer_predicate, Qtitle; |
| 79 | 79 | ||
| 80 | Lisp_Object Qnone; | 80 | Lisp_Object Qnone; |
| 81 | Lisp_Object Qns_frame_parameter; | ||
| 82 | Lisp_Object Qbuffered; | 81 | Lisp_Object Qbuffered; |
| 83 | Lisp_Object Qfontsize; | 82 | Lisp_Object Qfontsize; |
| 84 | 83 | ||
| @@ -1057,6 +1056,10 @@ be shared by the new frame. */) | |||
| 1057 | 1056 | ||
| 1058 | check_ns (); | 1057 | check_ns (); |
| 1059 | 1058 | ||
| 1059 | /* Seems a little strange, but other terms do it. Perhaps the code below | ||
| 1060 | is modifying something? */ | ||
| 1061 | parms = Fcopy_alist (parms); | ||
| 1062 | |||
| 1060 | display = x_get_arg (dpyinfo, parms, Qterminal, 0, 0, RES_TYPE_STRING); | 1063 | display = x_get_arg (dpyinfo, parms, Qterminal, 0, 0, RES_TYPE_STRING); |
| 1061 | if (EQ (display, Qunbound)) | 1064 | if (EQ (display, Qunbound)) |
| 1062 | display = Qnil; | 1065 | display = Qnil; |
| @@ -1075,6 +1078,8 @@ be shared by the new frame. */) | |||
| 1075 | 1078 | ||
| 1076 | if (STRINGP (name)) | 1079 | if (STRINGP (name)) |
| 1077 | Vx_resource_name = name; | 1080 | Vx_resource_name = name; |
| 1081 | else | ||
| 1082 | Vx_resource_name = Vinvocation_name; | ||
| 1078 | 1083 | ||
| 1079 | parent = x_get_arg (dpyinfo, parms, Qparent_id, 0, 0, RES_TYPE_NUMBER); | 1084 | parent = x_get_arg (dpyinfo, parms, Qparent_id, 0, 0, RES_TYPE_NUMBER); |
| 1080 | if (EQ (parent, Qunbound)) | 1085 | if (EQ (parent, Qunbound)) |
| @@ -1136,7 +1141,7 @@ be shared by the new frame. */) | |||
| 1136 | 1141 | ||
| 1137 | f->icon_name = x_get_arg (dpyinfo, parms, Qicon_name, "iconName", "Title", | 1142 | f->icon_name = x_get_arg (dpyinfo, parms, Qicon_name, "iconName", "Title", |
| 1138 | RES_TYPE_STRING); | 1143 | RES_TYPE_STRING); |
| 1139 | if (EQ (f->icon_name, Qunbound) || (XTYPE (f->icon_name) != Lisp_String)) | 1144 | if (! STRINGP (f->icon_name)) |
| 1140 | f->icon_name = Qnil; | 1145 | f->icon_name = Qnil; |
| 1141 | 1146 | ||
| 1142 | FRAME_NS_DISPLAY_INFO (f) = dpyinfo; | 1147 | FRAME_NS_DISPLAY_INFO (f) = dpyinfo; |
| @@ -1275,18 +1280,18 @@ be shared by the new frame. */) | |||
| 1275 | Vframe_list = Fcons (frame, Vframe_list); | 1280 | Vframe_list = Fcons (frame, Vframe_list); |
| 1276 | /*FRAME_NS_DISPLAY_INFO (f)->reference_count++; */ | 1281 | /*FRAME_NS_DISPLAY_INFO (f)->reference_count++; */ |
| 1277 | 1282 | ||
| 1278 | x_default_parameter (f, parms, Qcursor_type, Qbox, "cursorType", "CursorType", | ||
| 1279 | RES_TYPE_SYMBOL); | ||
| 1280 | x_default_parameter (f, parms, Qscroll_bar_width, Qnil, "scrollBarWidth", | ||
| 1281 | "ScrollBarWidth", RES_TYPE_NUMBER); | ||
| 1282 | x_default_parameter (f, parms, Qicon_type, Qnil, "bitmapIcon", "BitmapIcon", | 1283 | x_default_parameter (f, parms, Qicon_type, Qnil, "bitmapIcon", "BitmapIcon", |
| 1283 | RES_TYPE_SYMBOL); | 1284 | RES_TYPE_SYMBOL); |
| 1284 | x_default_parameter (f, parms, Qauto_raise, Qnil, "autoRaise", "AutoRaise", | 1285 | x_default_parameter (f, parms, Qauto_raise, Qnil, "autoRaise", "AutoRaiseLower", |
| 1285 | RES_TYPE_BOOLEAN); | 1286 | RES_TYPE_BOOLEAN); |
| 1286 | x_default_parameter (f, parms, Qauto_lower, Qnil, "autoLower", "AutoLower", | 1287 | x_default_parameter (f, parms, Qauto_lower, Qnil, "autoLower", "AutoLower", |
| 1287 | RES_TYPE_BOOLEAN); | 1288 | RES_TYPE_BOOLEAN); |
| 1288 | x_default_parameter (f, parms, Qbuffered, Qt, "buffered", "Buffered", | 1289 | x_default_parameter (f, parms, Qcursor_type, Qbox, "cursorType", "CursorType", |
| 1289 | RES_TYPE_BOOLEAN); | 1290 | RES_TYPE_SYMBOL); |
| 1291 | x_default_parameter (f, parms, Qscroll_bar_width, Qnil, "scrollBarWidth", | ||
| 1292 | "ScrollBarWidth", RES_TYPE_NUMBER); | ||
| 1293 | x_default_parameter (f, parms, Qalpha, Qt, "alpha", "Alpha", | ||
| 1294 | RES_TYPE_NUMBER); | ||
| 1290 | 1295 | ||
| 1291 | width = FRAME_COLS (f); | 1296 | width = FRAME_COLS (f); |
| 1292 | height = FRAME_LINES (f); | 1297 | height = FRAME_LINES (f); |
| @@ -2603,8 +2608,6 @@ syms_of_nsfns () | |||
| 2603 | { | 2608 | { |
| 2604 | int i; | 2609 | int i; |
| 2605 | 2610 | ||
| 2606 | Qns_frame_parameter = intern ("ns-frame-parameter"); | ||
| 2607 | staticpro (&Qns_frame_parameter); | ||
| 2608 | Qnone = intern ("none"); | 2611 | Qnone = intern ("none"); |
| 2609 | staticpro (&Qnone); | 2612 | staticpro (&Qnone); |
| 2610 | Qbuffered = intern ("bufferd"); | 2613 | Qbuffered = intern ("bufferd"); |