aboutsummaryrefslogtreecommitdiffstats
path: root/src/dispextern.h
diff options
context:
space:
mode:
authorDmitry Antipov2012-08-06 14:24:26 +0400
committerDmitry Antipov2012-08-06 14:24:26 +0400
commit077288cf3f654776ee44bc9b56954c4e26b10d96 (patch)
tree00bbcb4dab9c879efde73a01786977b1c1364f67 /src/dispextern.h
parent71688bd7f9169c12ea8be54e084470f19d44ce44 (diff)
downloademacs-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/dispextern.h')
-rw-r--r--src/dispextern.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/dispextern.h b/src/dispextern.h
index 47a3f971f25..09869501ad9 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -1379,7 +1379,7 @@ struct glyph_string
1379 ? current_mode_line_height \ 1379 ? current_mode_line_height \
1380 : (MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix) \ 1380 : (MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix) \
1381 ? MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix) \ 1381 ? MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix) \
1382 : estimate_mode_line_height (XFRAME (WVAR (W, frame)), \ 1382 : estimate_mode_line_height (XFRAME (WGET (W, frame)), \
1383 CURRENT_MODE_LINE_FACE_ID (W)))) 1383 CURRENT_MODE_LINE_FACE_ID (W))))
1384 1384
1385/* Return the current height of the header line of window W. If not 1385/* Return the current height of the header line of window W. If not
@@ -1392,7 +1392,7 @@ struct glyph_string
1392 ? current_header_line_height \ 1392 ? current_header_line_height \
1393 : (MATRIX_HEADER_LINE_HEIGHT ((W)->current_matrix) \ 1393 : (MATRIX_HEADER_LINE_HEIGHT ((W)->current_matrix) \
1394 ? MATRIX_HEADER_LINE_HEIGHT ((W)->current_matrix) \ 1394 ? MATRIX_HEADER_LINE_HEIGHT ((W)->current_matrix) \
1395 : estimate_mode_line_height (XFRAME (WVAR (W, frame)),\ 1395 : estimate_mode_line_height (XFRAME (WGET (W, frame)),\
1396 HEADER_LINE_FACE_ID))) 1396 HEADER_LINE_FACE_ID)))
1397 1397
1398/* Return the height of the desired mode line of window W. */ 1398/* Return the height of the desired mode line of window W. */
@@ -1411,8 +1411,8 @@ struct glyph_string
1411 (!MINI_WINDOW_P ((W)) \ 1411 (!MINI_WINDOW_P ((W)) \
1412 && !(W)->pseudo_window_p \ 1412 && !(W)->pseudo_window_p \
1413 && FRAME_WANTS_MODELINE_P (XFRAME (WINDOW_FRAME ((W)))) \ 1413 && FRAME_WANTS_MODELINE_P (XFRAME (WINDOW_FRAME ((W)))) \
1414 && BUFFERP (WVAR (W, buffer)) \ 1414 && BUFFERP (WGET (W, buffer)) \
1415 && !NILP (BVAR (XBUFFER (WVAR (W, buffer)), mode_line_format)) \ 1415 && !NILP (BVAR (XBUFFER (WGET (W, buffer)), mode_line_format)) \
1416 && WINDOW_TOTAL_LINES (W) > 1) 1416 && WINDOW_TOTAL_LINES (W) > 1)
1417 1417
1418/* Value is non-zero if window W wants a header line. */ 1418/* Value is non-zero if window W wants a header line. */
@@ -1421,10 +1421,10 @@ struct glyph_string
1421 (!MINI_WINDOW_P ((W)) \ 1421 (!MINI_WINDOW_P ((W)) \
1422 && !(W)->pseudo_window_p \ 1422 && !(W)->pseudo_window_p \
1423 && FRAME_WANTS_MODELINE_P (XFRAME (WINDOW_FRAME ((W)))) \ 1423 && FRAME_WANTS_MODELINE_P (XFRAME (WINDOW_FRAME ((W)))) \
1424 && BUFFERP (WVAR (W, buffer)) \ 1424 && BUFFERP (WGET (W, buffer)) \
1425 && !NILP (BVAR (XBUFFER (WVAR (W, buffer)), header_line_format)) \ 1425 && !NILP (BVAR (XBUFFER (WGET (W, buffer)), header_line_format)) \
1426 && WINDOW_TOTAL_LINES (W) > 1 \ 1426 && WINDOW_TOTAL_LINES (W) > 1 \
1427 + !NILP (BVAR (XBUFFER (WVAR (W, buffer)), mode_line_format))) 1427 + !NILP (BVAR (XBUFFER (WGET (W, buffer)), mode_line_format)))
1428 1428
1429 1429
1430/* Return proper value to be used as baseline offset of font that has 1430/* Return proper value to be used as baseline offset of font that has