From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eshel Yaron via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#73881: 31.0.50; Unexpected warnings about recursive occurrences of obsolete functions Date: Wed, 30 Oct 2024 08:17:51 +0100 Message-ID: References: <86wmi4jh54.fsf@gnu.org> <86jze4j6wh.fsf@gnu.org> Reply-To: Eshel Yaron Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19325"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: eliz@gnu.org, acorallo@gnu.org, monnier@iro.umontreal.ca, stefankangas@gmail.com To: 73881@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 30 08:18:35 2024 Return-path: 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 ) id 1t62yQ-0004oz-Qg for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Oct 2024 08:18:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t62yA-0006W8-UN; Wed, 30 Oct 2024 03:18:18 -0400 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 ) id 1t62xv-0006V1-NW for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2024 03:18:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t62xu-0001Dk-US for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2024 03:18:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=DQUGzZmT2kgvQEBQv4jiq6GYrB10BFQ7ZKxRjWjqA0A=; b=BmajpJclqQYDRAEcQ3HY82RdwhqprNUnBJGNI5hxGzeznsYHmy/WpzMSf5ZE4QubS5GcqbC7K/fc1YWOArpHCbL2ZdeUbO8x1zQ6DExRIAIcMeSLysebJuE0p2na052/sSuwa+0JRfkuzvZcSAoqVg8wMHERkPWRovQmGQJKkAHa9tqVr+QgZqBUI11cO0eeG/ljchWMTEGNELETETd6CoU05bvWLjLIv9EesIomQwmIKawYB2bynqvNoqAzKj55o5+ggRtx830z5eTCxdQopjySi/oqJTZnBmSI98jftKLwVXOPms2raC6X40kA7c1A/IXbaRYfUj7e5CKszu+iHQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t62xu-0005yC-I4 for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2024 03:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eshel Yaron Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Oct 2024 07:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73881 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: Eli Zaretskii , Andrea Corallo , 73881@debbugs.gnu.org, Stefan Monnier , Stefan Kangas Original-Received: via spool by 73881-submit@debbugs.gnu.org id=B73881.173027267822939 (code B ref 73881); Wed, 30 Oct 2024 07:18:02 +0000 Original-Received: (at 73881) by debbugs.gnu.org; 30 Oct 2024 07:17:58 +0000 Original-Received: from localhost ([127.0.0.1]:33610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t62xp-0005xv-OF for submit@debbugs.gnu.org; Wed, 30 Oct 2024 03:17:57 -0400 Original-Received: from mail.eshelyaron.com ([107.175.124.16]:60862 helo=eshelyaron.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t62xn-0005xp-6p for 73881@debbugs.gnu.org; Wed, 30 Oct 2024 03:17:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1730272674; bh=ZS7KgXWVfeQlP7gm1v7LLqjLw6msPuFZ0SI7ZjOp5x0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=QKXFG+r2D2Ocx5a9aobTc4jU5PSDUUnxVX0RPYXAUwxJXB8AswAUt7TEtyZZaELa3 9IUoOma57B+g5BosXqgOBLTXn72bjFslnZY6yjB4qI9T/6Uker0SZ9B7ZMDdN85s1T 8U0GLMVLiPJTrty2ZjupsI/3aYQryquniyMEMHehvOiPKDGlGgR6lZgusdAtGXV6sc v+XWbOO3hrpFiDqCVV/r4h6rCbAsGt53ihIWoOaGcg9ZKvmHwkKXrUbpDOKQ0QLD+e UWlEo7K0gg00lif0m0HdzUEII/War0dAWR5fjc3s++fF7mNqsICHTmGkIy6aXu08tU GDziC1+gZ3Lvg== In-Reply-To: (Stefan Monnier via's message of "Tue, 29 Oct 2024 22:24:05 -0400") 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" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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:294546 Archived-At: Hi, Stefan Monnier writes: >> To me as well. Would there any harm in emitting the make-obsolete form >> above the defalias form to cover also the warnings for recursive calls? > > I can come up with scenarios where it would, of course, but they're > probably not too important. > > OTOH these entries are generated by a generic piece of code which > handles all the `declare` thingies and puts them all after the function > definition, and moving them *all* would seem a lot more risky. Right, it's slightly complicated... So how about using my one-line patch from upthread, which takes care of recursive calls specifically, along with your patch? Eshel