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: master b2e6e95581: Only reset buffer-local buffer-stale-function in make-indirect-buffer Date: Tue, 12 Jul 2022 16:42:12 +0300 Message-ID: <83h73mxxaj.fsf@gnu.org> References: <165754851290.3031.9159264035427641051@vcs2.savannah.gnu.org> <20220711140833.3343AC0D772@vcs2.savannah.gnu.org> <87r12qqzdu.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8585"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 12 15:44:41 2022 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 1oBGBt-00022C-BO for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Jul 2022 15:44:41 +0200 Original-Received: from localhost ([::1]:53536 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBGBr-00030L-U5 for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Jul 2022 09:44:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBG9e-0000l1-Im for emacs-devel@gnu.org; Tue, 12 Jul 2022 09:42:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42132) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBG9e-0000H2-6p; Tue, 12 Jul 2022 09:42:22 -0400 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=fAOMQKq8uj1hcVA+mI+pnVDaZlPJ6+boV6GhbYobvfw=; b=o8ig7szAEZwf o2nm1JK3H1n9CQAkb7i7bT6DUjehOUMBLbpn5hlMmLfZp07ey9l8j+9SCdNMn/KrnhnfHlEBCZW91 Cm1/A9yaND6XSGmwFo9Zf0m86QRxobVhXYedLQAY3ddu3vcVYmE2AcLiXLJ76yd0Ip/8LEo5r/QVe xAE06AOetggX+vi+lGrQqg0JB8Ys9UmzDWzT6tJ5C/xRuHZxLUxvfN85VT9diwTLppse7W2WgeIuI FuCbPnPvYLP2Rs4UsGHadacrNjCYP3zSXzQgB6NPvpUaG9QqwNQ+z1ni1787zDIObqsD0fBcuqmNb Yzvr0AplREfF5IDBdf/39A==; Original-Received: from [87.69.77.57] (port=4171 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBG9d-00038b-Mw; Tue, 12 Jul 2022 09:42:22 -0400 In-Reply-To: <87r12qqzdu.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 12 Jul 2022 14:38:53 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:292077 Archived-At: > From: Lars Ingebrigtsen > Cc: emacs-devel@gnu.org > Date: Tue, 12 Jul 2022 14:38:53 +0200 > > Eli Zaretskii writes: > > > I'm also not sure it is wise not to use nil here, since > > buffer-stale--default-function is only defined when files.el is > > loaded, so this could cause trouble during bootstrap (if not now, then > > in some distant future). At least Ffboundp test is in order, I think. > > nil is documented to be a legacy value, so it shouldn't be used. What about the scenario I presented, where buffer-stale--default-function is not yet known?