From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile Date: Tue, 28 Jan 2014 20:26:42 -0500 Message-ID: References: <87k3dkttex.fsf__27231.9985939705$1390896945$gmane$org@gnu.org> <8761p4585h.fsf@Rainer.invalid> <87ppnb4u6p.fsf@Rainer.invalid> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1390958852 7962 80.91.229.3 (29 Jan 2014 01:27:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jan 2014 01:27:32 +0000 (UTC) Cc: 16573@debbugs.gnu.org To: Achim Gratz Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 29 02:27:38 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W8JwI-0004Kh-3h for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Jan 2014 02:27:38 +0100 Original-Received: from localhost ([::1]:40132 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8JwH-0005GD-MW for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Jan 2014 20:27:37 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8Jw5-0005EU-VU for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 20:27:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8Jvy-0008Ed-M8 for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 20:27:25 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8Jvi-0008CT-B9; Tue, 28 Jan 2014 20:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W8Jvi-0003I4-1J; Tue, 28 Jan 2014 20:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-auctex@gnu.org Resent-Date: Wed, 29 Jan 2014 01:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16573 X-GNU-PR-Package: emacs,auctex X-GNU-PR-Keywords: Original-Received: via spool by 16573-submit@debbugs.gnu.org id=B16573.139095880912628 (code B ref 16573); Wed, 29 Jan 2014 01:27:01 +0000 Original-Received: (at 16573) by debbugs.gnu.org; 29 Jan 2014 01:26:49 +0000 Original-Received: from localhost ([127.0.0.1]:39694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8JvU-0003Hc-T5 for submit@debbugs.gnu.org; Tue, 28 Jan 2014 20:26:49 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:37334) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8JvS-0003HN-Ih for 16573@debbugs.gnu.org; Tue, 28 Jan 2014 20:26:47 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFpZg5/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBrEfkA6RCgOIYZwZgV6DFQ X-IPAS-Result: Av4EABK/CFFFpZg5/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBrEfkA6RCgOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="46306487" Original-Received: from 69-165-152-57.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([69.165.152.57]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 28 Jan 2014 20:26:42 -0500 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id AA837AE267; Tue, 28 Jan 2014 20:26:42 -0500 (EST) In-Reply-To: <87ppnb4u6p.fsf@Rainer.invalid> (Achim Gratz's message of "Tue, 28 Jan 2014 23:29:02 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:84202 Archived-At: > That's certainly not recommended for everyone and everything, but since > declare-function must used in situations were the function to be > declared is known to be already defined at runtime, the autoload will > never do anything anyway; It does do something: - it does something during byte-compilation. - it does something during run-time if the function is "already loaded when you call it" but not "already loaded when you load the file". Both of those situations are quite common. The reason why you don't suffer from it is not that the autoload doesn't do anything, but because the autoload is usually harmless. > Defining this nil and then not finding the one warning that must be > dealt with in the hundreds of spurious warnings is decidedly worse. Admittedly I haven't spent much time dealing with compatibility with older Emacsen lately, but in the past I've never found warnings useful for that work. So I only ever used warnings to help debug & improve my code on my "main" Emacs version, and completely ignored warnings when porting to older Emacsen (relying on testing and bug-reports instead). Of course, it's probably got to do with taste, but if you're going to use `autoload', then I strongly suggest you name it `-declare-function', since when "adding a missing definition" you're better off defining it *exactly* like a recentish Emacs. Stefan