From: Tassilo Horn <tsdh@gnu.org>
To: Glenn Morris <rgm@gnu.org>
Cc: "Mosè Giordano" <giordano.mose@libero.it>,
"Neil Jackson" <neil.jackson@live.ca>,
16573@debbugs.gnu.org
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 [thread overview]
Message-ID: <87lhxxn4rn.fsf__20954.0171236315$1391077720$gmane$org@gnu.org> (raw)
In-Reply-To: <yxmwidvqn4.fsf@fencepost.gnu.org> (Glenn Morris's message of "Thu, 30 Jan 2014 03:07:59 -0500")
Glenn Morris <rgm@gnu.org> 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
"<yourpackage-here>"
(lambda ()
(TeX-add-symbols
'("<your-first-macro-here>" 1) ;has one arg
'("<your-2nd-macro-here>" 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."
> <Disables 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
next prev parent reply other threads:[~2014-01-30 10:27 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-27 18:06 bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile Neil Jackson
2014-01-27 18:23 ` Glenn Morris
2014-01-28 0:22 ` Stefan Monnier
[not found] ` <jwvr47tdkm3.fsf-monnier+emacsbugs@gnu.org>
2014-01-28 8:14 ` Tassilo Horn
2014-01-28 17:27 ` Achim Gratz
2014-01-28 21:36 ` Stefan Monnier
2014-01-28 22:29 ` Achim Gratz
[not found] ` <87ppnb4u6p.fsf@Rainer.invalid>
2014-01-29 1:26 ` Stefan Monnier
2014-01-29 6:26 ` Achim Gratz
[not found] ` <87txcni9rj.fsf@Rainer.invalid>
2014-01-29 13:54 ` Stefan Monnier
2014-01-28 8:28 ` bug#16573: [Bug-AUCTeX] " Mosè Giordano
2014-01-29 19:30 ` Tassilo Horn
[not found] ` <87a9ee8u1y.fsf@thinkpad-t61.fritz.box>
2014-01-29 20:18 ` Glenn Morris
[not found] ` <o438k6y21d.fsf@fencepost.gnu.org>
2014-01-30 7:59 ` Tassilo Horn
[not found] ` <87ppn9nbn4.fsf@gnu.org>
2014-01-30 8:07 ` Glenn Morris
[not found] ` <yxmwidvqn4.fsf@fencepost.gnu.org>
2014-01-30 10:27 ` Tassilo Horn [this message]
[not found] ` <87lhxxn4rn.fsf@gnu.org>
2014-01-30 13:10 ` Mosè Giordano
2014-01-30 13:15 ` Tassilo Horn
[not found] ` <CAKtYQqRi74erbwpO7JWJiH0qThFxFP9nxmASzGbe+d0BXgW03g@mail.gmail.com>
2014-01-30 13:21 ` Tassilo Horn
[not found] ` <8761p1mwpm.fsf@gnu.org>
2014-01-30 15:34 ` Stefan Monnier
[not found] ` <jwveh3p4hob.fsf-monnier+emacsbugs@gnu.org>
2014-01-31 8:05 ` Tassilo Horn
2014-01-31 14:38 ` Stefan Monnier
[not found] ` <jwvzjmcz093.fsf-monnier+emacsbugs@gnu.org>
2014-01-31 18:09 ` Tassilo Horn
[not found] ` <87a9edmwzb.fsf@gnu.org>
2014-01-30 15:41 ` Stefan Monnier
[not found] ` <jwv8utx4h41.fsf-monnier+emacsbugs@gnu.org>
2014-01-31 9:50 ` Tassilo Horn
[not found] ` <87eh3obhv5.fsf@thinkpad-t61.fritz.box>
2014-01-31 10:05 ` David Kastrup
[not found] ` <877g9g4gak.fsf@fencepost.gnu.org>
2014-01-31 12:20 ` Tassilo Horn
2014-01-31 14:49 ` Stefan Monnier
[not found] ` <jwvtxckz04b.fsf-monnier+emacsbugs@gnu.org>
2014-01-31 15:27 ` Tassilo Horn
[not found] ` <87k3dkttex.fsf@gnu.org>
2014-01-28 17:07 ` Glenn Morris
2014-01-28 17:28 ` Thierry Volpiatto
2014-01-28 20:43 ` Tassilo Horn
[not found] ` <87eh3sm2xi.fsf__44933.1636344597$1390940459$gmane$org@gmail.com>
2014-01-29 20:00 ` Tassilo Horn
[not found] ` <8738k68sop.fsf@thinkpad-t61.fritz.box>
2014-01-30 5:53 ` Thierry Volpiatto
2020-08-21 1:29 ` Stefan Kangas
2021-08-27 10:35 ` Tassilo Horn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='87lhxxn4rn.fsf__20954.0171236315$1391077720$gmane$org@gnu.org' \
--to=tsdh@gnu.org \
--cc=16573@debbugs.gnu.org \
--cc=giordano.mose@libero.it \
--cc=neil.jackson@live.ca \
--cc=rgm@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.