diff options
| author | Lars Ingebrigtsen | 2021-02-14 12:37:44 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-02-14 12:37:44 +0100 |
| commit | 760910f4917ad8ff5e1cd1bf0bfec443b02f0e44 (patch) | |
| tree | e917992524075eba732a2bc7ae21789b9ab9b570 /src/buffer.h | |
| parent | 103039b06c2c9a917fc796d2a4afda8433e37473 (diff) | |
| download | emacs-760910f4917ad8ff5e1cd1bf0bfec443b02f0e44.tar.gz emacs-760910f4917ad8ff5e1cd1bf0bfec443b02f0e44.zip | |
Add a new buffer-local variable `minor-modes'
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Keep
`minor-modes' updated.
* src/buffer.c (bset_minor_modes, Fmake_indirect_buffer)
(reset_buffer, init_buffer_once): Initialise `minor-modes'.
(syms_of_buffer): Add `minor-modes' as a new permanently-local
variable.
* src/buffer.h (struct buffer): Add minor_modes_.
Diffstat (limited to 'src/buffer.h')
| -rw-r--r-- | src/buffer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buffer.h b/src/buffer.h index 790291f1185..0668d16608b 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -338,6 +338,9 @@ struct buffer | |||
| 338 | /* Symbol naming major mode (e.g., lisp-mode). */ | 338 | /* Symbol naming major mode (e.g., lisp-mode). */ |
| 339 | Lisp_Object major_mode_; | 339 | Lisp_Object major_mode_; |
| 340 | 340 | ||
| 341 | /* Symbol listing all currently enabled minor modes. */ | ||
| 342 | Lisp_Object minor_modes_; | ||
| 343 | |||
| 341 | /* Pretty name of major mode (e.g., "Lisp"). */ | 344 | /* Pretty name of major mode (e.g., "Lisp"). */ |
| 342 | Lisp_Object mode_name_; | 345 | Lisp_Object mode_name_; |
| 343 | 346 | ||