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: Sun, 20 Oct 2024 04:51:53 -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="26782"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73881@debbugs.gnu.org, Andrea Corallo , Eshel Yaron To: Stefan Monnier , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 20 13:53:55 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 1t2UVP-0006ma-G7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Oct 2024 13:53:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t2UV8-000735-TD; Sun, 20 Oct 2024 07:53:38 -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 1t2UV7-00072a-Gf for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2024 07:53:37 -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 1t2UV7-0005rT-8G for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2024 07:53:37 -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=pliQgQigVJFM+AsXHEtc8/Mz9aHCNTjM2IFI4B71yRs=; b=rxfOyOeHmlMyCll4sx0x4VtgayhFOIkqBJPqQNobwuy3Whm5bT62NcWWg4AUVdNcT7k9Q8J5aa6f7edHFok/rM/suLNiONg21zdk3YvE4uNjoDx6HP32VNf5jNXe3JJWl0CdOgKg+XY9WtGdEMoSpHBkrEmZFp03Nlwu2cLKhbea8koJvQvdrgFpW8bzKvtHSUOoh0efuWb04UVfkMFe/n3pjneDITr5Ps0J2dvKUmcmw+nLRWv/wtGhIlstn3Vy5BB5HRB7AoelWUq0BzC73UB7CKKDDNJ2+G/DTD7ZEUNrrWC+xhcC5ewsBSJ6vFGJIz1gak+RsMxTdIjrEQn5TQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t2UVW-0003IK-8W for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2024 07:54: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: Sun, 20 Oct 2024 11:54: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.172942520612611 (code B ref 73881); Sun, 20 Oct 2024 11:54:02 +0000 Original-Received: (at 73881) by debbugs.gnu.org; 20 Oct 2024 11:53:26 +0000 Original-Received: from localhost ([127.0.0.1]:46167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2UUw-0003HK-1g for submit@debbugs.gnu.org; Sun, 20 Oct 2024 07:53:26 -0400 Original-Received: from mail-ed1-f50.google.com ([209.85.208.50]:47117) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2UUu-0003H3-To for 73881@debbugs.gnu.org; Sun, 20 Oct 2024 07:53:25 -0400 Original-Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-5c94c4ad9d8so4598018a12.2 for <73881@debbugs.gnu.org>; Sun, 20 Oct 2024 04:52:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729425114; x=1730029914; 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=pliQgQigVJFM+AsXHEtc8/Mz9aHCNTjM2IFI4B71yRs=; b=DKIH8jMH/+DrY+ZcqJ21/u37wBziaexE8fidY2rjJv+j/HmrleucwRjqCVJD7nHLy+ jfZPwHYDXcW5F6aw35ocq2sBCLSdN8aJyfXf24uwBEIUNs+JDjhBQ5O7LzZsMR0N5qUK VOHuxw4J76R7+B5skMM/SIYe9YRmMzax058MWQh4W81dyDYumAQPHQsm0mQFr0FlknNP 5u3jewCB2fdZD0ilBAJimDj3XsN8D5peW1WtzfzWz9TvZe0LTs9bEsU7DoA0TqM9edbQ SxRHx1yUJzEVcGCtXK6cu0DgSJ+gb8E2udyAFsYQXC+xg08Rv/yVF1UuTCagrMgUt3Dn Z3oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729425114; x=1730029914; 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=pliQgQigVJFM+AsXHEtc8/Mz9aHCNTjM2IFI4B71yRs=; b=qrSvhHZYDXHUCB2kFfw65pHqpl6WLaVjTM0z17BaxrmnY9N2rRQG/fK5pL6qkRVJWV xzAwOiWzk4JgyJ9rFaHjLn35JjocJgRxBeKhAn8gkhTEi6xDSXTem/1ntmPk66/9oPmZ ZnYNS97AXqI8z+6KGE9z6uF6ZvneDID7Nbz7XkERTxPzrKN7YoGGyXv198YvbkN2Lu0i 9/UHag0v1EL+uG7YPCuuEzHy5LMHFqwP5zWcL2qhUkf92qtDTcTQT8UtR/g+LzO++JuI HN18LnmfC9/JYAproKwMX9dzHZKPTnU2m0RRE7PsRNgCvYgVTgKZXIkURV9TyJgf3YMi lXWw== X-Forwarded-Encrypted: i=1; AJvYcCUaVTbI7OsOAPRTiCu+1Fq5VIUaQ2fKqb2owViiH9WE1jWuowMJAngGYeMaWURu5srdtOdyRQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yy84vk81XYeK075bluxurfLJ6WYFPkQo0sDtqIvgPGHHtrLPW3M btmuip1KkJwtxmzJmgcBXq98eekZbebajtooihf72m7uFsQ8pis5nazR0RqOilu75ZWMK7oviY4 KPzOVi4GZbyr0eV7bYwLvVXD8c1U= X-Google-Smtp-Source: AGHT+IE6UebnSYzRrWZUsV2krDVcPCavK4uzNyDNEb6IQ/RUqH7N2oCki+Bk3oT8hK1QZjC2OQ9TUBcUEqYNZhtglVs= X-Received: by 2002:a05:6402:378f:b0:5cb:6b86:82d with SMTP id 4fb4d7f45d1cf-5cb6b8608dcmr150894a12.36.1729425113905; Sun, 20 Oct 2024 04:51:53 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 20 Oct 2024 04:51:53 -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:293951 Archived-At: Stefan Monnier writes: > ..Hmm.. I think I see the problem: the code I wrote was for variables > rather than for functions: > > ;; If foo.el declares `toto' as obsolete, it is likely that foo.el will > ;; actually use `toto' in order for this obsolete variable to still work > ;; correctly, so paradoxically, while byte-compiling foo.el, the presence > ;; of a make-obsolete-variable call for `toto' is an indication that `toto' > ;; should not trigger obsolete-warnings in foo.el. > (byte-defop-compiler-1 make-obsolete-variable) > (defun byte-compile-make-obsolete-variable (form) > (when (eq 'quote (car-safe (nth 1 form))) > (push (nth 1 (nth 1 form)) byte-compile-global-not-obsolete-vars)) > (byte-compile-normal-call form)) > > So maybe we should just do the same for `make-obsolete`? I think that makes sense.