aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog10
-rw-r--r--src/nsfns.m25
-rw-r--r--src/nsselect.m19
-rw-r--r--src/nsterm.m2
4 files changed, 24 insertions, 32 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 49c13b4fdfe..f60633e5183 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,15 @@
12008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com> 12008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2 2
3 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
4 Set Vx_resource_name to a fallback. Replace read of 'buffered'
5 parameter with read of 'alpha' one.
6 (Qns_frame_parameter): Remove.
7 * nsselection.m (selection-coding-system)
8 (next-selection-coding-system, Vselection_coding_system)
9 (Vnext_selection_coding_system): Drop.
10
112008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12
3 * nsfns.m (do-applescript, do_applescript): Rename to 13 * nsfns.m (do-applescript, do_applescript): Rename to
4 ns-do-applescript, ns_do_applescript, and move within file. 14 ns-do-applescript, ns_do_applescript, and move within file.
5 15
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;
78extern Lisp_Object Qunsplittable, Qmenu_bar_lines, Qbuffer_predicate, Qtitle; 78extern Lisp_Object Qunsplittable, Qmenu_bar_lines, Qbuffer_predicate, Qtitle;
79 79
80Lisp_Object Qnone; 80Lisp_Object Qnone;
81Lisp_Object Qns_frame_parameter;
82Lisp_Object Qbuffered; 81Lisp_Object Qbuffered;
83Lisp_Object Qfontsize; 82Lisp_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");
diff --git a/src/nsselect.m b/src/nsselect.m
index 35a9f43634a..88f8b262507 100644
--- a/src/nsselect.m
+++ b/src/nsselect.m
@@ -40,10 +40,6 @@ static Lisp_Object Vselection_alist;
40static Lisp_Object Vselection_converter_alist; 40static Lisp_Object Vselection_converter_alist;
41 41
42/* 23: new */ 42/* 23: new */
43/* Coding system for communicating with other programs. */
44static Lisp_Object Vselection_coding_system;
45/* Coding system for the next communicating with other programs. */
46static Lisp_Object Vnext_selection_coding_system;
47static Lisp_Object Qforeign_selection; 43static Lisp_Object Qforeign_selection;
48 44
49NSString *NXSecondaryPboard; 45NSString *NXSecondaryPboard;
@@ -608,21 +604,6 @@ The functions are called with one argument, the selection type\n\
608 Vns_lost_selection_hooks = Qnil; 604 Vns_lost_selection_hooks = Qnil;
609 605
610/* 23: { */ 606/* 23: { */
611 DEFVAR_LISP ("selection-coding-system", &Vselection_coding_system,
612 doc: /* Coding system for communicating with other programs.
613When sending or receiving text via cut_buffer, selection, and clipboard,
614the text is encoded or decoded by this coding system.
615The default value is determined by the system script code. */);
616 Vselection_coding_system = Qnil;
617
618 DEFVAR_LISP ("next-selection-coding-system", &Vnext_selection_coding_system,
619 doc: /* Coding system for the next communication with other programs.
620Usually, `selection-coding-system' is used for communicating with
621other programs. But, if this variable is set, it is used for the
622next communication only. After the communication, this variable is
623set to nil. */);
624 Vnext_selection_coding_system = Qnil;
625
626 Qforeign_selection = intern ("foreign-selection"); 607 Qforeign_selection = intern ("foreign-selection");
627 staticpro (&Qforeign_selection); 608 staticpro (&Qforeign_selection);
628/* } */ 609/* } */
diff --git a/src/nsterm.m b/src/nsterm.m
index ecf44894371..2f8348a9b0f 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -4347,7 +4347,6 @@ extern void update_window_cursor (struct window *w, int on);
4347 if (!emacs_event) 4347 if (!emacs_event)
4348 return; 4348 return;
4349 4349
4350/*#if defined (COCOA_EXPERIMENTAL_CTRL_G) */
4351 if (![[self window] isKeyWindow]) 4350 if (![[self window] isKeyWindow])
4352 { 4351 {
4353 /* XXX: Using NO_SOCK_SIGIO like Carbon causes a condition in which, 4352 /* XXX: Using NO_SOCK_SIGIO like Carbon causes a condition in which,
@@ -4361,7 +4360,6 @@ extern void update_window_cursor (struct window *w, int on);
4361 [[(EmacsView *)[theEvent window] delegate] keyDown: theEvent]; 4360 [[(EmacsView *)[theEvent window] delegate] keyDown: theEvent];
4362 return; 4361 return;
4363 } 4362 }
4364/*#endif */
4365 4363
4366 if (nsEvArray == nil) 4364 if (nsEvArray == nil)
4367 nsEvArray = [[NSMutableArray alloc] initWithCapacity: 1]; 4365 nsEvArray = [[NSMutableArray alloc] initWithCapacity: 1];