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 14:15:52 +0100 Message-ID: <87a9edmwzb.fsf__38243.9129091383$1391087932$gmane$org@gnu.org> References: <87a9ee8u1y.fsf@thinkpad-t61.fritz.box> <87ppn9nbn4.fsf@gnu.org> <87lhxxn4rn.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391087919 14227 80.91.229.3 (30 Jan 2014 13:18:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jan 2014 13:18:39 +0000 (UTC) Cc: 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 14:18:44 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 1W8rW0-0005I6-Lq for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Jan 2014 14:18:44 +0100 Original-Received: from localhost ([::1]:49635 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8rW0-00009r-5z for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Jan 2014 08:18:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8rUf-0006pO-8U for bug-gnu-emacs@gnu.org; Thu, 30 Jan 2014 08:17:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8rUZ-0005rQ-Cn for bug-gnu-emacs@gnu.org; Thu, 30 Jan 2014 08:17:21 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8rUN-0005px-8p; Thu, 30 Jan 2014 08:17:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W8rUM-0000f1-CM; Thu, 30 Jan 2014 08:17: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 13:17: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.13910877642468 (code B ref 16573); Thu, 30 Jan 2014 13:17:02 +0000 Original-Received: (at 16573) by debbugs.gnu.org; 30 Jan 2014 13:16:04 +0000 Original-Received: from localhost ([127.0.0.1]:41154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8rTQ-0000di-6y for submit@debbugs.gnu.org; Thu, 30 Jan 2014 08:16:04 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:34371) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8rTM-0000d7-Uz for 16573@debbugs.gnu.org; Thu, 30 Jan 2014 08:16:02 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 529393D6013; Thu, 30 Jan 2014 14:15:59 +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 4GLbWhcsFCPu; Thu, 30 Jan 2014 14:15:58 +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 D76753D6012; Thu, 30 Jan 2014 14:15:58 +0100 (CET) In-Reply-To: <87lhxxn4rn.fsf@gnu.org> (Tassilo Horn's message of "Thu, 30 Jan 2014 11:27:40 +0100") 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:84255 Archived-At: Tassilo Horn writes: >> Why can't the style files require whatever AUCTeX files they need? > > They could, I guess. I was wrong. I've just added the needed requires to all style files, but I get exactly as many warnings as before. This is because of these reasons. 1. Many TeX-* and LaTeX-* functions and variables are not generated before tex.el and latex.el are loaded. AUCTeX has an auto parser facility that generates a parser for some kind of LaTeX thingy. Typical "thingies" in LaTeX are symbols/macros, environments, lengths, counters, or labels. For each such thingy, functions and variables named TeX-thingy-* or LaTeX-thingy-* are generated. E.g., tex.el itself does (TeX-auto-add-type "symbol" "TeX") which generates functions/vars TeX-symbol-list, TeX-symbol-list-filtered, TeX-symbol-changed, etc. (And the same for 10 other thingies.) The byte-compiler doesn't seem to execute top-level funcalls, so all those functions/vars are unknown at compile-time. 2. The AUCTeX's auto parser is open to be used for style-files, too. For example, style/acronym.el does (TeX-auto-add-type "acronym" "LaTeX") which when evaluated creates LaTeX-acronym-list, etc. Again, those are unknown to the byte-compiler. I guess I should wrap those TeX-auto-add-type calls with a `eval-when-compile', right? 3. How should one deal with code like this? (when (featurep 'font-latex) (font-latex-add-keywords ...)) 4. Or with code like this? (defun foo () (require 'url-util) (url-util-* ...)) Thanks, Tassilo