comparison src/buffer.h @ 25019:c5eb87f3571e

Add top_line_format. (scroll_up_aggressively): New. (scroll_down_aggressively): New. (struct buffer): indicate_empty_lines renamed from indicate_zv_lines. (struct buffer): New member indicate_zv_lines. (struct buffer): New members left_margin_width and right_margin_width. (struct buffer): Add member minibuffer_prompt_length if PROMPT_IN_BUFFER.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 21 Jul 1999 21:43:52 +0000
parents a80f6d8c1dc6
children c7247eabc834
comparison
equal deleted inserted replaced
25018:890e8042db8f 25019:c5eb87f3571e
483 This comes before `name' because it is marked in a special way. */ 483 This comes before `name' because it is marked in a special way. */
484 Lisp_Object undo_list; 484 Lisp_Object undo_list;
485 485
486 /* Everything from here down must be a Lisp_Object */ 486 /* Everything from here down must be a Lisp_Object */
487 487
488
489 /* The name of this buffer. */ 488 /* The name of this buffer. */
490 Lisp_Object name; 489 Lisp_Object name;
490
491 #if !NO_PROMPT_IN_BUFFER
492 /* Amount at the start of the buffer used by a minibuffer prompt,
493 or nil if this buffer is not a mini-buffer. */
494 Lisp_Object minibuffer_prompt_length;
495 #endif
496
491 /* The name of the file visited in this buffer, or nil. */ 497 /* The name of the file visited in this buffer, or nil. */
492 Lisp_Object filename; 498 Lisp_Object filename;
493 /* Dir for expanding relative file names. */ 499 /* Dir for expanding relative file names. */
494 Lisp_Object directory; 500 Lisp_Object directory;
495 /* True iff this buffer has been backed up (if you write to the 501 /* True iff this buffer has been backed up (if you write to the
520 Lisp_Object major_mode; 526 Lisp_Object major_mode;
521 /* Pretty name of major mode (eg, "Lisp"). */ 527 /* Pretty name of major mode (eg, "Lisp"). */
522 Lisp_Object mode_name; 528 Lisp_Object mode_name;
523 /* Mode line element that controls format of mode line. */ 529 /* Mode line element that controls format of mode line. */
524 Lisp_Object mode_line_format; 530 Lisp_Object mode_line_format;
531
532 /* Analogous to mode_line_format for the line displayed at the top
533 of windows. Nil means don't display that line. */
534 Lisp_Object top_line_format;
525 535
526 /* Keys that are bound local to this buffer. */ 536 /* Keys that are bound local to this buffer. */
527 Lisp_Object keymap; 537 Lisp_Object keymap;
528 /* This buffer's local abbrev table. */ 538 /* This buffer's local abbrev table. */
529 Lisp_Object abbrev_table; 539 Lisp_Object abbrev_table;
650 Lisp_Object last_selected_window; 660 Lisp_Object last_selected_window;
651 661
652 /* Incremented each time the buffer is displayed in a window. */ 662 /* Incremented each time the buffer is displayed in a window. */
653 Lisp_Object display_count; 663 Lisp_Object display_count;
654 664
665 /* Widths of left and right marginal areas for windows displaying
666 this buffer. */
667 Lisp_Object left_margin_width, right_margin_width;
668
669 /* Non-nil means indicate lines not displaying text (in a style
670 like vi). */
671 Lisp_Object indicate_empty_lines;
672
655 /* Time stamp updated each time this buffer is displayed in a window. */ 673 /* Time stamp updated each time this buffer is displayed in a window. */
656 Lisp_Object display_time; 674 Lisp_Object display_time;
675
676 /* If scrolling the display because point is below the bottom of a
677 window showing this buffer, try to choose a window start so
678 that point ends up this number of lines from the top of the
679 window. Nil means that scrolling method isn't used. */
680 Lisp_Object scroll_up_aggressively;
681
682 /* If scrolling the display because point is above the top of a
683 window showing this buffer, try to choose a window start so
684 that point ends up this number of lines from the bottom of the
685 window. Nil means that scrolling method isn't used. */
686 Lisp_Object scroll_down_aggressively;
657 687
658 /* These are so we don't have to recompile everything 688 /* These are so we don't have to recompile everything
659 the next few times we add a new slot. */ 689 the next few times we add a new slot. */
660 Lisp_Object extra2, extra3; 690 Lisp_Object extra2, extra3;
661 }; 691 };
770 #define BUFFER_ALLOC(data,size) (data = (unsigned char *) malloc ((size))) 800 #define BUFFER_ALLOC(data,size) (data = (unsigned char *) malloc ((size)))
771 #define BUFFER_REALLOC(data,size) ((unsigned char *) realloc ((data), (size))) 801 #define BUFFER_REALLOC(data,size) ((unsigned char *) realloc ((data), (size)))
772 #define BUFFER_FREE(data) (free ((data))) 802 #define BUFFER_FREE(data) (free ((data)))
773 #define R_ALLOC_DECLARE(var,data) 803 #define R_ALLOC_DECLARE(var,data)
774 #endif 804 #endif
805