From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#21466: [PATCH] Avoid defining (temporarily) vars and functions Date: Sat, 26 Mar 2022 17:47:24 +0100 Message-ID: <877d8gd5k3.fsf@gnus.org> References: <87eeeestgu.fsf@gnus.org> <87y2105swg.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17047"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Stefan Monnier , 21466@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 26 17:48:13 2022 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 1nY9aG-0004B5-F6 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Mar 2022 17:48:12 +0100 Original-Received: from localhost ([::1]:55342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nY9aE-0008Vp-UA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Mar 2022 12:48:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nY9a6-0008Vh-RJ for bug-gnu-emacs@gnu.org; Sat, 26 Mar 2022 12:48:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60724) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nY9a6-0000Lu-De; Sat, 26 Mar 2022 12:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nY9a6-0004aR-Bf; Sat, 26 Mar 2022 12:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sat, 26 Mar 2022 16:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21466 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: patch Original-Received: via spool by 21466-submit@debbugs.gnu.org id=B21466.164831325617390 (code B ref 21466); Sat, 26 Mar 2022 16:48:02 +0000 Original-Received: (at 21466) by debbugs.gnu.org; 26 Mar 2022 16:47:36 +0000 Original-Received: from localhost ([127.0.0.1]:54621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nY9Zf-0004WI-PT for submit@debbugs.gnu.org; Sat, 26 Mar 2022 12:47:36 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:55004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nY9Zd-0004SH-W9 for 21466@debbugs.gnu.org; Sat, 26 Mar 2022 12:47:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6NbM2jarYjj0kfdQh2gyofzwhO2RYWOcreS+kWEYSL8=; b=ToA/Ikk3cCoouyeNHx0x1Qolkn ksl5fdYgOPsAYxF2CScUVpfSaOXkCeGRLlhbl/glN4ObhesMUKRq9FU/Y58p/iMRwBWrNcg/ZZSVA 0/hY4ITT/ZO38VhZnU1Es68rtMG8/vAvQSybb6lXTOU74O3ZTDYVf/MDmEPZ3Cfg0yEk=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nY9ZV-00018Q-7E; Sat, 26 Mar 2022 17:47:27 +0100 In-Reply-To: (Alan Mackenzie's message of "Sat, 26 Mar 2022 14:45:40 +0000") 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" Xref: news.gmane.io gmane.emacs.bugs:228979 Archived-At: Alan Mackenzie writes: > These explain the "free variable" warnings for the variables and the > "defined multiple times" warnings for the functions. > > To sort out this bug properly, we really need Lisp functions equivalent > to C's extern. (defvar foo) and (declare-function 'foo nil) currently > don't fill this need. I had a brief look at a couple of the warnings (after the patch), and it looks like the warnings could be resolved by just removing the cc-bytecomp-deffun (and rearranging the code order). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no