aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDmitry Antipov2012-08-06 13:28:17 +0400
committerDmitry Antipov2012-08-06 13:28:17 +0400
commit71688bd7f9169c12ea8be54e084470f19d44ce44 (patch)
tree03c1f48cbab160cf5f045c610a3dd71daec9ed6a /src
parentf99bac932bf883dbd4b91dc5ba21c77a23840be7 (diff)
downloademacs-71688bd7f9169c12ea8be54e084470f19d44ce44.tar.gz
emacs-71688bd7f9169c12ea8be54e084470f19d44ce44.zip
Fix Windows build errors introduced after converting to FGET and FSET.
* w32term.c (x_frame_rehighlight, x_scroll_bar_create): (w32_condemn_scroll_bars, w32_redeem_scroll_bar): (w32_judge_scroll_bars): Change to use FSET. Reported by Andy Moreton <andrewjmoreton@gmail.com>.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog8
-rw-r--r--src/w32term.c18
2 files changed, 19 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 497ba67f106..d216ecc4e4b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,13 @@
12012-08-06 Dmitry Antipov <dmantipov@yandex.ru> 12012-08-06 Dmitry Antipov <dmantipov@yandex.ru>
2 2
3 Fix Windows build errors introduced after converting to FGET and FSET.
4 * w32term.c (x_frame_rehighlight, x_scroll_bar_create):
5 (w32_condemn_scroll_bars, w32_redeem_scroll_bar):
6 (w32_judge_scroll_bars): Change to use FSET.
7 Reported by Andy Moreton <andrewjmoreton@gmail.com>.
8
92012-08-06 Dmitry Antipov <dmantipov@yandex.ru>
10
3 Fix replacement typo. 11 Fix replacement typo.
4 * window.c (replace_window): Set root_window instead of 12 * window.c (replace_window): Set root_window instead of
5 selected_window. This fixes a total window subsystem 13 selected_window. This fixes a total window subsystem
diff --git a/src/w32term.c b/src/w32term.c
index b00089ca394..96072ac69e1 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -2972,7 +2972,7 @@ x_frame_rehighlight (struct w32_display_info *dpyinfo)
2972 : dpyinfo->w32_focus_frame); 2972 : dpyinfo->w32_focus_frame);
2973 if (! FRAME_LIVE_P (dpyinfo->x_highlight_frame)) 2973 if (! FRAME_LIVE_P (dpyinfo->x_highlight_frame))
2974 { 2974 {
2975 FRAME_FOCUS_FRAME (dpyinfo->w32_focus_frame) = Qnil; 2975 FSET (dpyinfo->w32_focus_frame, focus_frame, Qnil);
2976 dpyinfo->x_highlight_frame = dpyinfo->w32_focus_frame; 2976 dpyinfo->x_highlight_frame = dpyinfo->w32_focus_frame;
2977 } 2977 }
2978 } 2978 }
@@ -3612,6 +3612,7 @@ x_scroll_bar_create (struct window *w, int top, int left, int width, int height)
3612 SCROLLINFO si; 3612 SCROLLINFO si;
3613 struct scroll_bar *bar 3613 struct scroll_bar *bar
3614 = XSCROLL_BAR (Fmake_vector (make_number (SCROLL_BAR_VEC_SIZE), Qnil)); 3614 = XSCROLL_BAR (Fmake_vector (make_number (SCROLL_BAR_VEC_SIZE), Qnil));
3615 Lisp_Object barobj;
3615 3616
3616 BLOCK_INPUT; 3617 BLOCK_INPUT;
3617 3618
@@ -3644,7 +3645,8 @@ x_scroll_bar_create (struct window *w, int top, int left, int width, int height)
3644 /* Add bar to its frame's list of scroll bars. */ 3645 /* Add bar to its frame's list of scroll bars. */
3645 bar->next = FRAME_SCROLL_BARS (f); 3646 bar->next = FRAME_SCROLL_BARS (f);
3646 bar->prev = Qnil; 3647 bar->prev = Qnil;
3647 XSETVECTOR (FRAME_SCROLL_BARS (f), bar); 3648 XSETVECTOR (barobj, bar);
3649 FSET (f, scroll_bars, barobj);
3648 if (! NILP (bar->next)) 3650 if (! NILP (bar->next))
3649 XSETVECTOR (XSCROLL_BAR (bar->next)->prev, bar); 3651 XSETVECTOR (XSCROLL_BAR (bar->next)->prev, bar);
3650 3652
@@ -3829,12 +3831,12 @@ w32_condemn_scroll_bars (FRAME_PTR frame)
3829 { 3831 {
3830 Lisp_Object bar; 3832 Lisp_Object bar;
3831 bar = FRAME_SCROLL_BARS (frame); 3833 bar = FRAME_SCROLL_BARS (frame);
3832 FRAME_SCROLL_BARS (frame) = XSCROLL_BAR (bar)->next; 3834 FSET (frame, scroll_bars, XSCROLL_BAR (bar)->next);
3833 XSCROLL_BAR (bar)->next = FRAME_CONDEMNED_SCROLL_BARS (frame); 3835 XSCROLL_BAR (bar)->next = FRAME_CONDEMNED_SCROLL_BARS (frame);
3834 XSCROLL_BAR (bar)->prev = Qnil; 3836 XSCROLL_BAR (bar)->prev = Qnil;
3835 if (! NILP (FRAME_CONDEMNED_SCROLL_BARS (frame))) 3837 if (! NILP (FRAME_CONDEMNED_SCROLL_BARS (frame)))
3836 XSCROLL_BAR (FRAME_CONDEMNED_SCROLL_BARS (frame))->prev = bar; 3838 XSCROLL_BAR (FRAME_CONDEMNED_SCROLL_BARS (frame))->prev = bar;
3837 FRAME_CONDEMNED_SCROLL_BARS (frame) = bar; 3839 FSET (frame, condemned_scroll_bars, bar);
3838 } 3840 }
3839} 3841}
3840 3842
@@ -3846,6 +3848,7 @@ static void
3846w32_redeem_scroll_bar (struct window *window) 3848w32_redeem_scroll_bar (struct window *window)
3847{ 3849{
3848 struct scroll_bar *bar; 3850 struct scroll_bar *bar;
3851 Lisp_Object barobj;
3849 struct frame *f; 3852 struct frame *f;
3850 3853
3851 /* We can't redeem this window's scroll bar if it doesn't have one. */ 3854 /* We can't redeem this window's scroll bar if it doesn't have one. */
@@ -3865,7 +3868,7 @@ w32_redeem_scroll_bar (struct window *window)
3865 return; 3868 return;
3866 else if (EQ (FRAME_CONDEMNED_SCROLL_BARS (f), 3869 else if (EQ (FRAME_CONDEMNED_SCROLL_BARS (f),
3867 WVAR (window, vertical_scroll_bar))) 3870 WVAR (window, vertical_scroll_bar)))
3868 FRAME_CONDEMNED_SCROLL_BARS (f) = bar->next; 3871 FSET (f, condemned_scroll_bars, bar->next);
3869 else 3872 else
3870 /* If its prev pointer is nil, it must be at the front of 3873 /* If its prev pointer is nil, it must be at the front of
3871 one or the other! */ 3874 one or the other! */
@@ -3879,7 +3882,8 @@ w32_redeem_scroll_bar (struct window *window)
3879 3882
3880 bar->next = FRAME_SCROLL_BARS (f); 3883 bar->next = FRAME_SCROLL_BARS (f);
3881 bar->prev = Qnil; 3884 bar->prev = Qnil;
3882 XSETVECTOR (FRAME_SCROLL_BARS (f), bar); 3885 XSETVECTOR (barobj, bar);
3886 FSET (f, scroll_bars, barobj);
3883 if (! NILP (bar->next)) 3887 if (! NILP (bar->next))
3884 XSETVECTOR (XSCROLL_BAR (bar->next)->prev, bar); 3888 XSETVECTOR (XSCROLL_BAR (bar->next)->prev, bar);
3885} 3889}
@@ -3896,7 +3900,7 @@ w32_judge_scroll_bars (FRAME_PTR f)
3896 3900
3897 /* Clear out the condemned list now so we won't try to process any 3901 /* Clear out the condemned list now so we won't try to process any
3898 more events on the hapless scroll bars. */ 3902 more events on the hapless scroll bars. */
3899 FRAME_CONDEMNED_SCROLL_BARS (f) = Qnil; 3903 FSET (f, condemned_scroll_bars, Qnil);
3900 3904
3901 for (; ! NILP (bar); bar = next) 3905 for (; ! NILP (bar); bar = next)
3902 { 3906 {