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: Thu, 30 Jan 2014 11:27:40 +0100 Message-ID: <87lhxxn4rn.fsf__20954.0171236315$1391077720$gmane$org@gnu.org> References: <87a9ee8u1y.fsf@thinkpad-t61.fritz.box> <87ppn9nbn4.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391077707 15279 80.91.229.3 (30 Jan 2014 10:28:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jan 2014 10:28:27 +0000 (UTC) Cc: =?UTF-8?Q?Mos=C3=A8?= Giordano , Neil Jackson , 16573@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 30 11:28:33 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 1W8orH-0008Q5-0k for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Jan 2014 11:28:31 +0100 Original-Received: from localhost ([::1]:47425 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8orG-0005yW-Fr for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Jan 2014 05:28:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46960) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8or6-0005uS-LK for bug-gnu-emacs@gnu.org; Thu, 30 Jan 2014 05:28:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8or0-0000bK-LZ for bug-gnu-emacs@gnu.org; Thu, 30 Jan 2014 05:28:20 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55055) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8oqo-0000Zk-S8; Thu, 30 Jan 2014 05:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W8oqo-0003gn-HL; Thu, 30 Jan 2014 05:28:02 -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: Thu, 30 Jan 2014 10:28: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: Original-Received: via spool by 16573-submit@debbugs.gnu.org id=B16573.139107767314165 (code B ref 16573); Thu, 30 Jan 2014 10:28:02 +0000 Original-Received: (at 16573) by debbugs.gnu.org; 30 Jan 2014 10:27:53 +0000 Original-Received: from localhost ([127.0.0.1]:40841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8oqe-0003gN-9A for submit@debbugs.gnu.org; Thu, 30 Jan 2014 05:27:52 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:39665) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8oqa-0003gA-R5 for 16573@debbugs.gnu.org; Thu, 30 Jan 2014 05:27:50 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id C71E03D6008; Thu, 30 Jan 2014 11:27:46 +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 cb6v2FIOdGjZ; Thu, 30 Jan 2014 11:27:46 +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 3D55F3D6005; Thu, 30 Jan 2014 11:27:46 +0100 (CET) In-Reply-To: (Glenn Morris's message of "Thu, 30 Jan 2014 03:07:59 -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:84250 Archived-At: Glenn Morris writes: >>> Personally I think this is bad practice. >> >> Why? > > Well, what if you make a typo and use a function that is really > undefined? It'll throw at runtime, but hopefully it does so before shipping a release. >> As said, all those style files use LaTeX-* and TeX-* vars and >> functions defined by AUCTeX's core. However, the style files can't >> be required individually, but AUCTeX itself loads them dynamically >> depending on the \usepackages and \documentclass you use in your >> LaTeX document. > > Why can't the style files require whatever AUCTeX files they need? They could, I guess. However, style files should be easy to write for non-elisp experts. They usually are nothing more than: --8<---------------cut here---------------start------------->8--- (TeX-add-style-hook "" (lambda () (TeX-add-symbols '("" 1) ;has one arg '("" 2)))) ;has two args --8<---------------cut here---------------end--------------->8--- So that would need a (require 'tex), if it would also define latex environments, it'll need (require 'latex) too, and if it'd also fiddles with font-locking, it'll also (require 'font-latex). I mean, we could document in the manual section about writing custom style files which AUCTeX files need to be required when using which function. But style files are usually written in parallel to working on/testing with a sample tex document using the corresponding LaTeX style, so then the functions/vars are defined anyway and one can just TAB your way through. Another thing is that the style files reside in a subdirectory, so to make the requires working their compilation would need a different load-path. (No big thing for the regular Makefile build job, but I'm not sure about ELPA...) And possibly adding requires would slow down the compilation process quite a bit. There are currently 144 style files. As said, most of them are rather short, but the tex, latex, and font-latex they'd need to require are large (~14000 LOC in total). >> Well, AUCTeX releases have a (setq byte-compile-warnings nil) in a >> custom lpath.el that's used when byte-compiling anyway. > > Which makes this whole exercise rather laughable, doesn't it? Kinda. I didn't notice that before this bug report, too. And I'll to address the relevant warnings and remove that config. > "All releases must ship with no warnings." > > "Job done!" vc-annotate says: 73660122 (Per Abrahamsen 1996-08-29 20:32:16 +0000 6) Good job, Per! And it lasted for almost 18 years now. ;-) Bye, Tassilo