diff options
| author | Paul Eggert | 2013-12-14 13:36:44 -0800 |
|---|---|---|
| committer | Paul Eggert | 2013-12-14 13:36:44 -0800 |
| commit | 96c0686368d8b7d481cb40239db896ff37df416a (patch) | |
| tree | 84d8ee02271476dd4aaaee52c5302f2c576089ef /src/window.h | |
| parent | 5ae811ddef14ea1989088c259a9ed2d14d5332b4 (diff) | |
| download | emacs-96c0686368d8b7d481cb40239db896ff37df416a.tar.gz emacs-96c0686368d8b7d481cb40239db896ff37df416a.zip | |
Use bool for boolean, focusing on headers.
* configure.ac (PTY_OPEN, GC_MARK_SECONDARY_STACK):
Use bool for boolean.
* lib-src/emacsclient.c, lib-src/etags.c, lib-src/hexl.c (FALSE, TRUE):
Remove. All uses replaced with uncapitalized version.
* lib-src/emacsclient.c (message):
* lib-src/etags.c (make_tag, pfnote, consider_token, make_C_tag, lang_names):
* lib-src/hexl.c (un_flag, iso_flag, endian):
* lib-src/pop.c (pop_debug, pop_open, pop_multi_first, pop_multi_next)
(pop_trash):
Use bool for boolean.
* lib-src/etags.c (bool): Remove.
* lib-src/etags.c (globals, members, declarations, no_line_directive)
(no_duplicates): Use 'int' for boolean values that getopt requires
to be 'int'. Formerly, these were 'bool' and 'bool' was 'int',
but we can no longer rely on this implementation.
* lib-src/pop.h (struct _popserver): Use bool_bf for boolean bit-fields.
* lwlib/xlwmenuP.h (XlwMenu_part): Use bool_bf for boolean bit-fields.
* src/atimer.h, src/lisp.h, src/syssignal.h, src/syswait.h, src/unexelf.c:
No need to include <stdbool.h>, since conf_post.h does it now.
* src/buffer.h (BUF_COMPUTE_UNCHANGED, DECODE_POSITION)
(BUFFER_CHECK_INDIRECTION, GET_OVERLAYS_AT, PER_BUFFER_VALUE_P)
(SET_PER_BUFFER_VALUE_P):
* src/ccl.c, src/ccl.h (setup_ccl_program):
* src/ccl.h (CHECK_CCL_PROGRAM):
* src/character.h (MAKE_CHAR_UNIBYTE, CHECK_CHARACTER_CAR)
(CHECK_CHARACTER_CDR, CHAR_STRING_ADVANCE, NEXT_CHAR_BOUNDARY)
(PREV_CHAR_BOUNDARY, FETCH_STRING_CHAR_ADVANCE)
(FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
(FETCH_STRING_CHAR_ADVANCE_NO_CHECK, FETCH_CHAR_ADVANCE)
(FETCH_CHAR_ADVANCE_NO_CHECK, INC_POS, DEC_POS, INC_BOTH)
(DEC_BOTH, BUF_INC_POS, BUF_DEC_POS):
* src/charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
(CHECK_CHARSET_GET_ATTR, CHECK_CHARSET_GET_CHARSET)
(CHARSET_FAST_MAP_SET):
* src/coding.c (decode_coding_ccl, encode_coding_ccl):
* src/coding.h (CHECK_CODING_SYSTEM, CHECK_CODING_SYSTEM_GET_SPEC)
(CHECK_CODING_SYSTEM_GET_ID, SJIS_TO_JIS, SJIS_TO_JIS2)
(JIS_TO_SJIS, JIS_TO_SJIS2, ENCODE_FILE, DECODE_FILE)
(ENCODE_SYSTEM, DECODE_SYSTEM, ENCODE_UTF_8)
(decode_coding_c_string):
* src/composite.h (COMPOSITION_DECODE_REFS, COMPOSITION_DECODE_RULE):
* src/conf_post.h (has_attribute):
* src/dispextern.h (trace_redisplay_p):
(INC_TEXT_POS, DEC_TEXT_POS, SET_GLYPH_FROM_GLYPH_CODE)
(SET_CHAR_GLYPH, SET_CHAR_GLYPH_FROM_GLYPH)
(SET_GLYPH_FROM_CHAR_GLYPH):
(WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P)
(FACE_SUITABLE_FOR_ASCII_CHAR_P, FACE_SUITABLE_FOR_CHAR_P)
(PRODUCE_GLYPHS, reset_mouse_highlight, in_display_vector_p)
(cursor_in_mouse_face_p):
* src/dispnew.c (adjust_glyph_matrix, clear_glyph_matrix_rows)
(blank_row, prepare_desired_row)
(build_frame_matrix_from_leaf_window, make_current)
(mirror_make_current, mirrored_line_dance, mirror_line_dance)
(update_window, scrolling_window, update_frame_line):
* src/disptab.h (GLYPH_FOLLOW_ALIASES):
* src/editfns.c (Fformat):
* src/font.h (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC)
(FONT_WIDTH_SYMBOLIC, FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE)
(FONT_WIDTH_FOR_FACE, FONT_WEIGHT_NAME_NUMERIC)
(FONT_SLANT_NAME_NUMERIC, FONT_WIDTH_NAME_NUMERIC)
(FONT_SET_STYLE, CHECK_FONT, CHECK_FONT_SPEC, CHECK_FONT_ENTITY)
(CHECK_FONT_OBJECT, CHECK_FONT_GET_OBJECT, FONT_ADD_LOG)
(FONT_DEFERRED_LOG):
* src/frame.h (FRAME_W32_P, FRAME_MSDOS_P, FRAME_WINDOW_P):
(FRAME_EXTERNAL_TOOL_BAR, FRAME_EXTERNAL_MENU_BAR, FOR_EACH_FRAME)
(FRAME_MOUSE_UPDATE):
* src/fringe.c (Fdefine_fringe_bitmap):
* src/image.c (x_create_bitmap_from_data, x_create_bitmap_mask)
(x_create_bitmap_from_xpm_data, xpm_load_image):
* src/intervals.h (INTERVAL_HAS_PARENT, INTERVAL_PARENT)
(set_interval_parent, RESET_INTERVAL, COPY_INTERVAL_CACHE)
(MERGE_INTERVAL_CACHE):
* src/keymap.h (KEYMAPP):
* src/lisp.h (eassert, USE_LSB_TAG, CHECK_LISP_OBJECT_TYPE)
(STRING_SET_UNIBYTE, STRING_SET_MULTIBYTE, DEFSYM, PSEUDOVECTORP)
(CHECK_RANGED_INTEGER, CHECK_TYPE_RANGED_INTEGER)
(CHECK_NUMBER_COERCE_MARKER, CHECK_NUMBER_OR_FLOAT_COERCE_MARKER)
(DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
(DEFVAR_BUFFER_DEFAULTS, DEFVAR_KBOARD, QUIT)
(RETURN_UNGCPRO, USE_SAFE_ALLOCA, SAFE_NALLOCA, SAFE_FREE)
(SAFE_ALLOCA_LISP, FOR_EACH_ALIST_VALUE, functionp):
* src/syntax.h (SYNTAX_ENTRY, SYNTAX_WITH_FLAGS, SYNTAX)
(UPDATE_SYNTAX_TABLE_FORWARD, UPDATE_SYNTAX_TABLE_BACKWARD)
(SETUP_BUFFER_SYNTAX_TABLE):
* src/systime.h (timespec_valid_p):
* src/term.c (save_and_enable_current_matrix):
* src/window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P):
* src/xdisp.c (in_display_vector_p, display_tool_bar_line)
(redisplay_internal, try_window_reusing_current_matrix)
(sync_frame_with_window_matrix_rows, try_window_id)
(display_menu_bar, display_tty_menu_item, display_mode_line)
(coords_in_mouse_face_p, cursor_in_mouse_face_p):
* src/xmenu.c (xmenu_show):
* src/xterm.c (use_xim, x_term_init):
* src/xterm.h (XSync, GTK_CHECK_VERSION, use_xim, SET_SCROLL_BAR_X_WIDGET)
(struct x_bitmap_record):
Use bool for booleans.
* src/ccl.c (struct buffer_text):
* src/ccl.h (struct ccl_program):
* src/charset.h (struct charset):
* src/cm.h (struct cm):
* src/coding.h (struct iso_2022_spec, struct coding_system):
* src/dispextern.h (struct glyph, struct glyph_matrix, struct glyph_row)
(struct glyph_string, struct face, struct face_cache)
(struct bidi_string_data, struct bidi_it)
(struct draw_fringe_bitmap_params, struct it, Mouse_HLInfo)
(struct image):
* src/editfns.c (Fformat):
* src/frame.h (struct frame):
* src/fringe.c (struct fringe_bitmap):
* src/intervals.h (struct interval):
* src/keyboard.h (struct kboard):
* src/lisp.h (struct Lisp_Symbol, struct Lisp_Misc_Any, struct Lisp_Marker)
(struct Lisp_Overlay, struct Lisp_Save_Value, struct Lisp_Free)
(struct Lisp_Buffer_Local_Value, union specbinding):
* src/macfont.m (struct macfont_info):
* src/process.h (struct Lisp_Process):
* src/termchar.h (struct tty_display_info):
* src/window.h (struct window):
* src/xterm.h (struct x_output):
Use bool_bf for boolean bit-fields.
* src/ccl.c (setup_ccl_program): Now returns bool instead of -1 or 0.
All callers changed.
* src/ccl.h (struct ccl_program): Remove unused members private_state,
src_multibyte, dst_multibyte, cr_consumed, suppress_error,
eight_bit_control.
(struct ccl_spec): Remove unused members cr_carryover,
eight_bit_carryover.
* src/conf_post.h: Include <stdbool.h>.
(bool_bf): New type.
* src/dispextern.h (TRACE, PREPARE_FACE_FOR_DISPLAY):
* src/interval.h (RESET_INTERVAL, COPY_INTERVAL_CACHE, MERGE_INTERVAL_CACHE)
Surround statement macro with proper 'do { ... } while (false)' brackets.
(SET_MATRIX_ROW_ENABLED_P): Assume 2nd arg is bool.
(PRODUCE_GLYPHS): Simplify use of boolean.
* src/fileio.c (Fcopy_file):
If I is an integer, prefer 'if (I != 0)' to 'if (I)'.
* src/lisp.h (UNGCPRO): Return void, not int.
(FOR_EACH_TAIL): Use void expression, not int expression.
* src/region-cache.c: Reindent.
* src/region-cache.h: Copy comments from region-cache.c, to fix
incorrect remarks about booleans.
Diffstat (limited to 'src/window.h')
| -rw-r--r-- | src/window.h | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/src/window.h b/src/window.h index b91161f4d32..05b4680471b 100644 --- a/src/window.h +++ b/src/window.h | |||
| @@ -287,78 +287,78 @@ struct window | |||
| 287 | int header_line_height; | 287 | int header_line_height; |
| 288 | 288 | ||
| 289 | /* Z - the buffer position of the last glyph in the current | 289 | /* Z - the buffer position of the last glyph in the current |
| 290 | matrix of W. Only valid if window_end_valid is nonzero. */ | 290 | matrix of W. Only valid if window_end_valid is true. */ |
| 291 | ptrdiff_t window_end_pos; | 291 | ptrdiff_t window_end_pos; |
| 292 | 292 | ||
| 293 | /* Glyph matrix row of the last glyph in the current matrix | 293 | /* Glyph matrix row of the last glyph in the current matrix |
| 294 | of W. Only valid if window_end_valid is nonzero. */ | 294 | of W. Only valid if window_end_valid is true. */ |
| 295 | int window_end_vpos; | 295 | int window_end_vpos; |
| 296 | 296 | ||
| 297 | /* Non-zero if this window is a minibuffer window. */ | 297 | /* True if this window is a minibuffer window. */ |
| 298 | unsigned mini : 1; | 298 | bool_bf mini : 1; |
| 299 | 299 | ||
| 300 | /* Meaningful only if contents is a window, non-zero if this | 300 | /* Meaningful only if contents is a window, non-zero if this |
| 301 | internal window is used in horizontal combination. */ | 301 | internal window is used in horizontal combination. */ |
| 302 | unsigned horizontal : 1; | 302 | bool_bf horizontal : 1; |
| 303 | 303 | ||
| 304 | /* Non-zero means must regenerate mode line of this window. */ | 304 | /* True means must regenerate mode line of this window. */ |
| 305 | unsigned update_mode_line : 1; | 305 | bool_bf update_mode_line : 1; |
| 306 | 306 | ||
| 307 | /* Non-nil if the buffer was "modified" when the window | 307 | /* True if the buffer was "modified" when the window |
| 308 | was last updated. */ | 308 | was last updated. */ |
| 309 | unsigned last_had_star : 1; | 309 | bool_bf last_had_star : 1; |
| 310 | 310 | ||
| 311 | /* Non-zero means current value of `start' | 311 | /* True means current value of `start' |
| 312 | was the beginning of a line when it was chosen. */ | 312 | was the beginning of a line when it was chosen. */ |
| 313 | unsigned start_at_line_beg : 1; | 313 | bool_bf start_at_line_beg : 1; |
| 314 | 314 | ||
| 315 | /* Non-zero means next redisplay must use the value of start | 315 | /* True means next redisplay must use the value of start |
| 316 | set up for it in advance. Set by scrolling commands. */ | 316 | set up for it in advance. Set by scrolling commands. */ |
| 317 | unsigned force_start : 1; | 317 | bool_bf force_start : 1; |
| 318 | 318 | ||
| 319 | /* Non-zero means we have explicitly changed the value of start, | 319 | /* True means we have explicitly changed the value of start, |
| 320 | but that the next redisplay is not obliged to use the new value. | 320 | but that the next redisplay is not obliged to use the new value. |
| 321 | This is used in Fdelete_other_windows to force a call to | 321 | This is used in Fdelete_other_windows to force a call to |
| 322 | Vwindow_scroll_functions; also by Frecenter with argument. */ | 322 | Vwindow_scroll_functions; also by Frecenter with argument. */ |
| 323 | unsigned optional_new_start : 1; | 323 | bool_bf optional_new_start : 1; |
| 324 | 324 | ||
| 325 | /* Non-zero means the cursor is currently displayed. This can be | 325 | /* True means the cursor is currently displayed. This can be |
| 326 | set to zero by functions overpainting the cursor image. */ | 326 | set to zero by functions overpainting the cursor image. */ |
| 327 | unsigned phys_cursor_on_p : 1; | 327 | bool_bf phys_cursor_on_p : 1; |
| 328 | 328 | ||
| 329 | /* 0 means cursor is logically on, 1 means it's off. Used for | 329 | /* False means cursor is logically on, true means it's off. Used for |
| 330 | blinking cursor. */ | 330 | blinking cursor. */ |
| 331 | unsigned cursor_off_p : 1; | 331 | bool_bf cursor_off_p : 1; |
| 332 | 332 | ||
| 333 | /* Value of cursor_off_p as of the last redisplay. */ | 333 | /* Value of cursor_off_p as of the last redisplay. */ |
| 334 | unsigned last_cursor_off_p : 1; | 334 | bool_bf last_cursor_off_p : 1; |
| 335 | 335 | ||
| 336 | /* 1 means desired matrix has been build and window must be | 336 | /* True means desired matrix has been build and window must be |
| 337 | updated in update_frame. */ | 337 | updated in update_frame. */ |
| 338 | unsigned must_be_updated_p : 1; | 338 | bool_bf must_be_updated_p : 1; |
| 339 | 339 | ||
| 340 | /* Flag indicating that this window is not a real one. | 340 | /* Flag indicating that this window is not a real one. |
| 341 | Currently only used for menu bar windows of frames. */ | 341 | Currently only used for menu bar windows of frames. */ |
| 342 | unsigned pseudo_window_p : 1; | 342 | bool_bf pseudo_window_p : 1; |
| 343 | 343 | ||
| 344 | /* Non-zero means fringes are drawn outside display margins. | 344 | /* True means fringes are drawn outside display margins. |
| 345 | Otherwise draw them between margin areas and text. */ | 345 | Otherwise draw them between margin areas and text. */ |
| 346 | unsigned fringes_outside_margins : 1; | 346 | bool_bf fringes_outside_margins : 1; |
| 347 | 347 | ||
| 348 | /* Nonzero if window_end_pos and window_end_vpos are truly valid. | 348 | /* True if window_end_pos and window_end_vpos are truly valid. |
| 349 | This is zero if nontrivial redisplay is preempted since in that case | 349 | This is false if nontrivial redisplay is preempted since in that case |
| 350 | the frame image that window_end_pos did not get onto the frame. */ | 350 | the frame image that window_end_pos did not get onto the frame. */ |
| 351 | unsigned window_end_valid : 1; | 351 | bool_bf window_end_valid : 1; |
| 352 | 352 | ||
| 353 | /* True if it needs to be redisplayed. */ | 353 | /* True if it needs to be redisplayed. */ |
| 354 | unsigned redisplay : 1; | 354 | bool_bf redisplay : 1; |
| 355 | 355 | ||
| 356 | /* Amount by which lines of this window are scrolled in | 356 | /* Amount by which lines of this window are scrolled in |
| 357 | y-direction (smooth scrolling). */ | 357 | y-direction (smooth scrolling). */ |
| 358 | int vscroll; | 358 | int vscroll; |
| 359 | 359 | ||
| 360 | /* Z_BYTE - buffer position of the last glyph in the current matrix of W. | 360 | /* Z_BYTE - buffer position of the last glyph in the current matrix of W. |
| 361 | Should be nonnegative, and only valid if window_end_valid is nonzero. */ | 361 | Should be nonnegative, and only valid if window_end_valid is true. */ |
| 362 | ptrdiff_t window_end_bytepos; | 362 | ptrdiff_t window_end_bytepos; |
| 363 | }; | 363 | }; |
| 364 | 364 | ||
| @@ -412,7 +412,7 @@ wset_next_buffers (struct window *w, Lisp_Object val) | |||
| 412 | w->next_buffers = val; | 412 | w->next_buffers = val; |
| 413 | } | 413 | } |
| 414 | 414 | ||
| 415 | /* 1 if W is a minibuffer window. */ | 415 | /* True if W is a minibuffer window. */ |
| 416 | 416 | ||
| 417 | #define MINI_WINDOW_P(W) ((W)->mini) | 417 | #define MINI_WINDOW_P(W) ((W)->mini) |
| 418 | 418 | ||
| @@ -443,17 +443,17 @@ wset_next_buffers (struct window *w, Lisp_Object val) | |||
| 443 | 443 | ||
| 444 | /* A handy macro. */ | 444 | /* A handy macro. */ |
| 445 | 445 | ||
| 446 | /* Non-zero if W is leaf (carry the buffer). */ | 446 | /* Non-nil if W is leaf (carry the buffer). */ |
| 447 | 447 | ||
| 448 | #define WINDOW_LEAF_P(W) \ | 448 | #define WINDOW_LEAF_P(W) \ |
| 449 | (BUFFERP ((W)->contents)) | 449 | (BUFFERP ((W)->contents)) |
| 450 | 450 | ||
| 451 | /* Non-zero if W is a member of horizontal combination. */ | 451 | /* True if W is a member of horizontal combination. */ |
| 452 | 452 | ||
| 453 | #define WINDOW_HORIZONTAL_COMBINATION_P(W) \ | 453 | #define WINDOW_HORIZONTAL_COMBINATION_P(W) \ |
| 454 | (WINDOWP ((W)->contents) && (W)->horizontal) | 454 | (WINDOWP ((W)->contents) && (W)->horizontal) |
| 455 | 455 | ||
| 456 | /* Non-zero if W is a member of vertical combination. */ | 456 | /* True if W is a member of vertical combination. */ |
| 457 | 457 | ||
| 458 | #define WINDOW_VERTICAL_COMBINATION_P(W) \ | 458 | #define WINDOW_VERTICAL_COMBINATION_P(W) \ |
| 459 | (WINDOWP ((W)->contents) && !(W)->horizontal) | 459 | (WINDOWP ((W)->contents) && !(W)->horizontal) |
| @@ -563,7 +563,7 @@ wset_next_buffers (struct window *w, Lisp_Object val) | |||
| 563 | (FRAME_INTERNAL_BORDER_WIDTH (WINDOW_XFRAME (W)) \ | 563 | (FRAME_INTERNAL_BORDER_WIDTH (WINDOW_XFRAME (W)) \ |
| 564 | + WINDOW_RIGHT_PIXEL_EDGE (W)) | 564 | + WINDOW_RIGHT_PIXEL_EDGE (W)) |
| 565 | 565 | ||
| 566 | /* 1 if W is a menu bar window. */ | 566 | /* True if W is a menu bar window. */ |
| 567 | 567 | ||
| 568 | #if defined (HAVE_X_WINDOWS) && ! defined (USE_X_TOOLKIT) && ! defined (USE_GTK) | 568 | #if defined (HAVE_X_WINDOWS) && ! defined (USE_X_TOOLKIT) && ! defined (USE_GTK) |
| 569 | #define WINDOW_MENU_BAR_P(W) \ | 569 | #define WINDOW_MENU_BAR_P(W) \ |
| @@ -571,16 +571,16 @@ wset_next_buffers (struct window *w, Lisp_Object val) | |||
| 571 | && (W) == XWINDOW (WINDOW_XFRAME (W)->menu_bar_window)) | 571 | && (W) == XWINDOW (WINDOW_XFRAME (W)->menu_bar_window)) |
| 572 | #else | 572 | #else |
| 573 | /* No menu bar windows if X toolkit is in use. */ | 573 | /* No menu bar windows if X toolkit is in use. */ |
| 574 | #define WINDOW_MENU_BAR_P(W) (0) | 574 | #define WINDOW_MENU_BAR_P(W) false |
| 575 | #endif | 575 | #endif |
| 576 | 576 | ||
| 577 | /* 1 if W is a tool bar window. */ | 577 | /* True if W is a tool bar window. */ |
| 578 | #if defined (HAVE_WINDOW_SYSTEM) && ! defined (USE_GTK) && ! defined (HAVE_NS) | 578 | #if defined (HAVE_WINDOW_SYSTEM) && ! defined (USE_GTK) && ! defined (HAVE_NS) |
| 579 | #define WINDOW_TOOL_BAR_P(W) \ | 579 | #define WINDOW_TOOL_BAR_P(W) \ |
| 580 | (WINDOWP (WINDOW_XFRAME (W)->tool_bar_window) \ | 580 | (WINDOWP (WINDOW_XFRAME (W)->tool_bar_window) \ |
| 581 | && (W) == XWINDOW (WINDOW_XFRAME (W)->tool_bar_window)) | 581 | && (W) == XWINDOW (WINDOW_XFRAME (W)->tool_bar_window)) |
| 582 | #else | 582 | #else |
| 583 | #define WINDOW_TOOL_BAR_P(W) (0) | 583 | #define WINDOW_TOOL_BAR_P(W) false |
| 584 | #endif | 584 | #endif |
| 585 | 585 | ||
| 586 | /* Return the frame y-position at which window W starts. | 586 | /* Return the frame y-position at which window W starts. |
| @@ -600,24 +600,24 @@ wset_next_buffers (struct window *w, Lisp_Object val) | |||
| 600 | ? 0 : FRAME_INTERNAL_BORDER_WIDTH (WINDOW_XFRAME (W))) \ | 600 | ? 0 : FRAME_INTERNAL_BORDER_WIDTH (WINDOW_XFRAME (W))) \ |
| 601 | + WINDOW_BOTTOM_PIXEL_EDGE (W)) | 601 | + WINDOW_BOTTOM_PIXEL_EDGE (W)) |
| 602 | 602 | ||
| 603 | /* 1 if window W takes up the full width of its frame. */ | 603 | /* True if window W takes up the full width of its frame. */ |
| 604 | #define WINDOW_FULL_WIDTH_P(W) \ | 604 | #define WINDOW_FULL_WIDTH_P(W) \ |
| 605 | (WINDOW_PIXEL_WIDTH (W) \ | 605 | (WINDOW_PIXEL_WIDTH (W) \ |
| 606 | == (WINDOW_PIXEL_WIDTH \ | 606 | == (WINDOW_PIXEL_WIDTH \ |
| 607 | (XWINDOW (FRAME_ROOT_WINDOW (WINDOW_XFRAME (W)))))) \ | 607 | (XWINDOW (FRAME_ROOT_WINDOW (WINDOW_XFRAME (W)))))) \ |
| 608 | 608 | ||
| 609 | /* 1 if window W's has no other windows to its left in its frame. */ | 609 | /* True if window W's has no other windows to its left in its frame. */ |
| 610 | 610 | ||
| 611 | #define WINDOW_LEFTMOST_P(W) \ | 611 | #define WINDOW_LEFTMOST_P(W) \ |
| 612 | (WINDOW_LEFT_PIXEL_EDGE (W) == 0) | 612 | (WINDOW_LEFT_PIXEL_EDGE (W) == 0) |
| 613 | 613 | ||
| 614 | /* 1 if window W's has no other windows to its right in its frame. */ | 614 | /* True if window W's has no other windows to its right in its frame. */ |
| 615 | #define WINDOW_RIGHTMOST_P(W) \ | 615 | #define WINDOW_RIGHTMOST_P(W) \ |
| 616 | (WINDOW_RIGHT_PIXEL_EDGE (W) \ | 616 | (WINDOW_RIGHT_PIXEL_EDGE (W) \ |
| 617 | == (WINDOW_RIGHT_PIXEL_EDGE \ | 617 | == (WINDOW_RIGHT_PIXEL_EDGE \ |
| 618 | (XWINDOW (FRAME_ROOT_WINDOW (WINDOW_XFRAME (W)))))) \ | 618 | (XWINDOW (FRAME_ROOT_WINDOW (WINDOW_XFRAME (W)))))) \ |
| 619 | 619 | ||
| 620 | /* 1 if window W's has no other windows below it in its frame | 620 | /* True if window W's has no other windows below it in its frame |
| 621 | (the minibuffer window is not counted in this respect). */ | 621 | (the minibuffer window is not counted in this respect). */ |
| 622 | #define WINDOW_BOTTOMMOST_P(W) \ | 622 | #define WINDOW_BOTTOMMOST_P(W) \ |
| 623 | (WINDOW_BOTTOM_PIXEL_EDGE (W) \ | 623 | (WINDOW_BOTTOM_PIXEL_EDGE (W) \ |
| @@ -882,7 +882,7 @@ wset_next_buffers (struct window *w, Lisp_Object val) | |||
| 882 | #define WINDOW_TEXT_TO_FRAME_PIXEL_X(W, X) \ | 882 | #define WINDOW_TEXT_TO_FRAME_PIXEL_X(W, X) \ |
| 883 | (window_box_left ((W), TEXT_AREA) + (X)) | 883 | (window_box_left ((W), TEXT_AREA) + (X)) |
| 884 | 884 | ||
| 885 | /* Nonzero if the background of the window W's fringe that is adjacent to | 885 | /* True if the background of the window W's fringe that is adjacent to |
| 886 | a scroll bar is extended to the gap between the fringe and the bar. */ | 886 | a scroll bar is extended to the gap between the fringe and the bar. */ |
| 887 | 887 | ||
| 888 | #define WINDOW_FRINGE_EXTENDED_P(w) \ | 888 | #define WINDOW_FRINGE_EXTENDED_P(w) \ |