aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.h
diff options
context:
space:
mode:
authorMiles Bader2007-12-06 09:51:45 +0000
committerMiles Bader2007-12-06 09:51:45 +0000
commit0bd508417142ff377f34aec8dcec9438d9175c2c (patch)
tree4d60fe09e5cebf7d79766b11e9cda8cc1c9dbb9b /src/buffer.h
parent98fe991da804a42f53f6a5e84cd5eab18a82e181 (diff)
parent9fb1ba8090da3528de56158a79bd3527d31c7f2f (diff)
downloademacs-0bd508417142ff377f34aec8dcec9438d9175c2c.tar.gz
emacs-0bd508417142ff377f34aec8dcec9438d9175c2c.zip
Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-294
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h38
1 files changed, 10 insertions, 28 deletions
diff --git a/src/buffer.h b/src/buffer.h
index d9e82d62b17..22cb21cb3ae 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -561,6 +561,15 @@ struct buffer
561 /* Position where the overlay lists are centered. */ 561 /* Position where the overlay lists are centered. */
562 EMACS_INT overlay_center; 562 EMACS_INT overlay_center;
563 563
564 /* Changes in the buffer are recorded here for undo.
565 t means don't record anything.
566 This information belongs to the base buffer of an indirect buffer,
567 But we can't store it in the struct buffer_text
568 because local variables have to be right in the struct buffer.
569 So we copy it around in set_buffer_internal.
570 This comes before `name' because it is marked in a special way. */
571 Lisp_Object undo_list;
572
564 /* Everything from here down must be a Lisp_Object. */ 573 /* Everything from here down must be a Lisp_Object. */
565 574
566 /* The name of this buffer. */ 575 /* The name of this buffer. */
@@ -601,15 +610,6 @@ struct buffer
601 /* Mode line element that controls format of mode line. */ 610 /* Mode line element that controls format of mode line. */
602 Lisp_Object mode_line_format; 611 Lisp_Object mode_line_format;
603 612
604 /* Changes in the buffer are recorded here for undo.
605 t means don't record anything.
606 This information belongs to the base buffer of an indirect buffer,
607 But we can't store it in the struct buffer_text
608 because local variables have to be right in the struct buffer.
609 So we copy it around in set_buffer_internal.
610 This comes before `name' because it is marked in a special way. */
611 Lisp_Object undo_list;
612
613 /* Analogous to mode_line_format for the line displayed at the top 613 /* Analogous to mode_line_format for the line displayed at the top
614 of windows. Nil means don't display that line. */ 614 of windows. Nil means don't display that line. */
615 Lisp_Object header_line_format; 615 Lisp_Object header_line_format;
@@ -827,18 +827,6 @@ extern struct buffer buffer_local_flags;
827 that don't have such names. */ 827 that don't have such names. */
828 828
829extern struct buffer buffer_local_symbols; 829extern struct buffer buffer_local_symbols;
830
831/* This structure holds the required types for the values in the
832 buffer-local slots. If a slot contains Qnil, then the
833 corresponding buffer slot may contain a value of any type. If a
834 slot contains an integer, then prospective values' tags must be
835 equal to that integer (except nil is always allowed).
836 When a tag does not match, the function
837 buffer_slot_type_mismatch will signal an error.
838
839 If a slot here contains -1, the corresponding variable is read-only. */
840
841extern struct buffer buffer_local_types;
842 830
843extern void delete_all_overlays P_ ((struct buffer *)); 831extern void delete_all_overlays P_ ((struct buffer *));
844extern void reset_buffer P_ ((struct buffer *)); 832extern void reset_buffer P_ ((struct buffer *));
@@ -852,7 +840,7 @@ extern void set_buffer_internal P_ ((struct buffer *));
852extern void set_buffer_internal_1 P_ ((struct buffer *)); 840extern void set_buffer_internal_1 P_ ((struct buffer *));
853extern void set_buffer_temp P_ ((struct buffer *)); 841extern void set_buffer_temp P_ ((struct buffer *));
854extern void record_buffer P_ ((Lisp_Object)); 842extern void record_buffer P_ ((Lisp_Object));
855extern void buffer_slot_type_mismatch P_ ((int)) NO_RETURN; 843extern void buffer_slot_type_mismatch P_ ((Lisp_Object, int)) NO_RETURN;
856extern void fix_overlays_before P_ ((struct buffer *, EMACS_INT, EMACS_INT)); 844extern void fix_overlays_before P_ ((struct buffer *, EMACS_INT, EMACS_INT));
857extern void mmap_set_vars P_ ((int)); 845extern void mmap_set_vars P_ ((int));
858 846
@@ -1005,11 +993,5 @@ extern int last_per_buffer_idx;
1005#define PER_BUFFER_SYMBOL(OFFSET) \ 993#define PER_BUFFER_SYMBOL(OFFSET) \
1006 (*(Lisp_Object *)((OFFSET) + (char *) &buffer_local_symbols)) 994 (*(Lisp_Object *)((OFFSET) + (char *) &buffer_local_symbols))
1007 995
1008/* Return the type of the per-buffer variable at offset OFFSET in the
1009 buffer structure. */
1010
1011#define PER_BUFFER_TYPE(OFFSET) \
1012 (*(Lisp_Object *)((OFFSET) + (char *) &buffer_local_types))
1013
1014/* arch-tag: 679305dd-d41c-4a50-b170-3caf5c97b2d1 996/* arch-tag: 679305dd-d41c-4a50-b170-3caf5c97b2d1
1015 (do not change this comment) */ 997 (do not change this comment) */