[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: buffer.c/buffer.h: How to add new buffer-local variables?
From: |
Keith David Bershatsky |
Subject: |
Re: buffer.c/buffer.h: How to add new buffer-local variables? |
Date: |
Sun, 31 Mar 2019 02:03:25 -0700 |
Thank you, Eli, for reading and responding to this particular thread.
I have tried increasing MAX_PER_BUFFER_VARS from 50 to 60 and even 75, but that
no longer works. That approach worked back in early/mid-December 2018, but
does not work with a current version of Emacs master branch.
I searched pdumper.c for a few popular buffer-local variables such as
mode_line_format and cache_long_scans, but did not find them. As such, I have
no idea where else to add the new buffer local variables other than the regular
locations in buffer.c and buffer.h as demonstrated in the working/broken
patches attached to the initial post of this particular thread.
The build messages gives little clues for us to investigate this issue. I have
learned how to extract the new hash values from dmpstruct.h and insert them at
the appropriate location of pdumper.c, but that is not what causes the build to
fail in this particular issue.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> Date: [03-30-2019 20:49:57] <31 Mar 2019 06:49:57 +0300>
> From: Eli Zaretskii <address@hidden>
> To: address@hidden,Keith David Bershatsky <address@hidden>
> Subject: Re: buffer.c/buffer.h: How to add new buffer-local variables?
>
> * * *
>
> Could it be you are overflowing MAX_PER_BUFFER_VARS?