From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn 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 09:14:14 +0100 Message-ID: <87k3dkttex.fsf__27231.9985939705$1390896945$gmane$org@gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1390896932 26976 80.91.229.3 (28 Jan 2014 08:15:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Jan 2014 08:15:32 +0000 (UTC) Cc: Neil Jackson , 16573@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 28 09:15: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 1W83pa-0002Dn-27 for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Jan 2014 09:15:38 +0100 Original-Received: from localhost ([::1]:35828 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W83pZ-0003X7-Gr for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Jan 2014 03:15:37 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W83pK-0003Vk-El for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 03:15:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W83pE-0002CV-G6 for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 03:15:22 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W83p2-00022s-7a; Tue, 28 Jan 2014 03:15:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W83p1-0006Rj-Et; Tue, 28 Jan 2014 03:15:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-auctex@gnu.org Resent-Date: Tue, 28 Jan 2014 08:15:03 +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.139089686724714 (code B ref 16573); Tue, 28 Jan 2014 08:15:03 +0000 Original-Received: (at 16573) by debbugs.gnu.org; 28 Jan 2014 08:14:27 +0000 Original-Received: from localhost ([127.0.0.1]:38665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W83oQ-0006QX-AY for submit@debbugs.gnu.org; Tue, 28 Jan 2014 03:14:26 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:37041) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W83oL-0006QL-45 for 16573@debbugs.gnu.org; Tue, 28 Jan 2014 03:14:22 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 590821A8433; Tue, 28 Jan 2014 09:14:20 +0100 (CET) X-Virus-Scanned: amavisd-new at uni-koblenz.de Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nkOe7j5gI6qK; Tue, 28 Jan 2014 09:14:19 +0100 (CET) X-CHKRCPT: Envelopesender noch tsdh@gnu.org Original-Received: from thinkpad-t61 (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id DE8FA1A8431; Tue, 28 Jan 2014 09:14:19 +0100 (CET) In-Reply-To: (Stefan Monnier's message of "Mon, 27 Jan 2014 19:22:31 -0500") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) 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:84160 Archived-At: Stefan Monnier writes: Hi Neil & Stefan, >> On updating to latest Auctex from the Package Manager, there were >> hundreds of warnings during compilation. > > Indeed. Oh, yes. Hm, compiling AUCTeX from its Git sources issues just one warning (and a few more in preview). With the ELPA package, there're much more of them... Ah, ok, AUCTeX has an lpath.el that disables byte-compile warnings. Now I also get pages over pages of warnings. Most of them are references to free variables and unknown functions from style files. But the style files can't be used without AUCTeX being loaded anyway, so at runtime the vars/functions will be defined. Any good idea to fix those? I could add requires, but that would possibly slow down the compilation and is not neccessary as explained above. I could add defvars (but no declare-functions cause that's not available on older emacsen/xemacs) for the free variables, but again that's not really neccessary. I could change AUCTeX' build process so that free-vars and unresolved warnings are ignored for the style files, but that won't affect the ELPA builds... >> Expected behaviour: >> Packages in Elpa compile without warnings. > > ELPA packages are not magical that way, no. It completely depends on > the package's maintainers to try and make their code "warning-free", > and even if they do that, it's difficult to make sure it's > warning-free under all Emacs versions (some maintainers insist on > warning-freeness to the point of disabling warnings or obfuscating > code, which I find to be both very bad ideas). AUCTeX tries to be compatible with Emacs 21.4+ and even XEmacs 21.4+, so changing code just for eliminating some warning is hard because is requires quite some testing effort to check all supported emacsen in all supported versions (or at least the oldest and the newest). > For GNU ELPA packages, I occasionally try to address some of those > warnings. In the case of AUCTeX, I haven't tackled that job yet. Now that I know that there are warnings, I'll tackle those that can be addressed in a meaningful manner myself. Bye, Tassilo