From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Obsolete variable in cc-defs.el Date: Tue, 18 Oct 2022 09:30:47 +0000 Message-ID: References: <875ygihlm3.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35314"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 18 11:45:11 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 1okj9q-0008zO-UL for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Oct 2022 11:45:10 +0200 Original-Received: from localhost ([::1]:32994 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okj9o-0004fy-UO for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Oct 2022 05:45:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okiw9-0005dX-RG for emacs-devel@gnu.org; Tue, 18 Oct 2022 05:31:02 -0400 Original-Received: from mx3.muc.de ([193.149.48.5]:16937) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okiw2-0003zO-Mj for emacs-devel@gnu.org; Tue, 18 Oct 2022 05:31:01 -0400 Original-Received: (qmail 95372 invoked by uid 3782); 18 Oct 2022 11:30:50 +0200 Original-Received: from acm.muc.de (p4fe15b73.dip0.t-ipconnect.de [79.225.91.115]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 18 Oct 2022 11:30:49 +0200 Original-Received: (qmail 6570 invoked by uid 1000); 18 Oct 2022 09:30:47 -0000 Content-Disposition: inline In-Reply-To: X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de Received-SPF: pass client-ip=193.149.48.5; envelope-from=acm@muc.de; helo=mx3.muc.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:298025 Archived-At: Hello, Stefan. On Mon, Oct 17, 2022 at 17:59:13 -0400, Stefan Monnier wrote: > > That is a mistake in declaring inhibit-point-motion-hooks obsolete. As > > long as the properties point_entered and point_left exist and work > > (regardless of whether they are declared obsolete), > > inhibit-point-motion-hooks is required. It's use shouldn't (yet) > > generate any warnings. > BTW, your code only uses `inhibit-point-motion-hooks` explicitly in > Emacs<23.2. After that it relies on > `with-silent-modifications` instead. So the byte-compile obsolescence > warning only comes from > (cc-bytecomp-defvar inhibit-point-motion-hooks) > which your code can't need when `with-silent-modifications` is `fboundp`. Indeed. Which is ironic, given that cc-bytecomp-defvar was invented to _suppress_ compiler warnings. I still say a binding of inhibit-point-motion-hooks should be in with-silent-modifications, although it's not a big thing. Surely the intangible text property will "soon" be removed, making the point moot. > Stefan -- Alan Mackenzie (Nuremberg, Germany).