From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#73881: 31.0.50; Unexpected warnings about recursive occurrences of obsolete functions Date: Mon, 28 Oct 2024 15:32:52 -0700 Message-ID: References: <86wmi4jh54.fsf@gnu.org> <86jze4j6wh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13920"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73881@debbugs.gnu.org, Eli Zaretskii , Andrea Corallo , Eshel Yaron To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 28 23:35:25 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 1t5YKa-0003Tn-EW for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Oct 2024 23:35:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5YKH-0004yH-BU; Mon, 28 Oct 2024 18:35:05 -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 1t5YKG-0004y5-1F for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2024 18:35:04 -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 1t5YKF-0004Q2-Oh for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2024 18:35:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:MIME-Version:References:In-Reply-To:From:To:Subject; bh=YU/4uLkjsMITTbNfBEEK6/M+jL8rkkXfv2e71r2PoJE=; b=ri/N9GGH/i39e5yZRGXSQ21N8WP+2JTu9uFKgOIFAgLviuPcxB50aG+qefTp2aITi/hOFQN4EK69yv7EFQC5ttQnSZzQll1HHbLBIuMaWvBNow7ZOhWgzDBkFdRzn2+xi2OHRu4yLOHJngQJjQFlCeNjUnsnAaPdv9GCsCjGik9DuOcdnfOFCRAl5uC+Ebq/NwuYjInmQsLhMQ4NxSm8CjmPETzD/RPHMZFCnC3vP2G4aVv5FSSJUsFh5A6rTM5nLnCvgj5C9aNzGLxTpRTHy0sm9JrNTUOjx13r2DdML7XwLZnvnOnLpVjRBKb2st9W97PNu0IZFIxe+2LLKh+bzg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t5YKE-0000Ny-Ik for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2024 18:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Oct 2024 22:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73881 X-GNU-PR-Package: emacs Original-Received: via spool by 73881-submit@debbugs.gnu.org id=B73881.17301548421394 (code B ref 73881); Mon, 28 Oct 2024 22:35:02 +0000 Original-Received: (at 73881) by debbugs.gnu.org; 28 Oct 2024 22:34:02 +0000 Original-Received: from localhost ([127.0.0.1]:55034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5YJG-0000MG-6K for submit@debbugs.gnu.org; Mon, 28 Oct 2024 18:34:02 -0400 Original-Received: from mail-ed1-f45.google.com ([209.85.208.45]:55577) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5YJD-0000Lt-Me for 73881@debbugs.gnu.org; Mon, 28 Oct 2024 18:34:00 -0400 Original-Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-5c9693dc739so6518269a12.3 for <73881@debbugs.gnu.org>; Mon, 28 Oct 2024 15:33:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730154774; x=1730759574; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=YU/4uLkjsMITTbNfBEEK6/M+jL8rkkXfv2e71r2PoJE=; b=JYh5uTc+ufOxjeSPNqD5/kT84sxMI+bZs1/CagdKfGEtYwLGCS7GOFcF+FDwHGg5oT KLoTOtHwk3r288rUx2uCQFQt1gbNx/s5Chnpg6xzjwTqW/rranmCRtOCyR8miFauT++5 l5SCgl1oVXe3z/oUdM5YekGuWNw96mpeli7470BTyIykRqT+hf5AfGQyiRwG/ptGvctP Rj3j3Jmzk2Z32lPeCsEaklhemCzyDfTjJ8RSUDzHMm8tTGoEu7/XRIB7kC5/tE2C49z8 bjR6W61f7AX8C4JfDbNNCFdT7hDiqOYhTdkPvTQMAN63Gm2pSCHnUp8XWjIr/Q2/YRXV EdLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730154774; x=1730759574; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YU/4uLkjsMITTbNfBEEK6/M+jL8rkkXfv2e71r2PoJE=; b=Nnr07/OAIQwZBR3PxlaXbrCX2qkE/vFMxQz7aInw/IeTl4D8rwmo+A4pFolZlC8Wrt ofnJjp2qN+DKJuoO8w0smj6+PZqJfk4uanq1/7RTmlGKMIB7fRjL9i9qG7OGUGEAcSlg oNEOTVhimAojWzzE2nUg9qdM5rmSvgWkb9kpSY/mZh1lkAUdPmjYmaKSGYJBNGLgrZ46 P6bIQ5zSrS4ukInE9KpqmmlHTv0vXobDhIWplOW7YdiD9evOqz3rDTbxpV1KXhSU9JUB MKtkobSanM/c9hHpeciFfSjoBsvzqBDBSg1x3fhiAEh+KqLJWG0D71OL3OwLnJwMzawy Ljtg== X-Forwarded-Encrypted: i=1; AJvYcCUyZvTJkzXBv3MoOq9nx5awlreDmM72ROieeE0hSSfMsPso/XD40HZ3BKmNVe2jf+/w7rDlQg==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yx1Zrau3SQH/du7V1E5vpl8kDWeCqA6kr68cu4J9AI4Yi+o5cV8 quw2gHlzRFNF8gnkhPVZF8+2IS8ufllLWBr4dpGM8qZWypc7+NK1i3oQ4m09wDaQoSOvpWY3mcE +iqbUVldZIHAvyNK2uYjI5mXj3Dg= X-Google-Smtp-Source: AGHT+IGXnGYSdvECOkMyzkBGgmN86MVGiJMZgsqaAcF1VeDteTpGEzW4xQdNKlNWCPrXNYVTfvm1pH82ydJcDYOfiFA= X-Received: by 2002:a05:6402:2788:b0:5cb:615c:a6ca with SMTP id 4fb4d7f45d1cf-5cbbf90e415mr7988103a12.28.1730154773644; Mon, 28 Oct 2024 15:32:53 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 28 Oct 2024 15:32:52 -0700 In-Reply-To: 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:294455 Archived-At: Stefan Monnier writes: > I propose the patch below (which also fixes a leak of > `byte-compile-global-not-obsolete-vars` to code compiled from other > files). > But I don't think it fixes the OP's problem because > > (macroexpand '(defun my-foo () (declare (obsolete "blabla" "25")) 42)) > => > (prog1 (defalias 'my-foo #'(lambda nil ...)) > (make-obsolete 'my-foo '"blabla" "25")) > > IOW, the `make-obsolete` comes *after* the function and thus my new code > will only silence warnings for calls to `my-foo` that are present > *after* the function definition. It looks like a step in the right direction to me.