diff options
| author | Kenichi Handa | 2012-07-17 07:09:08 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2012-07-17 07:09:08 +0900 |
| commit | 8c536f15bf95916d56bb50495d22b7da7e09fff9 (patch) | |
| tree | ac6f8bf5103bdbd1d6a75f05def9bc7aa9e96547 /src/buffer.h | |
| parent | 21a8caaa4af24f258e6c7f80c1fc913b00aee044 (diff) | |
| parent | c05cf3902ae658cc8bf413124245c9e1cdcca2d7 (diff) | |
| download | emacs-8c536f15bf95916d56bb50495d22b7da7e09fff9.tar.gz emacs-8c536f15bf95916d56bb50495d22b7da7e09fff9.zip | |
merge trunk
Diffstat (limited to 'src/buffer.h')
| -rw-r--r-- | src/buffer.h | 69 |
1 files changed, 35 insertions, 34 deletions
diff --git a/src/buffer.h b/src/buffer.h index 1635a847839..3aa4b11c450 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -245,12 +245,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 245 | #define BUF_TEMP_SET_PT(buffer, position) \ | 245 | #define BUF_TEMP_SET_PT(buffer, position) \ |
| 246 | (temp_set_point ((buffer), (position))) | 246 | (temp_set_point ((buffer), (position))) |
| 247 | 247 | ||
| 248 | extern void set_point (EMACS_INT); | 248 | extern void set_point (ptrdiff_t); |
| 249 | extern void temp_set_point (struct buffer *, EMACS_INT); | 249 | extern void temp_set_point (struct buffer *, ptrdiff_t); |
| 250 | extern void set_point_both (EMACS_INT, EMACS_INT); | 250 | extern void set_point_both (ptrdiff_t, ptrdiff_t); |
| 251 | extern void temp_set_point_both (struct buffer *, | 251 | extern void temp_set_point_both (struct buffer *, |
| 252 | EMACS_INT, EMACS_INT); | 252 | ptrdiff_t, ptrdiff_t); |
| 253 | extern void enlarge_buffer_text (struct buffer *, EMACS_INT); | 253 | extern void enlarge_buffer_text (struct buffer *, ptrdiff_t); |
| 254 | 254 | ||
| 255 | 255 | ||
| 256 | /* Macros for setting the BEGV, ZV or PT of a given buffer. | 256 | /* Macros for setting the BEGV, ZV or PT of a given buffer. |
| @@ -449,38 +449,38 @@ struct buffer_text | |||
| 449 | into a buffer's text to functions that malloc. */ | 449 | into a buffer's text to functions that malloc. */ |
| 450 | unsigned char *beg; | 450 | unsigned char *beg; |
| 451 | 451 | ||
| 452 | EMACS_INT gpt; /* Char pos of gap in buffer. */ | 452 | ptrdiff_t gpt; /* Char pos of gap in buffer. */ |
| 453 | EMACS_INT z; /* Char pos of end of buffer. */ | 453 | ptrdiff_t z; /* Char pos of end of buffer. */ |
| 454 | EMACS_INT gpt_byte; /* Byte pos of gap in buffer. */ | 454 | ptrdiff_t gpt_byte; /* Byte pos of gap in buffer. */ |
| 455 | EMACS_INT z_byte; /* Byte pos of end of buffer. */ | 455 | ptrdiff_t z_byte; /* Byte pos of end of buffer. */ |
| 456 | EMACS_INT gap_size; /* Size of buffer's gap. */ | 456 | ptrdiff_t gap_size; /* Size of buffer's gap. */ |
| 457 | int modiff; /* This counts buffer-modification events | 457 | EMACS_INT modiff; /* This counts buffer-modification events |
| 458 | for this buffer. It is incremented for | 458 | for this buffer. It is incremented for |
| 459 | each such event, and never otherwise | 459 | each such event, and never otherwise |
| 460 | changed. */ | 460 | changed. */ |
| 461 | int chars_modiff; /* This is modified with character change | 461 | EMACS_INT chars_modiff; /* This is modified with character change |
| 462 | events for this buffer. It is set to | 462 | events for this buffer. It is set to |
| 463 | modiff for each such event, and never | 463 | modiff for each such event, and never |
| 464 | otherwise changed. */ | 464 | otherwise changed. */ |
| 465 | int save_modiff; /* Previous value of modiff, as of last | 465 | EMACS_INT save_modiff; /* Previous value of modiff, as of last |
| 466 | time buffer visited or saved a file. */ | 466 | time buffer visited or saved a file. */ |
| 467 | 467 | ||
| 468 | int overlay_modiff; /* Counts modifications to overlays. */ | 468 | EMACS_INT overlay_modiff; /* Counts modifications to overlays. */ |
| 469 | 469 | ||
| 470 | /* Minimum value of GPT - BEG since last redisplay that finished. */ | 470 | /* Minimum value of GPT - BEG since last redisplay that finished. */ |
| 471 | EMACS_INT beg_unchanged; | 471 | ptrdiff_t beg_unchanged; |
| 472 | 472 | ||
| 473 | /* Minimum value of Z - GPT since last redisplay that finished. */ | 473 | /* Minimum value of Z - GPT since last redisplay that finished. */ |
| 474 | EMACS_INT end_unchanged; | 474 | ptrdiff_t end_unchanged; |
| 475 | 475 | ||
| 476 | /* MODIFF as of last redisplay that finished; if it matches MODIFF, | 476 | /* MODIFF as of last redisplay that finished; if it matches MODIFF, |
| 477 | beg_unchanged and end_unchanged contain no useful information. */ | 477 | beg_unchanged and end_unchanged contain no useful information. */ |
| 478 | int unchanged_modified; | 478 | EMACS_INT unchanged_modified; |
| 479 | 479 | ||
| 480 | /* BUF_OVERLAY_MODIFF of current buffer, as of last redisplay that | 480 | /* BUF_OVERLAY_MODIFF of current buffer, as of last redisplay that |
| 481 | finished; if it matches BUF_OVERLAY_MODIFF, beg_unchanged and | 481 | finished; if it matches BUF_OVERLAY_MODIFF, beg_unchanged and |
| 482 | end_unchanged contain no useful information. */ | 482 | end_unchanged contain no useful information. */ |
| 483 | int overlay_unchanged_modified; | 483 | EMACS_INT overlay_unchanged_modified; |
| 484 | 484 | ||
| 485 | /* Properties of this buffer's text. */ | 485 | /* Properties of this buffer's text. */ |
| 486 | INTERVAL intervals; | 486 | INTERVAL intervals; |
| @@ -536,17 +536,17 @@ struct buffer | |||
| 536 | struct buffer_text *text; | 536 | struct buffer_text *text; |
| 537 | 537 | ||
| 538 | /* Char position of point in buffer. */ | 538 | /* Char position of point in buffer. */ |
| 539 | EMACS_INT pt; | 539 | ptrdiff_t pt; |
| 540 | /* Byte position of point in buffer. */ | 540 | /* Byte position of point in buffer. */ |
| 541 | EMACS_INT pt_byte; | 541 | ptrdiff_t pt_byte; |
| 542 | /* Char position of beginning of accessible range. */ | 542 | /* Char position of beginning of accessible range. */ |
| 543 | EMACS_INT begv; | 543 | ptrdiff_t begv; |
| 544 | /* Byte position of beginning of accessible range. */ | 544 | /* Byte position of beginning of accessible range. */ |
| 545 | EMACS_INT begv_byte; | 545 | ptrdiff_t begv_byte; |
| 546 | /* Char position of end of accessible range. */ | 546 | /* Char position of end of accessible range. */ |
| 547 | EMACS_INT zv; | 547 | ptrdiff_t zv; |
| 548 | /* Byte position of end of accessible range. */ | 548 | /* Byte position of end of accessible range. */ |
| 549 | EMACS_INT zv_byte; | 549 | ptrdiff_t zv_byte; |
| 550 | 550 | ||
| 551 | /* In an indirect buffer, this points to the base buffer. | 551 | /* In an indirect buffer, this points to the base buffer. |
| 552 | In an ordinary buffer, it is 0. */ | 552 | In an ordinary buffer, it is 0. */ |
| @@ -572,16 +572,16 @@ struct buffer | |||
| 572 | modtime is actually set. */ | 572 | modtime is actually set. */ |
| 573 | off_t modtime_size; | 573 | off_t modtime_size; |
| 574 | /* The value of text->modiff at the last auto-save. */ | 574 | /* The value of text->modiff at the last auto-save. */ |
| 575 | int auto_save_modified; | 575 | EMACS_INT auto_save_modified; |
| 576 | /* The value of text->modiff at the last display error. | 576 | /* The value of text->modiff at the last display error. |
| 577 | Redisplay of this buffer is inhibited until it changes again. */ | 577 | Redisplay of this buffer is inhibited until it changes again. */ |
| 578 | int display_error_modiff; | 578 | EMACS_INT display_error_modiff; |
| 579 | /* The time at which we detected a failure to auto-save, | 579 | /* The time at which we detected a failure to auto-save, |
| 580 | Or 0 if we didn't have a failure. */ | 580 | Or 0 if we didn't have a failure. */ |
| 581 | time_t auto_save_failure_time; | 581 | time_t auto_save_failure_time; |
| 582 | /* Position in buffer at which display started | 582 | /* Position in buffer at which display started |
| 583 | the last time this buffer was displayed. */ | 583 | the last time this buffer was displayed. */ |
| 584 | EMACS_INT last_window_start; | 584 | ptrdiff_t last_window_start; |
| 585 | 585 | ||
| 586 | /* Set nonzero whenever the narrowing is changed in this buffer. */ | 586 | /* Set nonzero whenever the narrowing is changed in this buffer. */ |
| 587 | int clip_changed; | 587 | int clip_changed; |
| @@ -618,7 +618,7 @@ struct buffer | |||
| 618 | struct Lisp_Overlay *overlays_after; | 618 | struct Lisp_Overlay *overlays_after; |
| 619 | 619 | ||
| 620 | /* Position where the overlay lists are centered. */ | 620 | /* Position where the overlay lists are centered. */ |
| 621 | EMACS_INT overlay_center; | 621 | ptrdiff_t overlay_center; |
| 622 | 622 | ||
| 623 | /* Everything from here down must be a Lisp_Object. */ | 623 | /* Everything from here down must be a Lisp_Object. */ |
| 624 | /* buffer-local Lisp variables start at `undo_list', | 624 | /* buffer-local Lisp variables start at `undo_list', |
| @@ -901,20 +901,21 @@ extern struct buffer buffer_local_symbols; | |||
| 901 | 901 | ||
| 902 | extern void delete_all_overlays (struct buffer *); | 902 | extern void delete_all_overlays (struct buffer *); |
| 903 | extern void reset_buffer (struct buffer *); | 903 | extern void reset_buffer (struct buffer *); |
| 904 | extern void evaporate_overlays (EMACS_INT); | 904 | extern void evaporate_overlays (ptrdiff_t); |
| 905 | extern ptrdiff_t overlays_at (EMACS_INT pos, int extend, Lisp_Object **vec_ptr, | 905 | extern ptrdiff_t overlays_at (EMACS_INT pos, int extend, Lisp_Object **vec_ptr, |
| 906 | ptrdiff_t *len_ptr, EMACS_INT *next_ptr, | 906 | ptrdiff_t *len_ptr, ptrdiff_t *next_ptr, |
| 907 | EMACS_INT *prev_ptr, int change_req); | 907 | ptrdiff_t *prev_ptr, int change_req); |
| 908 | extern ptrdiff_t sort_overlays (Lisp_Object *, ptrdiff_t, struct window *); | 908 | extern ptrdiff_t sort_overlays (Lisp_Object *, ptrdiff_t, struct window *); |
| 909 | extern void recenter_overlay_lists (struct buffer *, EMACS_INT); | 909 | extern void recenter_overlay_lists (struct buffer *, ptrdiff_t); |
| 910 | extern EMACS_INT overlay_strings (EMACS_INT, struct window *, unsigned char **); | 910 | extern ptrdiff_t overlay_strings (ptrdiff_t, struct window *, unsigned char **); |
| 911 | extern void validate_region (Lisp_Object *, Lisp_Object *); | 911 | extern void validate_region (Lisp_Object *, Lisp_Object *); |
| 912 | extern void set_buffer_internal (struct buffer *); | 912 | extern void set_buffer_internal (struct buffer *); |
| 913 | extern void set_buffer_internal_1 (struct buffer *); | 913 | extern void set_buffer_internal_1 (struct buffer *); |
| 914 | extern void set_buffer_temp (struct buffer *); | 914 | extern void set_buffer_temp (struct buffer *); |
| 915 | extern Lisp_Object buffer_local_value_1 (Lisp_Object, Lisp_Object); | ||
| 915 | extern void record_buffer (Lisp_Object); | 916 | extern void record_buffer (Lisp_Object); |
| 916 | extern void buffer_slot_type_mismatch (Lisp_Object, int) NO_RETURN; | 917 | extern void buffer_slot_type_mismatch (Lisp_Object, int) NO_RETURN; |
| 917 | extern void fix_overlays_before (struct buffer *, EMACS_INT, EMACS_INT); | 918 | extern void fix_overlays_before (struct buffer *, ptrdiff_t, ptrdiff_t); |
| 918 | extern void mmap_set_vars (int); | 919 | extern void mmap_set_vars (int); |
| 919 | 920 | ||
| 920 | /* Get overlays at POSN into array OVERLAYS with NOVERLAYS elements. | 921 | /* Get overlays at POSN into array OVERLAYS with NOVERLAYS elements. |