|
From: | Po Lu |
Subject: | Re: Tree-sitter integration on feature/tree-sitter |
Date: | Fri, 17 Jun 2022 09:24:21 +0800 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) |
Yuan Fu <casouri@gmail.com> writes: > Can I just add a new Lisp_Object field in struct buffer? I assume > that’s how you add an internal buffer-local data? Yes. Make sure the field is placed before `cursor_in_non_selected_windows_', or it won't be traced by GC. Also make sure to access it using the `BVAR' macro and add a corresponding `DEFVAR_PER_BUFFER' form in syms_of_buffer if it's supposed to be a buffer local variable.
[Prev in Thread] | Current Thread | [Next in Thread] |