aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1994-03-25 00:41:56 +0000
committerKarl Heuer1994-03-25 00:41:56 +0000
commit9838119052cfea1f831bb700c2f7ca90ce7f9817 (patch)
treefee0d8822192a3bd364b7f8d622bc8180ec3eff5 /src
parent0b67772de2b31e04f3cb8822796e4e10384424b9 (diff)
downloademacs-9838119052cfea1f831bb700c2f7ca90ce7f9817.tar.gz
emacs-9838119052cfea1f831bb700c2f7ca90ce7f9817.zip
(x_set_frame_parameters, x_get_arg, x_window, Fx_create_frame,
Fx_create_frame): Use assignment, not initialization.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/xfns.c b/src/xfns.c
index e5a71fdd666..ad311950dfa 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -460,9 +460,10 @@ x_set_frame_parameters (f, alist)
460 left = val; 460 left = val;
461 else 461 else
462 { 462 {
463 register Lisp_Object param_index = Fget (prop, Qx_frame_parameter); 463 register Lisp_Object param_index, old_value;
464 register Lisp_Object old_value = get_frame_param (f, prop);
465 464
465 param_index = Fget (prop, Qx_frame_parameter);
466 old_value = get_frame_param (f, prop);
466 store_frame_param (f, prop, val); 467 store_frame_param (f, prop, val);
467 if (XTYPE (param_index) == Lisp_Int 468 if (XTYPE (param_index) == Lisp_Int
468 && XINT (param_index) >= 0 469 && XINT (param_index) >= 0
@@ -1432,7 +1433,8 @@ x_get_arg (alist, param, attribute, class, type)
1432 /* As a special case, we map the values `true' and `on' 1433 /* As a special case, we map the values `true' and `on'
1433 to Qt, and `false' and `off' to Qnil. */ 1434 to Qt, and `false' and `off' to Qnil. */
1434 { 1435 {
1435 Lisp_Object lower = Fdowncase (tem); 1436 Lisp_Object lower;
1437 lower = Fdowncase (tem);
1436 if (!strcmp (XSTRING (tem)->data, "on") 1438 if (!strcmp (XSTRING (tem)->data, "on")
1437 || !strcmp (XSTRING (tem)->data, "true")) 1439 || !strcmp (XSTRING (tem)->data, "true"))
1438 return Qt; 1440 return Qt;
@@ -1833,11 +1835,12 @@ x_window (f)
1833 place where that assumption isn't correct; f->name is set, but 1835 place where that assumption isn't correct; f->name is set, but
1834 the X server hasn't been told. */ 1836 the X server hasn't been told. */
1835 { 1837 {
1836 Lisp_Object name = f->name; 1838 Lisp_Object name;
1837 int explicit = f->explicit_name; 1839 int explicit = f->explicit_name;
1838 1840
1839 f->name = Qnil;
1840 f->explicit_name = 0; 1841 f->explicit_name = 0;
1842 name = f->name;
1843 f->name = Qnil;
1841 x_set_name (f, name, explicit); 1844 x_set_name (f, name, explicit);
1842 } 1845 }
1843 1846
@@ -2144,8 +2147,9 @@ be shared by the new frame.")
2144 /* Make the window appear on the frame and enable display, 2147 /* Make the window appear on the frame and enable display,
2145 unless the caller says not to. */ 2148 unless the caller says not to. */
2146 { 2149 {
2147 Lisp_Object visibility = x_get_arg (parms, Qvisibility, 0, 0, symbol); 2150 Lisp_Object visibility;
2148 2151
2152 visibility = x_get_arg (parms, Qvisibility, 0, 0, symbol);
2149 if (EQ (visibility, Qunbound)) 2153 if (EQ (visibility, Qunbound))
2150 visibility = Qt; 2154 visibility = Qt;
2151 2155
@@ -2384,8 +2388,9 @@ be shared by the new frame.")
2384 2388
2385 /* Make the window appear on the frame and enable display. */ 2389 /* Make the window appear on the frame and enable display. */
2386 { 2390 {
2387 Lisp_Object visibility = x_get_arg (parms, Qvisibility, 0, 0, symbol); 2391 Lisp_Object visibility;
2388 2392
2393 visibility = x_get_arg (parms, Qvisibility, 0, 0, symbol);
2389 if (EQ (visibility, Qunbound)) 2394 if (EQ (visibility, Qunbound))
2390 visibility = Qt; 2395 visibility = Qt;
2391 2396