From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH v2 05/16] Add BVAR_DEFAULT for access to buffer defaults Date: Tue, 01 Dec 2020 19:00:51 +0200 Message-ID: <837dq1ihq4.fsf@gnu.org> References: <20201119153814.17541-1-sbaugh@catern.com> <221b8fb4daac6da7bde9d609f4bf766ad2d5b1d6.1606009917.git.sbaugh@catern.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36685"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sbaugh@catern.com, arnold@tdrhq.com, dgutov@yandex.ru, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Spencer Baugh Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 01 18:05:41 2020 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 1kk95w-0009OF-4S for ged-emacs-devel@m.gmane-mx.org; Tue, 01 Dec 2020 18:05:40 +0100 Original-Received: from localhost ([::1]:60308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kk95u-0006dz-OG for ged-emacs-devel@m.gmane-mx.org; Tue, 01 Dec 2020 12:05:38 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kk91P-0001yM-QB for emacs-devel@gnu.org; Tue, 01 Dec 2020 12:01:01 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58607) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kk91P-000725-DR; Tue, 01 Dec 2020 12:00:59 -0500 Original-Received: from [176.228.60.248] (port=2584 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kk91N-000759-Bo; Tue, 01 Dec 2020 12:00:59 -0500 In-Reply-To: <221b8fb4daac6da7bde9d609f4bf766ad2d5b1d6.1606009917.git.sbaugh@catern.com> (message from Spencer Baugh on Sat, 21 Nov 2020 21:34:34 -0500) 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:260141 Archived-At: > From: Spencer Baugh > Date: Sat, 21 Nov 2020 21:34:34 -0500 > Cc: Spencer Baugh , Arnold Noronha , > Stefan Monnier , Dmitry Gutov > > This is more direct. This macro can stay as an lvalue even when we > change BVAR to be a function call - directly changing and accessing > buffer_defaults is always fine. I think it will be confusing to have BVAR that cannot be an lvalue, and BVAR_DEFAULT that can. It will lead to mistakes and frustration. If we want to be able to assign to Vstandard_category_table etc., let's invent some internal way of doing that, but without exposing a macro whose name is similar to BVAR. (Log message is missing.) Thanks.