aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Antipov2013-09-11 20:03:42 +0400
committerDmitry Antipov2013-09-11 20:03:42 +0400
commit8d2db8be5bccf0d772e0690e612a1f499be4cb48 (patch)
treeab8b4a127b6b2a703265f5b0fe675c151dbefcb3
parent656bd483888ec1620eafdb4037f65af8fe0276ef (diff)
downloademacs-8d2db8be5bccf0d772e0690e612a1f499be4cb48.tar.gz
emacs-8d2db8be5bccf0d772e0690e612a1f499be4cb48.zip
* nsterm.m (syms_of_nsterm): Use Qns.
* w32fns.c (Fx_open_connection): Remove old '#if 0' code. * w32term.c (w32_create_terminal, syms_of_w32term): Use Qw32. * xfns.c (x_display_info_for_name, Fx_open_connection): Remove old '#if 0' code. (syms_of_xfns): Use Qx.
-rw-r--r--src/ChangeLog6
-rw-r--r--src/nsterm.m4
-rw-r--r--src/w32fns.c5
-rw-r--r--src/w32term.c5
-rw-r--r--src/xfns.c13
5 files changed, 13 insertions, 20 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index dda202af89f..e3fd6e96ec2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,11 @@
12013-09-11 Dmitry Antipov <dmantipov@yandex.ru> 12013-09-11 Dmitry Antipov <dmantipov@yandex.ru>
2 2
3 * nsterm.m (syms_of_nsterm): Use Qns.
4 * w32fns.c (Fx_open_connection): Remove old '#if 0' code.
5 * w32term.c (w32_create_terminal, syms_of_w32term): Use Qw32.
6 * xfns.c (x_display_info_for_name, Fx_open_connection):
7 Remove old '#if 0' code.
8 (syms_of_xfns): Use Qx.
3 * termhooks.h (fullscreen_hook): Remove the leftover. 9 * termhooks.h (fullscreen_hook): Remove the leftover.
4 (struct terminal): Fix typo in comment. 10 (struct terminal): Fix typo in comment.
5 11
diff --git a/src/nsterm.m b/src/nsterm.m
index 38d76e9389c..59627a38087 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -7433,6 +7433,6 @@ variable `x-use-underline-position-properties', which is usually at the
7433baseline level. The default value is nil. */); 7433baseline level. The default value is nil. */);
7434 x_underline_at_descent_line = 0; 7434 x_underline_at_descent_line = 0;
7435 7435
7436 /* Tell emacs about this window system. */ 7436 /* Tell Emacs about this window system. */
7437 Fprovide (intern ("ns"), Qnil); 7437 Fprovide (Qns, Qnil);
7438} 7438}
diff --git a/src/w32fns.c b/src/w32fns.c
index 58c63d959ef..a8b444e0409 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -5201,11 +5201,6 @@ terminate Emacs if we can't open the connection.
5201 if (! NILP (xrm_string)) 5201 if (! NILP (xrm_string))
5202 CHECK_STRING (xrm_string); 5202 CHECK_STRING (xrm_string);
5203 5203
5204#if 0
5205 if (! EQ (Vwindow_system, intern ("w32")))
5206 error ("Not using Microsoft Windows");
5207#endif
5208
5209 /* Allow color mapping to be defined externally; first look in user's 5204 /* Allow color mapping to be defined externally; first look in user's
5210 HOME directory, then in Emacs etc dir for a file called rgb.txt. */ 5205 HOME directory, then in Emacs etc dir for a file called rgb.txt. */
5211 { 5206 {
diff --git a/src/w32term.c b/src/w32term.c
index 681f70b5888..d47509e4ece 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -6338,7 +6338,7 @@ w32_create_terminal (struct w32_display_info *dpyinfo)
6338 terminal like X does. */ 6338 terminal like X does. */
6339 terminal->kboard = xmalloc (sizeof (KBOARD)); 6339 terminal->kboard = xmalloc (sizeof (KBOARD));
6340 init_kboard (terminal->kboard); 6340 init_kboard (terminal->kboard);
6341 kset_window_system (terminal->kboard, intern ("w32")); 6341 kset_window_system (terminal->kboard, Qw32);
6342 terminal->kboard->next_kboard = all_kboards; 6342 terminal->kboard->next_kboard = all_kboards;
6343 all_kboards = terminal->kboard; 6343 all_kboards = terminal->kboard;
6344 /* Don't let the initial kboard remain current longer than necessary. 6344 /* Don't let the initial kboard remain current longer than necessary.
@@ -6691,5 +6691,6 @@ With MS Windows or Nextstep, the value is t. */);
6691 staticpro (&last_mouse_motion_frame); 6691 staticpro (&last_mouse_motion_frame);
6692 last_mouse_motion_frame = Qnil; 6692 last_mouse_motion_frame = Qnil;
6693 6693
6694 Fprovide (intern_c_string ("w32"), Qnil); 6694 /* Tell Emacs about this window system. */
6695 Fprovide (Qw32, Qnil);
6695} 6696}
diff --git a/src/xfns.c b/src/xfns.c
index 1626e2177cb..9b3bf79c088 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -4434,11 +4434,6 @@ x_display_info_for_name (Lisp_Object name)
4434 4434
4435 CHECK_STRING (name); 4435 CHECK_STRING (name);
4436 4436
4437#if 0
4438 if (! EQ (Vinitial_window_system, intern ("x")))
4439 error ("Not using X Windows"); /* That doesn't stop us anymore. */
4440#endif
4441
4442 for (dpyinfo = x_display_list, names = x_display_name_list; 4437 for (dpyinfo = x_display_list, names = x_display_name_list;
4443 dpyinfo; 4438 dpyinfo;
4444 dpyinfo = dpyinfo->next, names = XCDR (names)) 4439 dpyinfo = dpyinfo->next, names = XCDR (names))
@@ -4482,11 +4477,6 @@ terminate Emacs if we can't open the connection.
4482 if (! NILP (xrm_string)) 4477 if (! NILP (xrm_string))
4483 CHECK_STRING (xrm_string); 4478 CHECK_STRING (xrm_string);
4484 4479
4485#if 0
4486 if (! EQ (Vinitial_window_system, intern ("x")))
4487 error ("Not using X Windows"); /* That doesn't stop us anymore. */
4488#endif
4489
4490 xrm_option = NILP (xrm_string) ? 0 : SSDATA (xrm_string); 4480 xrm_option = NILP (xrm_string) ? 0 : SSDATA (xrm_string);
4491 4481
4492 validate_x_resource_name (); 4482 validate_x_resource_name ();
@@ -6299,7 +6289,8 @@ Otherwise use Emacs own tooltip implementation.
6299When using Gtk+ tooltips, the tooltip face is not used. */); 6289When using Gtk+ tooltips, the tooltip face is not used. */);
6300 x_gtk_use_system_tooltips = 1; 6290 x_gtk_use_system_tooltips = 1;
6301 6291
6302 Fprovide (intern_c_string ("x"), Qnil); 6292 /* Tell Emacs about this window system. */
6293 Fprovide (Qx, Qnil);
6303 6294
6304#ifdef USE_X_TOOLKIT 6295#ifdef USE_X_TOOLKIT
6305 Fprovide (intern_c_string ("x-toolkit"), Qnil); 6296 Fprovide (intern_c_string ("x-toolkit"), Qnil);