aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorPaul Eggert2012-08-17 14:52:15 -0700
committerPaul Eggert2012-08-17 14:52:15 -0700
commitf00af5b1c24515f20f96cfd8d59983ab62fb3f25 (patch)
treefbb0f748b8de748ee3e722c9cc3647caea32fe1c /src/xterm.c
parent0c94c8d603031f6b665ae7f3136ca77fb573fd7e (diff)
downloademacs-f00af5b1c24515f20f96cfd8d59983ab62fb3f25.tar.gz
emacs-f00af5b1c24515f20f96cfd8d59983ab62fb3f25.zip
* frame.h (FSET): Remove (Bug#12215).
Replace all uses with calls to new setter functions. Use INLINE_HEADER_BEGIN, INLINE_HEADER_END. (FRAME_INLINE): New macro. (fset_buffer_list, fset_buried_buffer_list, fset_condemned_scroll_bars) (fset_current_tool_bar_string, fset_desired_tool_bar_string) (fset_face_alist, fset_focus_frame, fset_icon_name, fset_menu_bar_items) (fset_menu_bar_vector, fset_menu_bar_window, fset_name) (fset_param_alist, fset_root_window, fset_scroll_bars) (fset_selected_window, fset_title, fset_tool_bar_items) (fset_tool_bar_position, fset_tool_bar_window): New functions. * frame.c (FRAME_INLINE): Define to EXTERN_INLINE, so that the corresponding functions are compiled into code. (fset_buffer_predicate, fset_minibuffer_window): New setter functions.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/xterm.c b/src/xterm.c
index b1a73d07998..715e3664ec2 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -3584,7 +3584,7 @@ x_frame_rehighlight (struct x_display_info *dpyinfo)
3584 : dpyinfo->x_focus_frame); 3584 : dpyinfo->x_focus_frame);
3585 if (! FRAME_LIVE_P (dpyinfo->x_highlight_frame)) 3585 if (! FRAME_LIVE_P (dpyinfo->x_highlight_frame))
3586 { 3586 {
3587 FSET (dpyinfo->x_focus_frame, focus_frame, Qnil); 3587 fset_focus_frame (dpyinfo->x_focus_frame, Qnil);
3588 dpyinfo->x_highlight_frame = dpyinfo->x_focus_frame; 3588 dpyinfo->x_highlight_frame = dpyinfo->x_focus_frame;
3589 } 3589 }
3590 } 3590 }
@@ -5018,7 +5018,7 @@ x_scroll_bar_create (struct window *w, int top, int left, int width, int height)
5018 bar->next = FRAME_SCROLL_BARS (f); 5018 bar->next = FRAME_SCROLL_BARS (f);
5019 bar->prev = Qnil; 5019 bar->prev = Qnil;
5020 XSETVECTOR (barobj, bar); 5020 XSETVECTOR (barobj, bar);
5021 FSET (f, scroll_bars, barobj); 5021 fset_scroll_bars (f, barobj);
5022 if (!NILP (bar->next)) 5022 if (!NILP (bar->next))
5023 XSETVECTOR (XSCROLL_BAR (bar->next)->prev, bar); 5023 XSETVECTOR (XSCROLL_BAR (bar->next)->prev, bar);
5024 5024
@@ -5419,12 +5419,12 @@ XTcondemn_scroll_bars (FRAME_PTR frame)
5419 { 5419 {
5420 Lisp_Object bar; 5420 Lisp_Object bar;
5421 bar = FRAME_SCROLL_BARS (frame); 5421 bar = FRAME_SCROLL_BARS (frame);
5422 FSET (frame, scroll_bars, XSCROLL_BAR (bar)->next); 5422 fset_scroll_bars (frame, XSCROLL_BAR (bar)->next);
5423 XSCROLL_BAR (bar)->next = FRAME_CONDEMNED_SCROLL_BARS (frame); 5423 XSCROLL_BAR (bar)->next = FRAME_CONDEMNED_SCROLL_BARS (frame);
5424 XSCROLL_BAR (bar)->prev = Qnil; 5424 XSCROLL_BAR (bar)->prev = Qnil;
5425 if (! NILP (FRAME_CONDEMNED_SCROLL_BARS (frame))) 5425 if (! NILP (FRAME_CONDEMNED_SCROLL_BARS (frame)))
5426 XSCROLL_BAR (FRAME_CONDEMNED_SCROLL_BARS (frame))->prev = bar; 5426 XSCROLL_BAR (FRAME_CONDEMNED_SCROLL_BARS (frame))->prev = bar;
5427 FSET (frame, condemned_scroll_bars, bar); 5427 fset_condemned_scroll_bars (frame, bar);
5428 } 5428 }
5429} 5429}
5430 5430
@@ -5456,7 +5456,7 @@ XTredeem_scroll_bar (struct window *window)
5456 return; 5456 return;
5457 else if (EQ (FRAME_CONDEMNED_SCROLL_BARS (f), 5457 else if (EQ (FRAME_CONDEMNED_SCROLL_BARS (f),
5458 window->vertical_scroll_bar)) 5458 window->vertical_scroll_bar))
5459 FSET (f, condemned_scroll_bars, bar->next); 5459 fset_condemned_scroll_bars (f, bar->next);
5460 else 5460 else
5461 /* If its prev pointer is nil, it must be at the front of 5461 /* If its prev pointer is nil, it must be at the front of
5462 one or the other! */ 5462 one or the other! */
@@ -5471,7 +5471,7 @@ XTredeem_scroll_bar (struct window *window)
5471 bar->next = FRAME_SCROLL_BARS (f); 5471 bar->next = FRAME_SCROLL_BARS (f);
5472 bar->prev = Qnil; 5472 bar->prev = Qnil;
5473 XSETVECTOR (barobj, bar); 5473 XSETVECTOR (barobj, bar);
5474 FSET (f, scroll_bars, barobj); 5474 fset_scroll_bars (f, barobj);
5475 if (! NILP (bar->next)) 5475 if (! NILP (bar->next))
5476 XSETVECTOR (XSCROLL_BAR (bar->next)->prev, bar); 5476 XSETVECTOR (XSCROLL_BAR (bar->next)->prev, bar);
5477} 5477}
@@ -5488,7 +5488,7 @@ XTjudge_scroll_bars (FRAME_PTR f)
5488 5488
5489 /* Clear out the condemned list now so we won't try to process any 5489 /* Clear out the condemned list now so we won't try to process any
5490 more events on the hapless scroll bars. */ 5490 more events on the hapless scroll bars. */
5491 FSET (f, condemned_scroll_bars, Qnil); 5491 fset_condemned_scroll_bars (f, Qnil);
5492 5492
5493 for (; ! NILP (bar); bar = next) 5493 for (; ! NILP (bar); bar = next)
5494 { 5494 {