From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Spencer Baugh Newsgroups: gmane.emacs.devel Subject: [PATCH 0/7] Cleanups and tests for DEFVAR_PER_BUFFER variables Date: Tue, 23 Mar 2021 23:11:50 -0400 Message-ID: Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8233"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Spencer Baugh , Eli Zaretskii , Stefan Monnier To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Mar 24 04:13:59 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOty2-000203-Gf for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Mar 2021 04:13:58 +0100 Original-Received: from localhost ([::1]:48196 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOty1-0007oR-Fr for ged-emacs-devel@m.gmane-mx.org; Tue, 23 Mar 2021 23:13:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58706) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOtwN-00067t-Rp for emacs-devel@gnu.org; Tue, 23 Mar 2021 23:12:15 -0400 Original-Received: from venus.catern.com ([68.183.49.163]:45414) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOtwH-0000iv-Vq; Tue, 23 Mar 2021 23:12:15 -0400 Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=98.7.229.235; helo=localhost; envelope-from=sbaugh@catern.com; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=catern.com; s=mail; t=1616555528; bh=MH3wlxHiKOkfwT38wUTYEj4MB5bh5eGHePGySF2jNdU=; h=From:To:Cc:Subject:Date; b=lh7zCJu8hTjaGsMT1O3uo3cIC3/ii1bNEXNv6k9d+R63TV4O+5mFk/lG2wqL+qMtl R3AE2xRxRkMKZ0bDF9IC/OAh6BnvXzocktXDs2bsoLPHWYOYjzgXwd9JfifRvzE6Bw d5Dp4bD+JI10Kt9sSybTxbUhwYnLQfEiInPHFyBU= Original-Received: from localhost (cpe-98-7-229-235.nyc.res.rr.com [98.7.229.235]) by venus.catern.com (Postfix) with ESMTPSA id 4EA1B2E66F4; Wed, 24 Mar 2021 03:12:08 +0000 (UTC) X-Mailer: git-send-email 2.28.0 Received-SPF: pass client-ip=68.183.49.163; envelope-from=sbaugh@catern.com; helo=venus.catern.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:266906 Archived-At: Hi emacs-devel, These are some cleanups and tests for DEFVAR_PER_BUFFER variables. I think they are all uncontroversial. These are extracted from the patch series I sent some months ago (Subject: Speeding up DEFVAR_PER_BUFFER). Specifically, these are the patches that were approved as fine independent of the rest of the series. And they have changelog entries in the commit messages now :) These are pre-requisites for my DEFVAR_PER_BUFFER improvements (which I'll be resending soon), so it would be nice to apply them ahead of that. Spencer Baugh (7): Add a test for let-binding unwinding Assert not local-variable-p after setq in let_default binding Stop checking the constant default for enable_multibyte_characters Take buffer field name in DEFVAR_PER_BUFFER Combine unnecessarily separate loops in buffer.c Assert that PER_BUFFER_IDX for Lisp variables is not 0 Remove unnecessary Qunbound check src/buffer.c | 147 ++++++++++++++++++++--------------------- src/data.c | 4 +- src/print.c | 6 +- src/process.c | 15 ++--- test/src/data-tests.el | 23 +++++++ 5 files changed, 101 insertions(+), 94 deletions(-) -- 2.28.0