From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Achim Gratz 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 23:29:02 +0100 Organization: Linux Private Site Message-ID: <87ppnb4u6p.fsf__35585.4396745146$1390948251$gmane$org@Rainer.invalid> References: <87k3dkttex.fsf__27231.9985939705$1390896945$gmane$org@gnu.org> <8761p4585h.fsf@Rainer.invalid> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1390948238 18282 80.91.229.3 (28 Jan 2014 22:30:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Jan 2014 22:30:38 +0000 (UTC) To: 16573@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 28 23:30:45 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 1W8HB7-0000oy-8P for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Jan 2014 23:30:45 +0100 Original-Received: from localhost ([::1]:39776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8HB6-0003W0-Sr for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Jan 2014 17:30:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8HAo-0003Ve-2Z for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 17:30:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8HAg-000623-R5 for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 17:30:25 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53837) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8HAS-0005o4-69; Tue, 28 Jan 2014 17:30:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W8HAR-0007Mx-5u; Tue, 28 Jan 2014 17:30:03 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Achim Gratz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-auctex@gnu.org Resent-Date: Tue, 28 Jan 2014 22:30:02 +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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.139094817828263 (code B ref -1); Tue, 28 Jan 2014 22:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Jan 2014 22:29:38 +0000 Original-Received: from localhost ([127.0.0.1]:39623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8HA2-0007Lm-8J for submit@debbugs.gnu.org; Tue, 28 Jan 2014 17:29:38 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53286) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8H9z-0007Le-Uk for submit@debbugs.gnu.org; Tue, 28 Jan 2014 17:29:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8H9s-0005cK-9u for submit@debbugs.gnu.org; Tue, 28 Jan 2014 17:29:35 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8H9s-0005cC-7A for submit@debbugs.gnu.org; Tue, 28 Jan 2014 17:29:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8H9l-00034t-Sz for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 17:29:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8H9f-0005ac-E4 for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 17:29:21 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:58558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8H9f-0005aV-6j for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 17:29:15 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W8H9d-0000JL-WD for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 23:29:14 +0100 Original-Received: from pd9eb33cd.dip0.t-ipconnect.de ([217.235.51.205]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Jan 2014 23:29:13 +0100 Original-Received: from Stromeko by pd9eb33cd.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Jan 2014 23:29:13 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pd9eb33cd.dip0.t-ipconnect.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:kEHnkeA50ogt7wJDIRLNfZa/vno= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:84195 Archived-At: Stefan Monnier writes: >> (eval-and-compile >> (unless (fboundp 'declare-function) >> (defmacro declare-function (fn file &optional arglist fileonly) >> `(autoload ',fn ,file)))) > > Yuck! This is an ugly trick trying to silence warnings. Not much uglier than declare-function itself. These things would perhaps benefit if one could declare-require the source file in question (it's almost invariably callbacks and guarded calls into external packages that end up needing this treatment), but that still doesn't address how to make it backward compatible. > Better macroexpand it to nil: you'll get warnings in older Emacsen, but > at least you won't end up changing the code's behavior. 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; if it does it was a bug to begin with. Defining this nil and then not finding the one warning that must be dealt with in the hundreds of spurious warnings is decidedly worse. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Waldorf MIDI Implementation & additional documentation: http://Synth.Stromeko.net/Downloads.html#WaldorfDocs