From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: buffer.c/buffer.h: How to add new buffer-local variables? Date: Mon, 08 Apr 2019 20:43:20 +0300 Message-ID: <831s2c8kav.fsf@gnu.org> References: <3C6817C0-1CDB-4F83-805E-BF6B93C77F44@gnu.org> <87y34kl7y5.fsf@igel.home> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="83922"; mail-complaints-to="usenet@blaine.gmane.org" Cc: eggert@cs.ucla.edu, emacs-devel@gnu.org, esq@lawlist.com, monnier@iro.umontreal.ca, acm@muc.de, dancol@dancol.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 08 19:43:37 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hDYIz-000Ljj-BB for ged-emacs-devel@m.gmane.org; Mon, 08 Apr 2019 19:43:37 +0200 Original-Received: from localhost ([127.0.0.1]:56652 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDYIy-0003Sm-Cv for ged-emacs-devel@m.gmane.org; Mon, 08 Apr 2019 13:43:36 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDYIs-0003SV-3l for emacs-devel@gnu.org; Mon, 08 Apr 2019 13:43:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50836) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDYIp-00087Y-L2; Mon, 08 Apr 2019 13:43:27 -0400 Original-Received: from [176.228.60.248] (port=2240 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hDYIo-0003KZ-EN; Mon, 08 Apr 2019 13:43:27 -0400 In-reply-to: <87y34kl7y5.fsf@igel.home> (message from Andreas Schwab on Mon, 08 Apr 2019 19:31:46 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:235123 Archived-At: > From: Andreas Schwab > Cc: emacs-devel@gnu.org, Keith David Bershatsky , Paul Eggert , monnier@iro.umontreal.ca, acm@muc.de, dancol@dancol.org > Date: Mon, 08 Apr 2019 19:31:46 +0200 > > On Apr 08 2019, Eli Zaretskii wrote: > > > I guess we need to make BUFFER_LISP_SIZE smarter? > > Perhaps adding a dummy member the same size as Lisp_Object, and using > that as the anchor? Could be, although this will make the struct larger than it could have been on some systems. These complications are why I wonder whether they are worth the occasional hard-to-debug bug. How hard would it be to ask to update the value when a Lisp member is added?