diff options
| author | Paul Eggert | 2019-04-08 12:59:22 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-04-08 13:01:21 -0700 |
| commit | a038df77de7b1aa2d73a6478493b8838b59e4982 (patch) | |
| tree | fbaa0087bab52a815dfd249d189301e53de0d345 /src/window.h | |
| parent | 31e9087cdcd0b78b2247c3d8532290881abfbb08 (diff) | |
| download | emacs-a038df77de7b1aa2d73a6478493b8838b59e4982.tar.gz emacs-a038df77de7b1aa2d73a6478493b8838b59e4982.zip | |
Allow gap before first non-Lisp pseudovec member
Problem reported by Keith David Bershatsky in:
https://lists.gnu.org/r/emacs-devel/2019-04/msg00259.html
Solution suggested by Stefan Monnier in:
https://lists.gnu.org/r/emacs-devel/2019-04/msg00282.html
* src/buffer.h (BUFFER_LISP_SIZE): Simplify by using PSEUDOVECSIZE.
(BUFFER_REST_SIZE): Simplify by using VECSIZE and BUFFER_LISP_SIZE.
* src/lisp.h (PSEUDOVECSIZE): Base it on the last Lisp field,
not the first non-Lisp field. All callers changed. Callers
without Lisp fields changed to use ALLOCATE_PLAIN_PSEUDOVECTOR.
(ALLOCATE_PLAIN_PSEUDOVECTOR): New macro.
Diffstat (limited to 'src/window.h')
| -rw-r--r-- | src/window.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/window.h b/src/window.h index 4235a6eade2..fdef407041b 100644 --- a/src/window.h +++ b/src/window.h | |||
| @@ -212,9 +212,8 @@ struct window | |||
| 212 | /* The help echo text for this window. Qnil if there's none. */ | 212 | /* The help echo text for this window. Qnil if there's none. */ |
| 213 | Lisp_Object mode_line_help_echo; | 213 | Lisp_Object mode_line_help_echo; |
| 214 | 214 | ||
| 215 | /* No Lisp data may follow below this point without changing | 215 | /* No Lisp data may follow this point; mode_line_help_echo must be |
| 216 | mark_object in alloc.c. The member current_matrix must be the | 216 | the last Lisp member. */ |
| 217 | first non-Lisp member. */ | ||
| 218 | 217 | ||
| 219 | /* Glyph matrices. */ | 218 | /* Glyph matrices. */ |
| 220 | struct glyph_matrix *current_matrix; | 219 | struct glyph_matrix *current_matrix; |