Mercurial > emacs
comparison src/buffer.h @ 53362:35a817bb4c0d
Comment change.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Mon, 29 Dec 2003 11:22:31 +0000 |
| parents | 695cf19ef79e |
| children | c7c62631959b |
comparison
equal
deleted
inserted
replaced
| 53361:b5fb2115d482 | 53362:35a817bb4c0d |
|---|---|
| 904 if ((IDX) < 0 || (IDX) >= last_per_buffer_idx) \ | 904 if ((IDX) < 0 || (IDX) >= last_per_buffer_idx) \ |
| 905 abort (); \ | 905 abort (); \ |
| 906 (B)->local_flags[IDX] = (VAL); \ | 906 (B)->local_flags[IDX] = (VAL); \ |
| 907 } while (0) | 907 } while (0) |
| 908 | 908 |
| 909 /* Return the index of the per-buffer variable at offset OFFSET in the | 909 /* Return the index value of the per-buffer variable at offset OFFSET |
| 910 buffer structure. */ | 910 in the buffer structure. |
| 911 | |
| 912 If the slot OFFSET has a corresponding default value in | |
| 913 buffer_defaults, the index value is positive and has only one | |
| 914 nonzero bit. When a buffer has its own local value for a slot, the | |
| 915 bit for that slot (found in the same slot in this structure) is | |
| 916 turned on in the buffer's local_flags array. | |
| 917 | |
| 918 If the index value is -1, even though there may be a | |
| 919 DEFVAR_PER_BUFFER for the slot, there is no default value for it; | |
| 920 and the corresponding slot in buffer_defaults is not used. | |
| 921 | |
| 922 If the index value is -2, then there is no DEFVAR_PER_BUFFER for | |
| 923 the slot, but there is a default value which is copied into each | |
| 924 new buffer. | |
| 925 | |
| 926 If a slot in this structure corresponding to a DEFVAR_PER_BUFFER is | |
| 927 zero, that is a bug */ | |
| 928 | |
| 911 | 929 |
| 912 #define PER_BUFFER_IDX(OFFSET) \ | 930 #define PER_BUFFER_IDX(OFFSET) \ |
| 913 XINT (*(Lisp_Object *)((OFFSET) + (char *) &buffer_local_flags)) | 931 XINT (*(Lisp_Object *)((OFFSET) + (char *) &buffer_local_flags)) |
| 914 | 932 |
| 915 /* Return the default value of the per-buffer variable at offset | 933 /* Return the default value of the per-buffer variable at offset |
