diff options
| author | Dmitry Antipov | 2012-08-06 14:24:26 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-08-06 14:24:26 +0400 |
| commit | 077288cf3f654776ee44bc9b56954c4e26b10d96 (patch) | |
| tree | 00bbcb4dab9c879efde73a01786977b1c1364f67 /src/fringe.c | |
| parent | 71688bd7f9169c12ea8be54e084470f19d44ce44 (diff) | |
| download | emacs-077288cf3f654776ee44bc9b56954c4e26b10d96.tar.gz emacs-077288cf3f654776ee44bc9b56954c4e26b10d96.zip | |
Separate read and write access to Lisp_Object slots of struct window.
* window.h (WGET, WSET): New macros similar to AREF and ASET.
* alloc.c, buffer.c, composite.c, dispextern.h, dispnew.c, editfns.c:
* fileio.c, font.c, fontset.c, frame.c, frame.h, fringe.c, indent.c:
* insdel.c, keyboard.c, keymap.c, lisp.h, minibuf.c, msdos.c, nsfns.m:
* nsmenu.m, nsterm.m, print.c, textprop.c, w32fns.c, w32menu.c:
* w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
Adjust users.
Diffstat (limited to 'src/fringe.c')
| -rw-r--r-- | src/fringe.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/fringe.c b/src/fringe.c index 95aec9ebbe7..25ab1ad665c 100644 --- a/src/fringe.c +++ b/src/fringe.c | |||
| @@ -692,7 +692,7 @@ get_logical_cursor_bitmap (struct window *w, Lisp_Object cursor) | |||
| 692 | { | 692 | { |
| 693 | Lisp_Object cmap, bm = Qnil; | 693 | Lisp_Object cmap, bm = Qnil; |
| 694 | 694 | ||
| 695 | if ((cmap = BVAR (XBUFFER (WVAR (w, buffer)), fringe_cursor_alist)), !NILP (cmap)) | 695 | if ((cmap = BVAR (XBUFFER (WGET (w, buffer)), fringe_cursor_alist)), !NILP (cmap)) |
| 696 | { | 696 | { |
| 697 | bm = Fassq (cursor, cmap); | 697 | bm = Fassq (cursor, cmap); |
| 698 | if (CONSP (bm)) | 698 | if (CONSP (bm)) |
| @@ -729,7 +729,7 @@ get_logical_fringe_bitmap (struct window *w, Lisp_Object bitmap, int right_p, in | |||
| 729 | If partial, lookup partial bitmap in default value if not found here. | 729 | If partial, lookup partial bitmap in default value if not found here. |
| 730 | If not partial, or no partial spec is present, use non-partial bitmap. */ | 730 | If not partial, or no partial spec is present, use non-partial bitmap. */ |
| 731 | 731 | ||
| 732 | if ((cmap = BVAR (XBUFFER (WVAR (w, buffer)), fringe_indicator_alist)), !NILP (cmap)) | 732 | if ((cmap = BVAR (XBUFFER (WGET (w, buffer)), fringe_indicator_alist)), !NILP (cmap)) |
| 733 | { | 733 | { |
| 734 | bm1 = Fassq (bitmap, cmap); | 734 | bm1 = Fassq (bitmap, cmap); |
| 735 | if (CONSP (bm1)) | 735 | if (CONSP (bm1)) |
| @@ -956,7 +956,7 @@ update_window_fringes (struct window *w, int keep_current_p) | |||
| 956 | return 0; | 956 | return 0; |
| 957 | 957 | ||
| 958 | if (!MINI_WINDOW_P (w) | 958 | if (!MINI_WINDOW_P (w) |
| 959 | && (ind = BVAR (XBUFFER (WVAR (w, buffer)), indicate_buffer_boundaries), !NILP (ind))) | 959 | && (ind = BVAR (XBUFFER (WGET (w, buffer)), indicate_buffer_boundaries), !NILP (ind))) |
| 960 | { | 960 | { |
| 961 | if (EQ (ind, Qleft) || EQ (ind, Qright)) | 961 | if (EQ (ind, Qleft) || EQ (ind, Qright)) |
| 962 | boundary_top = boundary_bot = arrow_top = arrow_bot = ind; | 962 | boundary_top = boundary_bot = arrow_top = arrow_bot = ind; |
| @@ -997,7 +997,7 @@ update_window_fringes (struct window *w, int keep_current_p) | |||
| 997 | { | 997 | { |
| 998 | if (top_ind_rn < 0 && row->visible_height > 0) | 998 | if (top_ind_rn < 0 && row->visible_height > 0) |
| 999 | { | 999 | { |
| 1000 | if (MATRIX_ROW_START_CHARPOS (row) <= BUF_BEGV (XBUFFER (WVAR (w, buffer))) | 1000 | if (MATRIX_ROW_START_CHARPOS (row) <= BUF_BEGV (XBUFFER (WGET (w, buffer))) |
| 1001 | && !MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P (w, row)) | 1001 | && !MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P (w, row)) |
| 1002 | row->indicate_bob_p = !NILP (boundary_top); | 1002 | row->indicate_bob_p = !NILP (boundary_top); |
| 1003 | else | 1003 | else |
| @@ -1007,7 +1007,7 @@ update_window_fringes (struct window *w, int keep_current_p) | |||
| 1007 | 1007 | ||
| 1008 | if (bot_ind_rn < 0) | 1008 | if (bot_ind_rn < 0) |
| 1009 | { | 1009 | { |
| 1010 | if (MATRIX_ROW_END_CHARPOS (row) >= BUF_ZV (XBUFFER (WVAR (w, buffer))) | 1010 | if (MATRIX_ROW_END_CHARPOS (row) >= BUF_ZV (XBUFFER (WGET (w, buffer))) |
| 1011 | && !MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P (w, row)) | 1011 | && !MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P (w, row)) |
| 1012 | row->indicate_eob_p = !NILP (boundary_bot), bot_ind_rn = rn; | 1012 | row->indicate_eob_p = !NILP (boundary_bot), bot_ind_rn = rn; |
| 1013 | else if (y + row->height >= yb) | 1013 | else if (y + row->height >= yb) |
| @@ -1017,7 +1017,7 @@ update_window_fringes (struct window *w, int keep_current_p) | |||
| 1017 | } | 1017 | } |
| 1018 | } | 1018 | } |
| 1019 | 1019 | ||
| 1020 | empty_pos = BVAR (XBUFFER (WVAR (w, buffer)), indicate_empty_lines); | 1020 | empty_pos = BVAR (XBUFFER (WGET (w, buffer)), indicate_empty_lines); |
| 1021 | if (!NILP (empty_pos) && !EQ (empty_pos, Qright)) | 1021 | if (!NILP (empty_pos) && !EQ (empty_pos, Qright)) |
| 1022 | empty_pos = WINDOW_LEFT_FRINGE_WIDTH (w) == 0 ? Qright : Qleft; | 1022 | empty_pos = WINDOW_LEFT_FRINGE_WIDTH (w) == 0 ? Qright : Qleft; |
| 1023 | 1023 | ||
| @@ -1740,7 +1740,7 @@ Return nil if POS is not visible in WINDOW. */) | |||
| 1740 | else if (w == XWINDOW (selected_window)) | 1740 | else if (w == XWINDOW (selected_window)) |
| 1741 | textpos = PT; | 1741 | textpos = PT; |
| 1742 | else | 1742 | else |
| 1743 | textpos = XMARKER (WVAR (w, pointm))->charpos; | 1743 | textpos = XMARKER (WGET (w, pointm))->charpos; |
| 1744 | 1744 | ||
| 1745 | row = MATRIX_FIRST_TEXT_ROW (w->current_matrix); | 1745 | row = MATRIX_FIRST_TEXT_ROW (w->current_matrix); |
| 1746 | row = row_containing_pos (w, textpos, row, NULL, 0); | 1746 | row = row_containing_pos (w, textpos, row, NULL, 0); |