From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Eli Zaretskii <eliz@gnu.org>
Newsgroups: gmane.emacs.bugs
Subject: bug#49160: 28.0.50; [PATCH] Uninitialized inhibit_buffer_hooks
Date: Wed, 11 Jan 2023 22:23:01 +0200
Message-ID: <83wn5slt22.fsf@gnu.org>
References: <874kdratxt.fsf@dick> <83fsxaunxe.fsf@gnu.org>
 <87a6mijmrb.fsf@gnus.org> <87sfggx21q.fsf@tcd.ie>
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="26500"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: larsi@gnus.org, 49160@debbugs.gnu.org, dick.r.chiang@gmail.com
To: "Basil L. Contovounesios" <contovob@tcd.ie>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 11 21:23:17 2023
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
Envelope-to: geb-bug-gnu-emacs@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 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1pFhcy-0006kS-QT
	for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Jan 2023 21:23:16 +0100
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces@gnu.org>)
	id 1pFhcm-0006FN-6I; Wed, 11 Jan 2023 15:23:04 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1pFhck-0006Ey-OL
 for bug-gnu-emacs@gnu.org; Wed, 11 Jan 2023 15:23:02 -0500
Original-Received: from debbugs.gnu.org ([209.51.188.43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1pFhck-0003fT-E6
 for bug-gnu-emacs@gnu.org; Wed, 11 Jan 2023 15:23:02 -0500
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1pFhck-0006iQ-4D
 for bug-gnu-emacs@gnu.org; Wed, 11 Jan 2023 15:23:02 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: Eli Zaretskii <eliz@gnu.org>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Wed, 11 Jan 2023 20:23:02 +0000
Resent-Message-ID: <handler.49160.B49160.167346856225774@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 49160
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: patch
Original-Received: via spool by 49160-submit@debbugs.gnu.org id=B49160.167346856225774
 (code B ref 49160); Wed, 11 Jan 2023 20:23:02 +0000
Original-Received: (at 49160) by debbugs.gnu.org; 11 Jan 2023 20:22:42 +0000
Original-Received: from localhost ([127.0.0.1]:43968 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1pFhcP-0006he-Pf
 for submit@debbugs.gnu.org; Wed, 11 Jan 2023 15:22:42 -0500
Original-Received: from eggs.gnu.org ([209.51.188.92]:39318)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@gnu.org>) id 1pFhcL-0006hN-FX
 for 49160@debbugs.gnu.org; Wed, 11 Jan 2023 15:22:40 -0500
Original-Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@gnu.org>)
 id 1pFhcE-0003bX-FP; Wed, 11 Jan 2023 15:22:30 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=mltJyQM0Y3HzvQ51bFelVwBhr6m8rjIM467GCzpnJs0=; b=meEYuh9qP/xy
 m6edRCT6Hpm4+N1jDymb7DisONPl30w8KYIZP8RjUR0ZOuvJeXa1RSAsaCSz0CERLUaMwJ7mAGlhk
 xpd+65CtRK+Qx0oel6V5wq8Tn4s1x3LBeCgwwU8LaqBj6uDZ2sLDvTvAGqtjA2Wtu554HTMJx7iW4
 ft/QvGQp8vRbPd0a5RpcgO4nzeR4SvkQgTbjGk6RSukjrqaKvMY1ojBIQGVtHB7Kyuv5467ukG9fK
 DioAzFU09Y+vOX5pxTZr1MdUro7ofIKG8JU4h46W6S5aWdniJu91DkTU1Nuy1EZbyXmc89eEKp9Px
 x4d4XmqoEDpcdR64SseQ7g==;
Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@gnu.org>)
 id 1pFhcD-0007K2-54; Wed, 11 Jan 2023 15:22:29 -0500
In-Reply-To: <87sfggx21q.fsf@tcd.ie> (contovob@tcd.ie)
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
 the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Xref: news.gmane.io gmane.emacs.bugs:253166
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/253166>

> From: "Basil L. Contovounesios" <contovob@tcd.ie>
> Cc: Eli Zaretskii <eliz@gnu.org>,  49160@debbugs.gnu.org,  dick
>  <dick.r.chiang@gmail.com>
> Date: Wed, 11 Jan 2023 20:13:21 +0000
> 
> >> More to the point: since this attribute of a buffer cannot be changed
> >> once the buffer is created, I think it might be okay to copy from the
> >> base buffer, but we should also allow the caller to control that by
> >> introducing an optional argument similar to that of get-buffer-create.
> >> And if we do that, we could also consider making the default value be
> >> nil, not necessarily a copy of that of the base buffer.
> >
> > I've now applied Dick's patch, and then adjusted as you suggest.
> 
> Fmake_indirect_buffer continues to run buffer-list-update-hook
> regardless of the new argument.  Any objections to changing that?

buffer-list-update-hook is not a buffer-hook, strictly speaking.  So
I'm not sure we want this.  What is the real-life use case behind this
request?